duhongyu 3 miesięcy temu
rodzic
commit
102ea039e7

+ 2 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DictionaryController.cs

@@ -224,7 +224,8 @@ namespace CallCenterApi.Interface.Controllers
224 224
 
225 225
                 DataTable dt = new DataTable();
226 226
 
227
-                dt = new BLL.T_Sys_DictionaryValue().GetList(" F_DictionaryFlag='" + flag + "' and F_State=1 ").Tables[0];
227
+                dt = new BLL.T_Sys_DictionaryValue().GetList(" F_DictionaryFlag='" + flag + "' and F_State=1 " +
228
+                    " order by F_Sort asc,F_DictionaryValueId desc ").Tables[0];
228 229
 
229 230
                 res = Success("列表加载成功", dt);
230 231
             }

+ 8 - 8
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/WOReportController.cs

@@ -138,7 +138,7 @@ namespace CallCenterApi.Interface.Controllers.report
138 138
                         drNew["反馈类型"] = "业务协办";
139 139
                         break;
140 140
                     case 6:
141
-                        drNew["反馈类型"] = "业务协办";
141
+                        drNew["反馈类型"] = "业务协办";
142 142
                         break;
143 143
                     case 7:
144 144
                         drNew["反馈类型"] = "超期数量";
@@ -245,7 +245,7 @@ namespace CallCenterApi.Interface.Controllers.report
245 245
                         brand.typename = "业务协办";
246 246
                         break;
247 247
                     case 6:
248
-                        brand.typename = "业务协办";
248
+                        brand.typename = "业务协办";
249 249
                         break;
250 250
                     case 7:
251 251
                         brand.typename = "超期数量";
@@ -1434,7 +1434,7 @@ namespace CallCenterApi.Interface.Controllers.report
1434 1434
                     }
1435 1435
                     else if (item.F_Type == "6")
1436 1436
                     {
1437
-                        drNew["工单类型"] = "业务协办";
1437
+                        drNew["工单类型"] = "业务协办";
1438 1438
                     }
1439 1439
                     else
1440 1440
                     {
@@ -1683,7 +1683,7 @@ namespace CallCenterApi.Interface.Controllers.report
1683 1683
                 }
1684 1684
                 else if (it.F_Type == "6")
1685 1685
                 {
1686
-                    drNew["工单类型"] = "业务协办";
1686
+                    drNew["工单类型"] = "业务协办";
1687 1687
                 }
1688 1688
                 drNew["销售基地"] = it.F_SalesBase;//销售基地:新乡、新疆、九江、东北、其他(其它手动输入别的点选)
1689 1689
                 drNew["创建时间"] = it.F_CreateOn.ToString();
@@ -3207,7 +3207,7 @@ namespace CallCenterApi.Interface.Controllers.report
3207 3207
                         model.name = "业务协办";
3208 3208
                         break;
3209 3209
                        case 6:
3210
-                        model.name = "业务协办";
3210
+                        model.name = "业务协办";
3211 3211
                         break;
3212 3212
                         case 7:
3213 3213
                             model.name = "合计";
@@ -3568,7 +3568,7 @@ namespace CallCenterApi.Interface.Controllers.report
3568 3568
                                 }
3569 3569
                                 else if (it.F_Type == "6")
3570 3570
                                 {
3571
-                                    worker.F_Type = "业务协办";
3571
+                                    worker.F_Type = "业务协办";
3572 3572
                                 }
3573 3573
                                 else
3574 3574
                                 {
@@ -3821,7 +3821,7 @@ namespace CallCenterApi.Interface.Controllers.report
3821 3821
                                         }
3822 3822
                                         else if (it.F_Type == "6")
3823 3823
                                         {
3824
-                                            worker.F_Type = "业务协办";
3824
+                                            worker.F_Type = "业务协办";
3825 3825
                                         }
3826 3826
                                         else
3827 3827
                                         {
@@ -4443,7 +4443,7 @@ namespace CallCenterApi.Interface.Controllers.report
4443 4443
                     }
4444 4444
                     else if (model1[i].F_Type == "6")
4445 4445
                     {
4446
-                        model.Type = "业务协办";
4446
+                        model.Type = "业务协办";
4447 4447
                     }
4448 4448
                     model.SalesBase = model1[i].F_SalesBase;//销售基地:新乡、新疆、九江、东北、其他(其它手动输入别的点选)
4449 4449
                     model.CreatOn = model1[i].F_CreateOn .ToString ();

+ 49 - 26
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -1712,7 +1712,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
1712 1712
                     }
1713 1713
                     else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
1714 1714
                     {
1715
-                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
1715
+                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
1716 1716
                         string qualdepts = "12,36,295,245,314";
1717 1717
                         string detpid = "" + ua.F_DeptId;
1718 1718
                         var deparmentlist = new List<Model.T_Sys_Department>();
@@ -2316,7 +2316,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2316 2316
                         else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
2317 2317
                         {
2318 2318
 
2319
-                            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
2319
+                            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
2320 2320
                             string qualdepts = "12,36,295,245,314";
2321 2321
                             string detpid = "" + ua.F_DeptId;
2322 2322
                             var deparmentlist = new List<Model.T_Sys_Department>();
@@ -2499,7 +2499,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2499 2499
                             string touser = "";
2500 2500
                             string strwhere = "";
2501 2501
                             string contens = "";
2502
-                            strwhere = $" F_DeptId in (select top 1 F_NextDept  from T_Wo_WorkOrderItem_New where F_WoID={model.F_ID} and F_NextDept in(37,57,74,88,268,295,339,422,22,427,433,424,470,595) order by F_CreateTime desc)";
2502
+                            strwhere = $" F_DeptId in (select top 1 F_NextDept  from T_Wo_WorkOrderItem_New where F_WoID={model.F_ID} and F_NextDept in(37,57,74,88,268,295,339,422,22,427,433,424,470,595,664) order by F_CreateTime desc)";
2503 2503
                             var deptmodel = departmentBLL.GetModelList(strwhere).FirstOrDefault();
2504 2504
                             if (deptmodel != null)
2505 2505
                             {
@@ -2939,7 +2939,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2939 2939
             }
2940 2940
             else if (type == "6")
2941 2941
             {
2942
-                smscont = "业务协办";
2942
+                smscont = "业务协办";
2943 2943
             }
2944 2944
             else
2945 2945
             {
@@ -3145,7 +3145,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
3145 3145
             if (!string.IsNullOrEmpty(OpenId))
3146 3146
             {
3147 3147
                 int woflag = 0;
3148
-                string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595";
3148
+                string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595,664";
3149 3149
                 string sqlstr = "";
3150 3150
                 if (id <= 0)
3151 3151
                 {
@@ -3293,7 +3293,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
3293 3293
         {
3294 3294
             int? flag = 0;
3295 3295
 
3296
-            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595";
3296
+            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595,664";
3297 3297
             if (!string.IsNullOrEmpty(usercode))
3298 3298
             {
3299 3299
                 Model.T_Sys_UserAccount ua = userAccountBLL.GetModel(usercode);
@@ -3557,7 +3557,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
3557 3557
                 if (!string.IsNullOrEmpty(GetDeptment(ua)))
3558 3558
                 {
3559 3559
                     var itemlasts = itembll.GetModelList(" isnull(F_IsUsed,'0')='0' and F_OptType in(" + (int)EnumItemOpt.audit + ")" + " and "
3560
-                                      + "F_WoState in(" + (int)EnumWorkOrderState.audit + ") and F_NextUser in ( " + GetDeptment(ua) + ") ");
3560
+                                      + "F_WoState in(" + (int)EnumWorkOrderState.audit + ") and F_NextDept in ( " + GetDeptment(ua) + ") ");
3561 3561
                     foreach (var it in itemlasts)
3562 3562
                     {
3563 3563
                         int overtime = 0;
@@ -3788,7 +3788,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
3788 3788
                     }
3789 3789
                     else if (model1[i].F_Type == "6")
3790 3790
                     {
3791
-                        model.F_TypeName = "业务协办";
3791
+                        model.F_TypeName = "业务协办";
3792 3792
                     }
3793 3793
                     else
3794 3794
                     {
@@ -3946,8 +3946,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
3946 3946
                             Model.T_Wo_QuestionManage manage = quesBLL.GetModel(b);
3947 3947
                             if (manage != null)
3948 3948
                             {
3949
-                                model.F_QuestionType = manage.F_QuestionName;//问题类别3
3950
-                                model.F_QuestionTypeid = manage.F_Id;
3949
+                               
3951 3950
                                 #region 20220304 修改 肥效类增加作物字段
3952 3951
                                 var cropid = 0;
3953 3952
                                 if (manage.F_Label == "3")
@@ -3957,7 +3956,32 @@ namespace CallCenterApi.Interface.Controllers.weixin
3957 3956
                                     model.F_QuestionTypeone = Manage2.F_QuestionName;//问题类别1
3958 3957
                                     model.F_QuestionTypeoneid = Manage2.F_Id;//问题类别1
3959 3958
                                     model.F_QuestionTypetwo = Manage1.F_QuestionName;//问题类别2
3960
-                                    model.F_QuestionTypetwoid = Manage1.F_Id;//问题类别2                             
3959
+                                    model.F_QuestionTypetwoid = Manage1.F_Id;//问题类别2  
3960
+                                    model.F_QuestionType = manage.F_QuestionName;//问题类别3
3961
+                                    model.F_QuestionTypeid = manage.F_Id;
3962
+                                }
3963
+                                else if (manage.F_Label == "2")
3964
+                                {
3965
+                                    Model.T_Wo_QuestionManage Manage1 = quesBLL.GetModel(int.Parse(manage.F_ParentId.ToString()));//获取问题类别1
3966
+                                    model.F_QuestionTypeone = Manage1.F_QuestionName;//问题类别1
3967
+                                    model.F_QuestionTypeoneid = Manage1.F_Id;//问题类别1
3968
+                                    model.F_QuestionTypetwo = manage.F_QuestionName;//问题类别2
3969
+                                    model.F_QuestionTypetwoid = manage.F_Id;//问题类别2   
3970
+
3971
+                                }
3972
+                                else
3973
+                                {
3974
+                                    if (model .F_Type==2|| model.F_Type == 6)
3975
+                                    {
3976
+                                        model.F_QuestionTypeone = manage.F_QuestionName;//问题类别3
3977
+                                        model.F_QuestionTypeoneid = manage.F_Id;
3978
+                                    }
3979
+                                    else
3980
+                                    {
3981
+                                        model.F_QuestionType = manage.F_QuestionName;//问题类别3
3982
+                                        model.F_QuestionTypeid = manage.F_Id;
3983
+                                    }
3984
+                                   
3961 3985
                                 }
3962 3986
                                 if (int.TryParse(model1[i].F_Crops.Trim(), out cropid))
3963 3987
                                 {
@@ -5136,7 +5160,6 @@ namespace CallCenterApi.Interface.Controllers.weixin
5136 5160
                 var ids = GetQuestionID(model.F_QuestionType);
5137 5161
             if (input.F_Type == 2 && ids != null && ids.Count > 0)
5138 5162
             {
5139
-
5140 5163
                 if (ids.Contains("1"))
5141 5164
                 {
5142 5165
                     string stime = DateTime.Now.ToString("yyyy-MM-dd");
@@ -5146,14 +5169,14 @@ namespace CallCenterApi.Interface.Controllers.weixin
5146 5169
                 else if (ids.Contains("2"))
5147 5170
                 {
5148 5171
                     string stime = DateTime.Now.ToString("yyyy-MM-dd");
5149
-                    string etime = DateTime.Now.AddHours(120).ToString("yyyy-MM-dd");
5150
-                    model.F_limit = GetTimes(stime, etime, 120);
5172
+                    string etime = DateTime.Now.AddHours(24).ToString("yyyy-MM-dd");
5173
+                    model.F_limit = GetTimes(stime, etime, 24);
5151 5174
                 }
5152 5175
                 else if (ids.Contains("120"))
5153 5176
                 {
5154 5177
                     string stime = DateTime.Now.ToString("yyyy-MM-dd");
5155
-                    string etime = DateTime.Now.AddHours(7).ToString("yyyy-MM-dd");
5156
-                    model.F_limit = GetTimes(stime, etime, 7);
5178
+                    string etime = DateTime.Now.AddHours(120).ToString("yyyy-MM-dd");
5179
+                    model.F_limit = GetTimes(stime, etime, 120);
5157 5180
                 }
5158 5181
                 else
5159 5182
                 {
@@ -5173,16 +5196,16 @@ namespace CallCenterApi.Interface.Controllers.weixin
5173 5196
             {
5174 5197
                 model.F_limit = overtime;
5175 5198
             }
5176
-                
5177
-                #endregion
5178
-                long n = woBLL.Add(model);
5199
+
5200
+            #endregion
5201
+            long n = woBLL.Add(model);
5179 5202
                 if (n > 0)
5180 5203
                 {
5181 5204
                     #region 流转上一级领导审批
5182 5205
                     Model.T_Wo_WorkOrder modlelist = new BLL.T_Wo_WorkOrder().GetModel(n);
5183 5206
                     if (modlelist != null)
5184 5207
                     {
5185
-                    AddLog(modlelist.F_ID, 0, "客户" + "创建工单", (int)EnumItemType.deal, (int)EnumItemOpt.create, "", 0, null, overtime, sms);
5208
+                    AddLog(modlelist.F_ID, 0, "客户" + "创建工单", (int)EnumItemType.deal, (int)EnumItemOpt.create, "", 0, null, model.F_limit, sms);
5186 5209
                     return Success("添加成功");
5187 5210
                 }
5188 5211
                     #endregion
@@ -5717,7 +5740,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
5717 5740
                      sms = (int)itemlast.F_IsSMS;
5718 5741
                 }
5719 5742
                 WorkOrderNewInput input = new WorkOrderNewInput();
5720
-                string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
5743
+                string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
5721 5744
                 string qualdepts = "12,36,295,245,314";
5722 5745
                 if (ua != null)
5723 5746
                 {
@@ -6130,7 +6153,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
6130 6153
             }
6131 6154
             else if (model.F_Type == "6")
6132 6155
             {
6133
-                smscont = "业务协办";
6156
+                smscont = "业务协办";
6134 6157
             }
6135 6158
             else
6136 6159
             {
@@ -7139,7 +7162,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
7139 7162
                     if (model != null)
7140 7163
                     {
7141 7164
                         int flag = 0;
7142
-                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
7165
+                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
7143 7166
                         var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList($"F_WoID={model.F_ID} and F_IsUsed=0 and  F_NextUser like '%{ua.F_UserCode}%'  order by   F_ID desc ");
7144 7167
                         var itemnext = itembll.GetModelList(" F_ItemType=" + (int)EnumItemType.deal + " and F_WoState =1 and  F_WoID='" + model.F_ID + "'and F_NextUser like '%" + ua.F_UserCode + "%' order by F_ID desc").FirstOrDefault();
7145 7168
                         if (modellist.Count <= 0)
@@ -7219,7 +7242,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
7219 7242
                     if (model != null)
7220 7243
                     {
7221 7244
                         int flag = 0;
7222
-                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
7245
+                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
7223 7246
                         Model.T_Sys_RoleInfo ro = rolebll.GetModel(ua.F_RoleId);
7224 7247
                         var modelnext = new BLL.T_Wo_WorkOrderItem_New().GetModelList($"F_WoID={model.F_ID} and F_OptType=1  and F_CreateUser={ua.F_UserCode} order by   F_ID desc ");
7225 7248
 
@@ -7439,7 +7462,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
7439 7462
                 }
7440 7463
                 else if (model.F_Type == "6")
7441 7464
                 {
7442
-                    smscont = "业务协办";
7465
+                    smscont = "业务协办";
7443 7466
                 }
7444 7467
                 else
7445 7468
                 {
@@ -7518,7 +7541,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
7518 7541
         {
7519 7542
             #region 工单处理
7520 7543
             int sms = 0;
7521
-            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
7544
+            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
7522 7545
             var itemlasts = itembll.GetModelList("  F_ItemType=" + (int)EnumItemType.deal + " and  F_WoID=" + model.F_ID + " ");
7523 7546
             if (itemlasts.Count > 0)
7524 7547
             {

+ 6 - 16
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -165,8 +165,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
165 165
                 sql += " and F_Type='" + EnumWOType.SpotCheck.ToString() + "'";
166 166
             if (type == (int)EnumWOType.Cooperation)//业务协办
167 167
                 sql += " and F_Type='" + EnumWOType.Cooperation.ToString() + "'";
168
-            if (type == 6)//业务协办
169
-                sql += " and F_Type='" +6 + "'";
168
+            if (type == (int)EnumWOType.NewCooperation)//业务协办
169
+                sql += " and F_Type='" + EnumWOType.NewCooperation.ToString() + "'";
170 170
             int recordCount = 0;
171 171
 
172 172
          
@@ -199,12 +199,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
199 199
             }
200 200
 
201 201
             List<Model.TreeModel> modelList = BindTree(dt, "0");
202
-            if (modelList != null)
203
-            {
204
-                if (modelList.Count > 0)
205
-                    return Success("加载成功", modelList);
206
-            }
207
-            return Error("加载失败");
202
+            return Success("加载成功", modelList);
208 203
         }
209 204
         public ActionResult GetQuestionName()
210 205
         {
@@ -244,8 +239,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
244 239
                 sql += " and F_Type='" + EnumWOType.SpotCheck.ToString() + "'";
245 240
             if (type == (int)EnumWOType.Cooperation)//业务协办
246 241
                 sql += " and F_Type='" + EnumWOType.Cooperation.ToString() + "'";
247
-            if (type == 6)//业务协办
248
-                sql += " and F_Type='" + 6 + "'";
242
+            if (type == (int)EnumWOType.NewCooperation)//业务协办
243
+                sql += " and F_Type='" + EnumWOType.NewCooperation.ToString() + "'";
249 244
             int recordCount = 0;
250 245
             if (pid == 0 && type == (int)EnumWOType.Complaint)
251 246
             {
@@ -279,12 +274,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
279 274
             }
280 275
 
281 276
             List<Model.TreeModel> modelList = BindTree(dt, "0");
282
-            if (modelList != null)
283
-            {
284
-                if (modelList.Count > 0)
285
-                    return Success("加载成功", modelList);
286
-            }
287
-            return Error("加载失败");
277
+            return Success("加载成功", modelList);
288 278
         }
289 279
         /// <summary>
290 280
         /// tree  树形部门

+ 96 - 53
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -850,7 +850,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
850 850
                             }
851 851
                             else if (it.F_Type == "6")
852 852
                             {
853
-                                drNew["工单类型"] = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
853
+                                drNew["工单类型"] = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
854 854
                             }
855 855
                             else
856 856
                             {
@@ -1964,7 +1964,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1964 1964
                                 else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
1965 1965
                                 {
1966 1966
 
1967
-                                    string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424";
1967
+                                    string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,664";
1968 1968
                                     string qualdepts = "12,36,295,245,314";
1969 1969
                                     string detpid = "" + ua.F_DeptId;
1970 1970
                                     var deparmentlist = new List<Model.T_Sys_Department>();
@@ -2676,7 +2676,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2676 2676
                 if (!string.IsNullOrEmpty(GetDeptment(ua)))
2677 2677
                 {
2678 2678
                     var itemlasts = itembll.GetModelList(" isnull(F_IsUsed,'0')='0' and F_OptType in(" + (int)EnumItemOpt.audit + ")" + " and "
2679
-                                      + "F_WoState in(" + (int)EnumWorkOrderState.audit + ") and F_NextUser in ( " + GetDeptment(ua) + ") ");
2679
+                                      + "F_WoState in(" + (int)EnumWorkOrderState.audit + ") and F_NextDept in ( " + GetDeptment(ua) + ") ");
2680 2680
                     foreach (var it in itemlasts)
2681 2681
                     {
2682 2682
                         float hours = (DateTime.Now - DateTime.Parse(it.F_CreateTime.ToString())).Hours;
@@ -3268,7 +3268,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3268 3268
         {
3269 3269
             int userId = CurrentUser.UserData.F_UserId;
3270 3270
             int woflag = 0;
3271
-            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595";
3271
+            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595,664";
3272 3272
             if (userId != 0)
3273 3273
             {
3274 3274
                 DataTable FileUrl = new DataTable();
@@ -3353,7 +3353,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3353 3353
         {
3354 3354
             int? flag = 0;
3355 3355
             int userId = CurrentUser.UserData.F_UserId;
3356
-            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595";
3356
+            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595,664";
3357 3357
             if (userId != 0)
3358 3358
             {
3359 3359
                 Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
@@ -3495,7 +3495,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3495 3495
         public int? IsMarketAssign(long fid)
3496 3496
         {
3497 3497
             int? woflag = 0;
3498
-            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595";
3498
+            string markdepts = "37,57,74,88,268,295,339,22,427,433,424,470,595,664";
3499 3499
             int userId = CurrentUser.UserData.F_UserId;
3500 3500
             if (userId != 0)
3501 3501
             {
@@ -4040,7 +4040,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4040 4040
                     sql += $" and F_CreateBy like '%" + ua.F_UserCode.Trim() + "%'";
4041 4041
                 else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
4042 4042
                 {
4043
-                    string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
4043
+                    string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
4044 4044
                     string qualdepts = "12,36,295,245,314";
4045 4045
                     string detpid = "" + ua.F_DeptId;
4046 4046
                     var deparmentlist = new List<Model.T_Sys_Department>();
@@ -4136,7 +4136,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4136 4136
                 if (isdc > 0)
4137 4137
                 {
4138 4138
 
4139
-                    if (type <= 0 || type >= 6)//工单类型
4139
+                    if (type <= 0 || type > 6)//工单类型
4140 4140
                     {
4141 4141
                         return Error("请选择工单类型");
4142 4142
                     }
@@ -4158,7 +4158,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4158 4158
                             dt.Columns.Add("问题数量");
4159 4159
                             dt.Columns.Add("销售基地");
4160 4160
                         }
4161
-                        else if (type == 2 || type==5)
4161
+                        else if (type == 2 || type==6 || type == 5)
4162 4162
                         {
4163 4163
 
4164 4164
 
@@ -4338,7 +4338,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4338 4338
                             }
4339 4339
                             else if (it.F_Type == "6")
4340 4340
                             {
4341
-                                drNew["工单类型"] = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
4341
+                                drNew["工单类型"] = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
4342 4342
                             }
4343 4343
                             else
4344 4344
                             {
@@ -4500,7 +4500,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4500 4500
                                 drNew["问题数量"] = string.IsNullOrEmpty(it.F_ZX_Quantity)? it.F_TS_Quantity : it.F_ZX_Quantity;//投诉-(吨)
4501 4501
                                 drNew["销售基地"] = it.F_SalesBase;
4502 4502
                             }
4503
-                            else if (type == 2 || type==5)
4503
+                            else if (type == 2 || type==5 || type == 6)
4504 4504
                             {
4505 4505
                                 drNew["产品名称"] = it.F_TS_Category;
4506 4506
                                 drNew["问题数量"] = string.IsNullOrEmpty(it.F_TS_Quantity)? it.F_ZX_Quantity : it.F_TS_Quantity + "吨";//投诉-问题数量(吨)
@@ -4549,11 +4549,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
4549 4549
                                     {
4550 4550
                                         if (type == 5)
4551 4551
                                         {
4552
-                                            drNew["问题类别"] = it.F_QuestionType;
4552
+                                            drNew["问题类别1"] = it.F_QuestionType; //问题类别(投诉抽捡和咨询类别不一样)
4553 4553
                                         }
4554
-                                        else
4554
+                                        if (type == 6)
4555 4555
                                         {
4556
-                                            drNew["问题类别3"] = it.F_QuestionType; //问题类别(投诉抽捡和咨询类别不一样)
4556
+                                            drNew["问题类别1"] = it.F_QuestionType; //问题类别(投诉抽捡和咨询类别不一样)
4557 4557
                                         }
4558 4558
                                     }
4559 4559
                                 }
@@ -4616,7 +4616,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
4616 4616
                                 drNew["生产批次号"] = it.F_BatchNumber;
4617 4617
                                 drNew["公关费用金额"] = it.F_CJ_Outlay;
4618 4618
                             }
4619
-                            if (type == 2 || type == 3 || type==5)
4619
+                            if (type == 2 || type == 3 || type==5 || type == 6)
4620 4620
                             {
4621 4621
                                 #region 客户
4622 4622
                                 Model.T_Cus_CustomerBaseNew cuModel = new Model.T_Cus_CustomerBaseNew();
@@ -5204,7 +5204,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
5204 5204
                             }
5205 5205
                             else if (it.F_Type == "6")
5206 5206
                             {
5207
-                                drNew["工单类型"] = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
5207
+                                drNew["工单类型"] = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
5208 5208
                             }
5209 5209
                             else
5210 5210
                             {
@@ -7538,7 +7538,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
7538 7538
                     }
7539 7539
                     else if (model1[i].F_Type == "6")
7540 7540
                     {
7541
-                        model.F_TypeName = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
7541
+                        model.F_TypeName = "业务协办";//工单类型:咨询及需求、投诉、抽检、其他(其它手动输入别的点选)
7542 7542
                     }
7543 7543
                     else
7544 7544
                     {
@@ -7704,8 +7704,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
7704 7704
                             Model.T_Wo_QuestionManage manage = quesBLL.GetModel(b);
7705 7705
                             if (manage != null)
7706 7706
                             {
7707
-                                model.F_QuestionType = manage.F_QuestionName;//问题类别3
7708
-                                model.F_QuestionTypeid = manage.F_Id;
7707
+                               
7709 7708
                                 #region 20220215修改 肥效类增加作物字段
7710 7709
                                 var cropid = 0;
7711 7710
                                 if (manage.F_Label == "3")
@@ -7715,7 +7714,31 @@ namespace CallCenterApi.Interface.Controllers.workorder
7715 7714
                                     model.F_QuestionTypeone = Manage2.F_QuestionName;//问题类别1
7716 7715
                                     model.F_QuestionTypeoneid = Manage2.F_Id;//问题类别1
7717 7716
                                     model.F_QuestionTypetwo = Manage1.F_QuestionName;//问题类别2
7718
-                                    model.F_QuestionTypetwoid = Manage1.F_Id;//问题类别2                             
7717
+                                    model.F_QuestionTypetwoid = Manage1.F_Id;//问题类别2  
7718
+                                    model.F_QuestionType = manage.F_QuestionName;//问题类别3
7719
+                                    model.F_QuestionTypeid = manage.F_Id;
7720
+                                }
7721
+                                else  if (manage.F_Label == "2")
7722
+                                {
7723
+                                    Model.T_Wo_QuestionManage Manage1 = quesBLL.GetModel(int.Parse(manage.F_ParentId.ToString()));//获取问题类别1
7724
+                                    model.F_QuestionTypeone = Manage1.F_QuestionName;//问题类别1
7725
+                                    model.F_QuestionTypeoneid = Manage1.F_Id;//问题类别1
7726
+                                    model.F_QuestionTypetwo = manage.F_QuestionName;//问题类别2
7727
+                                    model.F_QuestionTypetwoid = manage.F_Id;//问题类别2   
7728
+                                  
7729
+                                }
7730
+                                else
7731
+                                {
7732
+                                    if (model.F_Type == 2 || model.F_Type == 6)
7733
+                                    {
7734
+                                        model.F_QuestionTypeone = manage.F_QuestionName;//问题类别3
7735
+                                        model.F_QuestionTypeoneid = manage.F_Id;
7736
+                                    }
7737
+                                    else
7738
+                                    {
7739
+                                        model.F_QuestionType = manage.F_QuestionName;//问题类别3
7740
+                                        model.F_QuestionTypeid = manage.F_Id;
7741
+                                    }
7719 7742
                                 }
7720 7743
                                 if (int.TryParse(model1[i].F_Crops.Trim(), out cropid))
7721 7744
                                 {
@@ -9077,7 +9100,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9077 9100
                             else if (flag == 2)
9078 9101
                             {
9079 9102
 
9080
-                                if (clbm2 == 427) //运营中心
9103
+                                if (clbm == 427 || clbm == 664 || clbm == 470) //运营中心
9081 9104
                                 {
9082 9105
                                     flag = 3;
9083 9106
                                     modlelist.F_Flag = 9;
@@ -9095,7 +9118,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9095 9118
                             }
9096 9119
                             else
9097 9120
                             {
9098
-                                if (clbm == 427) //运营中心
9121
+                                if (clbm == 427 || clbm == 664 || clbm == 470) //运营中心
9099 9122
                                 {
9100 9123
                                     flag = 3;
9101 9124
                                     modlelist.F_Flag = 9;
@@ -9391,7 +9414,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9391 9414
             }
9392 9415
             else if (model.F_Type == "6")
9393 9416
             {
9394
-                smscont = "业务协办";
9417
+                smscont = "业务协办";
9395 9418
             }
9396 9419
             else
9397 9420
             {
@@ -9399,25 +9422,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9399 9422
             }
9400 9423
             string[] mag = { smscont };
9401 9424
             string smsmsg = "您好,您有一条新的" + smscont + "工单,请4小时内接单处理!";
9402
-            if (touser1 != null)
9403
-            {
9404
-                if (!string.IsNullOrEmpty(touser1.F_Mobile))
9405
-                {
9406
-
9407
-                    SmsSingleSenderResult result = new SMSController().SMSSingleshot(2304572, mag, touser1.F_Mobile.Trim());
9408
-                    bool n = new SMSController().AddSmS(touser1.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
9409
-                }
9410
-            }
9411
-            if (deptid2 > 0)
9412
-            {
9413
-                var touser2 = new BLL.T_Sys_UserAccount().GetModel(creatuser2);
9414
-                if (!string.IsNullOrEmpty(touser2.F_Mobile))
9415
-                {
9416
-
9417
-                    SmsSingleSenderResult result = new SMSController().SMSSingleshot(2304572, mag, touser2.F_Mobile.Trim());
9418
-                    bool n = new SMSController().AddSmS(touser2.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
9419
-                }
9420
-            }
9425
+            
9421 9426
 
9422 9427
             #region 处理工单
9423 9428
 
@@ -9428,15 +9433,53 @@ namespace CallCenterApi.Interface.Controllers.workorder
9428 9433
                     AddLog((int)model.F_ID, 1, content, (int)EnumItemType.deal, 4, creatuser1, deptid1, nowUser, model.F_limit, sms, "", 0, woflag);
9429 9434
                
9430 9435
                 model.F_State = 1;
9436
+                if (touser1 != null)
9437
+                {
9438
+                    if (!string.IsNullOrEmpty(touser1.F_Mobile))
9439
+                    {
9440
+
9441
+                        SmsSingleSenderResult result = new SMSController().SMSSingleshot(2304572, mag, touser1.F_Mobile.Trim());
9442
+                        bool n = new SMSController().AddSmS(touser1.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
9443
+                    }
9444
+                }
9445
+                
9431 9446
             }
9432 9447
             else if (flag == 2)
9433 9448
             {
9434 9449
                 model.F_State2 = 1;
9435 9450
                 if (deptid2 > 0)
9436
-                    AddLog((int)model.F_ID, 1, content, (int)EnumItemType.deal, 4, creatuser2, deptid2, nowUser, model.F_limit, sms, "", 0, 2);
9451
+                 {
9452
+                        AddLog((int)model.F_ID, 1, content, (int)EnumItemType.deal, 4, creatuser2, deptid2, nowUser, model.F_limit, sms, "", 0, 2);
9453
+                        var touser2 = new BLL.T_Sys_UserAccount().GetModel(creatuser2);
9454
+                    if (!string.IsNullOrEmpty(touser2.F_Mobile))
9455
+                    {
9456
+
9457
+                        SmsSingleSenderResult result = new SMSController().SMSSingleshot(2304572, mag, touser2.F_Mobile.Trim());
9458
+                        bool n = new SMSController().AddSmS(touser2.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
9459
+                    }
9460
+                }
9437 9461
             }
9438 9462
             else
9439 9463
             {
9464
+                if (touser1 != null)
9465
+                {
9466
+                    if (!string.IsNullOrEmpty(touser1.F_Mobile))
9467
+                    {
9468
+
9469
+                        SmsSingleSenderResult result = new SMSController().SMSSingleshot(2304572, mag, touser1.F_Mobile.Trim());
9470
+                        bool n = new SMSController().AddSmS(touser1.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
9471
+                    }
9472
+                }
9473
+                if (deptid2 > 0)
9474
+                {
9475
+                    var touser2 = new BLL.T_Sys_UserAccount().GetModel(creatuser2);
9476
+                    if (!string.IsNullOrEmpty(touser2.F_Mobile))
9477
+                    {
9478
+
9479
+                        SmsSingleSenderResult result = new SMSController().SMSSingleshot(2304572, mag, touser2.F_Mobile.Trim());
9480
+                        bool n = new SMSController().AddSmS(touser2.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
9481
+                    }
9482
+                }
9440 9483
                 if (deptid1 > 0&& deptid2 > 0)
9441 9484
                 {
9442 9485
                     AddLog((int)model.F_ID, 1, content, (int)EnumItemType.deal, 4, creatuser1, deptid1, nowUser, model.F_limit, sms, "", 0, 3);
@@ -9680,7 +9723,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9680 9723
                 }
9681 9724
                 if (!string .IsNullOrEmpty (F_CJ_Outlay))
9682 9725
                 model.F_CJ_Outlay = F_CJ_Outlay;
9683
-                string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
9726
+                string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
9684 9727
                 string qualdepts = "12,36,295,245,314";
9685 9728
                 WorkOrderNewInput input = new WorkOrderNewInput();
9686 9729
                 if (clid != 0)
@@ -9839,7 +9882,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9839 9882
                             }
9840 9883
                             else //完结工单
9841 9884
                             {
9842
-                                if (clbm == 427) //运营中心
9885
+                                if (clbm == 427 || clbm == 664 || clbm == 470) //运营中心
9843 9886
                                 {
9844 9887
                                     flag = 3;
9845 9888
                                     model.F_Flag = 9;
@@ -9882,7 +9925,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9882 9925
                             }
9883 9926
                             else //完结工单
9884 9927
                             {
9885
-                                if (clbm == 427) //运营中心
9928
+                                if (clbm == 427|| clbm == 664|| clbm == 470) //运营中心
9886 9929
                                 {
9887 9930
                                     flag = 3;
9888 9931
                                     model.F_Flag = 9;
@@ -10199,7 +10242,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
10199 10242
             int userId = CurrentUser.UserData.F_UserId;
10200 10243
             if (userId != 0)
10201 10244
             {
10202
-                string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
10245
+                string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
10203 10246
                 string qualdepts = "12,36,295,245,314"; //245:九江心连心化肥有限公司-质量督察处
10204 10247
                 if (string.IsNullOrEmpty(cont))
10205 10248
                     return Error("请输入处理内容");
@@ -10526,7 +10569,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
10526 10569
                     if (model != null)
10527 10570
                     {
10528 10571
                         int flag = 0;
10529
-                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
10572
+                        string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
10530 10573
                         var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList($"F_WoID={model.F_ID} " +
10531 10574
                             $"and F_IsUsed=0 and  F_NextUser like '%{ua.F_UserCode}%'  order by   F_ID desc ");
10532 10575
 
@@ -10602,7 +10645,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
10602 10645
         {
10603 10646
             int userId = CurrentUser.UserData.F_UserId; ;
10604 10647
             int flag = 0;
10605
-            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
10648
+            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
10606 10649
             if (userId != 0)
10607 10650
             {
10608 10651
                 //增加撤回功能
@@ -11032,7 +11075,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
11032 11075
                 }
11033 11076
                 else if (model.F_Type == "6")
11034 11077
                 {
11035
-                    smscont = "业务协办";
11078
+                    smscont = "业务协办";
11036 11079
                 }
11037 11080
                 else
11038 11081
                 {
@@ -11111,7 +11154,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
11111 11154
         {
11112 11155
             #region 工单处理
11113 11156
             int sms = 0;
11114
-            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595";
11157
+            string markdepts = "37,57,74,88,268,295,339,422,22,427,433,424,470,595,664";
11115 11158
             var itemlasts = itembll.GetModelList("  F_ItemType=" + (int)EnumItemType.deal + " and  F_WoID=" + model.F_ID + " ");
11116 11159
             if (itemlasts.Count > 0)
11117 11160
             {
@@ -11910,7 +11953,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
11910 11953
             }
11911 11954
             else if (type == "6")
11912 11955
             {
11913
-                smscont = "业务协办";
11956
+                smscont = "业务协办";
11914 11957
             }
11915 11958
             else
11916 11959
             {
@@ -11951,7 +11994,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
11951 11994
             }
11952 11995
             else if (model.F_Type == "6")
11953 11996
             {
11954
-                smscont = "业务协办";
11997
+                smscont = "业务协办";
11955 11998
             }
11956 11999
             else
11957 12000
             {

+ 6 - 1
codegit/CallCenterApi/CallCenterApi.Model/T_Wo_WorkOrder.cs

@@ -1152,7 +1152,12 @@ namespace CallCenterApi.Model
1152 1152
         /// 业务协办
1153 1153
         /// </summary>    
1154 1154
         [Description("业务协办")]
1155
-        Cooperation
1155
+        Cooperation,
1156
+        /// <summary>
1157
+       /// 业务协办
1158
+        /// </summary>    
1159
+        [Description("业务协办")]
1160
+        NewCooperation
1156 1161
     }
1157 1162
 }
1158 1163