Pārlūkot izejas kodu

合并代码到master

zhupei 3 gadi atpakaļ
vecāks
revīzija
7d46c7be29

+ 10 - 10
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -1541,7 +1541,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
1541 1541
                     }
1542 1542
                     else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
1543 1543
                     {
1544
-                        string markdepts = "37,57,74,88,268,422,339,213";
1544
+                        string markdepts = "37,57,74,88,268,295,339,422,213,427";
1545 1545
                         string qualdepts = "12,36,295,245";
1546 1546
                         string detpid = "" + ua.F_DeptId;
1547 1547
                         var deparmentlist = new List<Model.T_Sys_Department>();
@@ -2089,7 +2089,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2089 2089
                         else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
2090 2090
                         {
2091 2091
 
2092
-                            string markdepts = "37,57,74,88,268,422,339,213";
2092
+                            string markdepts = "37,57,74,88,268,295,339,422,213,427";
2093 2093
                             string qualdepts = "12,36,295,245";
2094 2094
                             string detpid = "" + ua.F_DeptId;
2095 2095
                             var deparmentlist = new List<Model.T_Sys_Department>();
@@ -2257,7 +2257,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2257 2257
                             string touser = "";
2258 2258
                             string strwhere = "";
2259 2259
                             string contens = "";
2260
-                            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,213) order by F_CreateTime desc)";
2260
+                            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,213,427) order by F_CreateTime desc)";
2261 2261
                             var deptmodel = departmentBLL.GetModelList(strwhere).FirstOrDefault();
2262 2262
                             if (deptmodel != null)
2263 2263
                             {
@@ -2828,7 +2828,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2828 2828
             if (!string.IsNullOrEmpty(OpenId))
2829 2829
             {
2830 2830
                 int woflag = 0;
2831
-                string markdepts = "37,57,74,88,268,295,339,213";
2831
+                string markdepts = "37,57,74,88,268,295,339,213,427";
2832 2832
                 string sqlstr = "";
2833 2833
                 if (id <= 0)
2834 2834
                 {
@@ -2975,7 +2975,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
2975 2975
         {
2976 2976
             int? flag = 0;
2977 2977
 
2978
-            string markdepts = "37,57,74,88,268,295,339,213";
2978
+            string markdepts = "37,57,74,88,268,295,339,213,427";
2979 2979
             if (!string.IsNullOrEmpty(usercode))
2980 2980
             {
2981 2981
                 Model.T_Sys_UserAccount ua = userAccountBLL.GetModel(usercode);
@@ -5058,7 +5058,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
5058 5058
                      sms = (int)itemlast.F_IsSMS;
5059 5059
                 }
5060 5060
                 WorkOrderNewInput input = new WorkOrderNewInput();
5061
-                string markdepts = "37,57,74,88,268,422,339,213";
5061
+                string markdepts = "37,57,74,88,268,295,339,422,213,427";
5062 5062
                 string qualdepts = "12,36,295,245";
5063 5063
                 if (ua != null)
5064 5064
                 {
@@ -6008,7 +6008,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
6008 6008
          string uncont = "",
6009 6009
         int isvisit = 1, int isover = 0)
6010 6010
         {
6011
-            string markdepts = "37,57,74,88,268,422,339,213";
6011
+            string markdepts = "37,57,74,88,268,295,339,422,213,427";
6012 6012
             string qualdepts = "12,36,295,245";
6013 6013
             if (!string.IsNullOrEmpty(OpenId))
6014 6014
             {
@@ -6192,7 +6192,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
6192 6192
                     if (model != null)
6193 6193
                     {
6194 6194
                         int flag = 0;
6195
-                        string markdepts = "37,57,74,88,268,422,339,213";
6195
+                        string markdepts = "37,57,74,88,268,295,339,422,213,427";
6196 6196
                         var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList($"F_WoID={model.F_ID} and F_IsUsed=0 and (F_CreateUser={ua.F_UserCode} or F_NextUser like '%{ua.F_UserCode}%')  order by   F_ID desc ").FirstOrDefault();
6197 6197
 
6198 6198
                         if (modellist == null)
@@ -6248,7 +6248,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
6248 6248
                     if (model != null)
6249 6249
                     {
6250 6250
                         int flag = 0;
6251
-                        string markdepts = "37,57,74,88,268,422,339,213";
6251
+                        string markdepts = "37,57,74,88,268,295,339,422,213,427";
6252 6252
                         Model.T_Sys_RoleInfo ro = rolebll.GetModel(ua.F_RoleId);
6253 6253
                         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 ");
6254 6254
 
@@ -6522,7 +6522,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
6522 6522
         {
6523 6523
             #region 工单处理
6524 6524
             int sms = 0;
6525
-            string markdepts = "37,57,74,88,268,422,339,213";
6525
+            string markdepts = "37,57,74,88,268,295,339,422,213,427";
6526 6526
             var itemlasts = itembll.GetModelList("  F_ItemType=" + (int)EnumItemType.deal + " and  F_WoID=" + model.F_ID + " ");
6527 6527
             if (itemlasts.Count > 0)
6528 6528
             {

+ 123 - 100
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -1206,7 +1206,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1206 1206
                             else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
1207 1207
                             {
1208 1208
 
1209
-                                string markdepts = "37,57,74,88,268,422,339,213";
1209
+                                string markdepts = "37,57,74,88,268,295,339,422,213,427";
1210 1210
                                 string qualdepts = "12,36,295,245";
1211 1211
                                 string detpid = "" + ua.F_DeptId;
1212 1212
                                 var deparmentlist = new List<Model.T_Sys_Department>();
@@ -2419,7 +2419,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2419 2419
         {
2420 2420
             int userId = CurrentUser.UserData.F_UserId;
2421 2421
             int woflag = 0;
2422
-            string markdepts = "37,57,74,88,268,295,339,213";
2422
+            string markdepts = "37,57,74,88,268,295,339,213,427";
2423 2423
             if (userId != 0)
2424 2424
             {
2425 2425
                 DataTable FileUrl = new DataTable();
@@ -2500,7 +2500,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2500 2500
         {
2501 2501
             int? flag = 0;
2502 2502
             int userId = CurrentUser.UserData.F_UserId;
2503
-            string markdepts = "37,57,74,88,268,295,339,213";
2503
+            string markdepts = "37,57,74,88,268,295,339,213,427";
2504 2504
             if (userId != 0)
2505 2505
             {
2506 2506
                 Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
@@ -2543,7 +2543,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2543 2543
         public int? IsMarketAssign(long fid)
2544 2544
         {
2545 2545
             int? woflag = 0;
2546
-            string markdepts = "37,57,74,88,268,295,339,213";
2546
+            string markdepts = "37,57,74,88,268,295,339,213,427";
2547 2547
             int userId = CurrentUser.UserData.F_UserId;
2548 2548
             if (userId != 0)
2549 2549
             {
@@ -3048,7 +3048,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3048 3048
                     sql += $" and F_CreateBy like '%" + ua.F_UserCode.Trim() + "%'";
3049 3049
                 else if (ro.F_RoleCode == "DQJL" || ro.F_RoleCode == "FGSJL" || ro.F_RoleCode == "BLRY" || ro.F_RoleCode == "ZG" || ro.F_RoleCode == "GC")
3050 3050
                 {
3051
-                    string markdepts = "37,57,74,88,268,422,339,213";
3051
+                    string markdepts = "37,57,74,88,268,295,339,422,213,427";
3052 3052
                     string qualdepts = "12,36,295,245";
3053 3053
                     string detpid = "" + ua.F_DeptId;
3054 3054
                     var deparmentlist = new List<Model.T_Sys_Department>();
@@ -3151,6 +3151,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
3151 3151
                         dt.Columns.Add("工单编号");
3152 3152
                         dt.Columns.Add("工单来源");
3153 3153
                         dt.Columns.Add("工单类型");
3154
+                        if (type == 2 || type == 5)
3155
+                        {
3156
+                            dt.Columns.Add("责任单位");
3157
+                            dt.Columns.Add("产品名称");
3158
+                            dt.Columns.Add("销售基地");
3159
+                        }
3154 3160
                         dt.Columns.Add("外线工单状态");
3155 3161
                         dt.Columns.Add("内线工单状态");
3156 3162
                         dt.Columns.Add("生产单位");
@@ -3165,22 +3171,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
3165 3171
                         else if (type == 2 || type==5)
3166 3172
                         {
3167 3173
 
3168
-                            dt.Columns.Add("产品名称");
3169
-                            dt.Columns.Add("问题数量");
3170
-                            dt.Columns.Add("销售基地");
3174
+                          
3175
+                            //dt.Columns.Add("问题数量");                 
3171 3176
                             dt.Columns.Add("生产批次号");
3172 3177
                             dt.Columns.Add("问题类别1");
3173 3178
                             dt.Columns.Add("问题类别2");
3174 3179
                             dt.Columns.Add("问题类别3");
3175
-                            dt.Columns.Add("重要级别");
3176
-                            dt.Columns.Add("品牌");
3177
-                            dt.Columns.Add("客户编号");
3178
-                            dt.Columns.Add("业务员");
3179
-                            dt.Columns.Add("电话");
3180
-                            dt.Columns.Add("经营品牌");
3181 3180
                             dt.Columns.Add("大区名称");
3182 3181
                             dt.Columns.Add("分公司名称");
3183
-                            dt.Columns.Add("公司名称");
3184 3182
                             dt.Columns.Add("渠道类型");
3185 3183
                             dt.Columns.Add("物料编码");
3186 3184
                             dt.Columns.Add("物料名称");
@@ -3193,16 +3191,17 @@ namespace CallCenterApi.Interface.Controllers.workorder
3193 3191
                             dt.Columns.Add("复合肥肥效");
3194 3192
                             dt.Columns.Add("产品线");
3195 3193
                             dt.Columns.Add("工艺");
3196
-                            dt.Columns.Add("原料及厂家");
3197
-                            dt.Columns.Add("该批次生产数量");
3198
-                            dt.Columns.Add("车牌号");
3199
-                            dt.Columns.Add("返账金额");
3200
-                            dt.Columns.Add("责任单位");
3201
-                            dt.Columns.Add("下步整改");
3202
-                            dt.Columns.Add("问题原因(外)");
3203
-                            dt.Columns.Add("问题原因(内)");
3204
-                            dt.Columns.Add("处理结果(外)");
3205
-                            dt.Columns.Add("处理结果(内)");
3194
+
3195
+
3196
+                            //dt.Columns.Add("重要级别");
3197
+                            //dt.Columns.Add("品牌");
3198
+                            //dt.Columns.Add("客户编号");
3199
+                            //dt.Columns.Add("业务员");
3200
+                            //dt.Columns.Add("电话");
3201
+                            //dt.Columns.Add("经营品牌");
3202
+                            //dt.Columns.Add("公司名称");
3203
+                          
3204
+                          
3206 3205
                         }
3207 3206
                         else
3208 3207
                         {
@@ -3236,29 +3235,41 @@ namespace CallCenterApi.Interface.Controllers.workorder
3236 3235
                             dt.Columns.Add("工艺");
3237 3236
                             dt.Columns.Add("原料及厂家");
3238 3237
                             dt.Columns.Add("该批次生产数量");
3239
-                            dt.Columns.Add("问题原因(外)");
3240
-                            dt.Columns.Add("问题原因(内)");
3238
+                            dt.Columns.Add("问题判定原因");
3241 3239
                             dt.Columns.Add("处理结果(外)");
3242 3240
                             dt.Columns.Add("处理结果(内)");
3243 3241
                         }
3244 3242
                         dt.Columns.Add("客户姓名");
3245 3243
                         dt.Columns.Add("客户电话");
3246 3244
                         dt.Columns.Add("问题描述");
3247
-                        dt.Columns.Add("事发地-省");
3248
-                        dt.Columns.Add("事发地-市");
3249
-                        dt.Columns.Add("事发地-县");
3250
-                        dt.Columns.Add("事发地-乡");
3251
-                        dt.Columns.Add("事发地-详细");
3252
-                        dt.Columns.Add("上级处理意见");
3253
-                        dt.Columns.Add("处理详情-外线");
3254
-                        dt.Columns.Add("处理详情-内线");
3245
+                        dt.Columns.Add("创建时间");
3246
+                        dt.Columns.Add("完结时间");
3247
+                        dt.Columns.Add("用时(天)");
3248
+                        //dt.Columns.Add("工单状态");
3249
+                        //dt.Columns.Add("事发地-省");
3250
+                        //dt.Columns.Add("事发地-市");
3251
+                        //dt.Columns.Add("事发地-县");
3252
+                        //dt.Columns.Add("事发地-乡");
3253
+                        //dt.Columns.Add("事发地-详细");
3254
+                        //dt.Columns.Add("上级处理意见");
3255
+                        //dt.Columns.Add("处理详情-外线");
3256
+                        //dt.Columns.Add("处理详情-内线");
3255 3257
                         dt.Columns.Add("备注");
3256
-                        dt.Columns.Add("注解");
3258
+                        //dt.Columns.Add("注解");
3257 3259
                         dt.Columns.Add("超时时限");
3258
-                        dt.Columns.Add("剩余时间-外线");
3259
-                        dt.Columns.Add("剩余时间-内线");
3260
+                        dt.Columns.Add("剩余时间");
3261
+                        //dt.Columns.Add("剩余时间-内线");
3260 3262
                         dt.Columns.Add("超时原因");
3261
-                        dt.Columns.Add("工单记录");
3263
+                        dt.Columns.Add("作物");
3264
+                        dt.Columns.Add("下步整改");
3265
+                        dt.Columns.Add("问题判定原因");
3266
+                        dt.Columns.Add("处理结果(外)");
3267
+                        dt.Columns.Add("处理结果(内)");
3268
+                        dt.Columns.Add("原料及厂家");
3269
+                        dt.Columns.Add("该批次生产数量");
3270
+                        dt.Columns.Add("车牌号");
3271
+                        dt.Columns.Add("返账金额");
3272
+                        //dt.Columns.Add("工单记录");
3262 3273
                         #endregion
3263 3274
                         foreach (var it in depts)
3264 3275
                         {
@@ -3464,12 +3475,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
3464 3475
                             else if (type == 2 || type==5)
3465 3476
                             {
3466 3477
                                 drNew["产品名称"] = it.F_TS_Category;
3467
-                                if (!string.IsNullOrEmpty(it.F_TS_Quantity))
3468
-                                {
3469
-                                    drNew["问题数量"] = it.F_TS_Quantity + "吨";//投诉-问题数量(吨)
3470
-                                }
3471
-                                else
3472
-                                    drNew["问题数量"] = "";
3478
+                                //if (!string.IsNullOrEmpty(it.F_TS_Quantity))
3479
+                                //{
3480
+                                //    drNew["问题数量"] = it.F_TS_Quantity + "吨";//投诉-问题数量(吨)
3481
+                                //}
3482
+                                //else
3483
+                                //    drNew["问题数量"] = "";
3473 3484
                                 drNew["销售基地"] = it.F_SalesBase;
3474 3485
                                 drNew["生产批次号"] = it.F_BatchNumber;
3475 3486
                                 if (!string.IsNullOrEmpty(it.F_QuestionType))
@@ -3495,8 +3506,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
3495 3506
                                         drNew["问题类别3"] = it.F_QuestionType; //问题类别(投诉抽捡和咨询类别不一样)
3496 3507
                                     }
3497 3508
                                 }
3498
-                                drNew["重要级别"] = it.F_TS_Level;
3499
-                                drNew["品牌"] = it.F_Brand;
3509
+                                //drNew["重要级别"] = it.F_TS_Level;
3510
+                                //drNew["品牌"] = it.F_Brand;
3500 3511
                                 drNew["车牌号"] = it.F_CarNumber;
3501 3512
                                 drNew["返账金额"] = it.F_SC_CJ_ReturnAccount;
3502 3513
                                 drNew["责任单位"] = it.F_ZL_ResponsibleUnit;
@@ -3551,9 +3562,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3551 3562
                                     cuModel = new BLL.T_Cus_CustomerBaseNew().GetModelList(" F_IsDelete = 0 " + sqlt).FirstOrDefault();
3552 3563
                                 }
3553 3564
                                 if (cuModel != null)
3554
-                                {
3555
-                                    drNew["客户编号"] = cuModel.F_CustomerCode;//客户编码
3556
-
3565
+                                {                                 
3557 3566
                                     if (!string.IsNullOrEmpty(cuModel.F_AreaID))
3558 3567
                                     {
3559 3568
                                         Model.T_Sys_Department pdModel = new T_Sys_Department();
@@ -3587,11 +3596,15 @@ namespace CallCenterApi.Interface.Controllers.workorder
3587 3596
                                             drNew["分公司名称"] = pdModel1.F_DeptName;
3588 3597
                                         }
3589 3598
                                     }
3590
-                                    drNew["业务员"] = cuModel.F_Salesman;
3591
-                                    drNew["电话"] = cuModel.F_SalesPhone;
3592
-                                    drNew["公司名称"] = cuModel.F_CompanyName;//公司名称
3593
-                                    drNew["经营品牌"] = cuModel.F_Brands;
3594 3599
                                     drNew["渠道类型"] = cuModel.F_Channel;
3600
+                                    if (type == 3)
3601
+                                    {
3602
+                                        drNew["客户编号"] = cuModel.F_CustomerCode;//客户编码
3603
+                                        drNew["业务员"] = cuModel.F_Salesman;
3604
+                                        drNew["电话"] = cuModel.F_SalesPhone;
3605
+                                        drNew["公司名称"] = cuModel.F_CompanyName;//公司名称
3606
+                                        drNew["经营品牌"] = cuModel.F_Brands;
3607
+                                    }
3595 3608
 
3596 3609
 
3597 3610
 
@@ -3624,8 +3637,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
3624 3637
                                 //dt.Columns.Add("该批次生产数量");
3625 3638
                                 drNew["原料及厂家"] = it.F_Manufacturers;//原料及厂家
3626 3639
                                 drNew["该批次生产数量"] = it.F_ProductionNum;//该批次生产数量
3627
-                                drNew["问题原因(外)"] = it.F_EventReason;//问题原因(外
3628
-                                drNew["问题原因(内)"] = it.F_EventReason2;//问题原因(内)
3640
+                                drNew["问题判定原因"] = it.F_EventReason;//问题原因(外
3629 3641
                                 drNew["处理结果(内)"] = it.F_SuperiorOpinion;//处理结果(外)
3630 3642
                                 drNew["处理结果(内)"] = it.F_SuperiorOpinion2;//处理结果(内)
3631 3643
 
@@ -3637,57 +3649,68 @@ namespace CallCenterApi.Interface.Controllers.workorder
3637 3649
                             drNew["客户姓名"] = it.F_CusName;//
3638 3650
                             drNew["客户电话"] = it.F_CusPhone;//
3639 3651
                             drNew["问题描述"] = it.F_Description;//
3640
-                            drNew["事发地-省"] = it.F_IncidentProvince;//
3641
-                            drNew["事发地-市"] = it.F_IncidentCity;//
3642
-                            drNew["事发地-县"] = it.F_IncidentCountry;//
3643
-                            drNew["事发地-乡"] = it.F_IncidentTownship;//
3644
-                            drNew["事发地-详细"] = it.F_IncidentDetailed;//
3645
-                            drNew["上级处理意见"] = AssCont(it.F_ID);//上级处理意见
3646
-                            drNew["处理详情-外线"] = it.F_DealContent;//处理内容
3647
-                            drNew["处理详情-内线"] = it.F_DealContent2;//处理内容
3652
+                            drNew["创建时间"] = it.F_CreateOn;
3653
+                            drNew["完结时间"] = it.F_VisitOn;
3654
+                   
3655
+                            //drNew["事发地-省"] = it.F_IncidentProvince;//
3656
+                            //drNew["事发地-市"] = it.F_IncidentCity;//
3657
+                            //drNew["事发地-县"] = it.F_IncidentCountry;//
3658
+                            //drNew["事发地-乡"] = it.F_IncidentTownship;//
3659
+                            //drNew["事发地-详细"] = it.F_IncidentDetailed;//
3660
+                            //drNew["上级处理意见"] = AssCont(it.F_ID);//上级处理意见
3661
+                            //drNew["处理详情-外线"] = it.F_DealContent;//处理内容
3662
+                            //drNew["处理详情-内线"] = it.F_DealContent2;//处理内容
3648 3663
                             drNew["备注"] = it.F_VisitRemarks;//处理内容
3649
-                            drNew["注解"] = it.F_Annotation;//处理内容
3664
+                            //drNew["注解"] = it.F_Annotation;//处理内容
3650 3665
                             drNew["超时时限"] = it.F_limit;//处理内容
3651 3666
                             #region
3652 3667
                             float RemainingTime = float.Parse(string.Format("{0:f2}", TimeToOver(it.F_ID, it.F_limit)));
3653 3668
                             if (RemainingTime >= 0)
3654 3669
                             {
3655
-                                drNew["剩余时间-外线"] = RemainingTime;//处理内容
3670
+                                drNew["剩余时间"] = RemainingTime;//处理内容
3656 3671
                             }
3657 3672
                             else
3658 3673
                             {
3659
-                                drNew["剩余时间-外线"] = "超时" + Math.Abs(RemainingTime);//处理内容
3674
+                                drNew["剩余时间"] = "超时" + Math.Abs(RemainingTime);//处理内容
3660 3675
                             }
3676
+                            float aa = Math.Abs(it.F_limit-RemainingTime);
3677
+                            int days = (int)Math.Floor(Convert.ToDouble(aa / 24));
3678
+                            drNew["用时(天)"] = days+"天";
3661 3679
                             #endregion
3662
-                            #region 内线
3663
-                            float RemainingTime2 = float.Parse(string.Format("{0:f2}", TimeToOver(it.F_ID, it.F_limit, 2)));
3664
-                            if (RemainingTime2 >= 0)
3665
-                            {
3666
-                                drNew["剩余时间-内线"] = RemainingTime2;//处理内容
3667
-                            }
3668
-                            else
3669
-                            {
3670
-                                drNew["剩余时间-内线"] = "超时" + Math.Abs(RemainingTime2);//处理内容
3671
-                            }
3672
-                            #endregion
3673
-                            drNew["超时原因"] = it.F_Reasontimeout;//处理内容
3674
-
3675
-                            var itemlasts = itembll.GetModelList(" F_WoID=" + it.F_ID + " ");
3676
-                            if (itemlasts != null)
3680
+                            //#region 内线
3681
+                            //float RemainingTime2 = float.Parse(string.Format("{0:f2}", TimeToOver(it.F_ID, it.F_limit, 2)));
3682
+                            //if (RemainingTime2 >= 0)
3683
+                            //{
3684
+                            //    drNew["剩余时间-内线"] = RemainingTime2;//处理内容
3685
+                            //}
3686
+                            //else
3687
+                            //{
3688
+                            //    drNew["剩余时间-内线"] = "超时" + Math.Abs(RemainingTime2);//处理内容
3689
+                            //}
3690
+                            //#endregion
3691
+                            drNew["超时原因"] = it.F_Reasontimeout;//处理内容it
3692
+                            int cropid = 0;
3693
+                            if (int.TryParse(it.F_Crops.Trim(), out cropid))
3677 3694
                             {
3678
-                                foreach (var iv in itemlasts)
3679
-                                {
3680
-                                    if (drNew["工单记录"] != null)
3681
-                                    {
3682
-                                        drNew["工单记录"] += "--" + iv.F_OptContent;
3683
-                                    }
3684
-                                    else
3685
-                                    {
3686
-                                        drNew["工单记录"] = iv.F_OptContent;
3687
-                                    }
3688
-
3689
-                                }
3695
+                                drNew["作物"] = new BLL.T_Sys_DictionaryValue().GetModel(cropid)?.F_Name ?? "";//作物
3690 3696
                             }
3697
+                            else drNew["作物"] = "";
3698
+                            //var itemlasts = itembll.GetModelList(" F_WoID=" + it.F_ID + " ");
3699
+                            //if (itemlasts != null)
3700
+                            //{
3701
+                            //    foreach (var iv in itemlasts)
3702
+                            //    {
3703
+                            //        if (drNew["工单记录"] != null)
3704
+                            //        {
3705
+                            //            drNew["工单记录"] += "--" + iv.F_OptContent;
3706
+                            //        }
3707
+                            //        else
3708
+                            //        {
3709
+                            //            drNew["工单记录"] = iv.F_OptContent;
3710
+                            //        }
3711
+
3712
+                                //    }
3713
+                                //}
3691 3714
                             dt.Rows.Add(drNew);
3692 3715
                             #endregion
3693 3716
                         }
@@ -7670,7 +7693,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
7670 7693
                             string touser = "";
7671 7694
                             string strwhere = "";
7672 7695
                             string contens = "";
7673
-                            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,213) order by F_CreateTime desc)";
7696
+                            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,213,427) order by F_CreateTime desc)";
7674 7697
                             var deptmodel = departmentBLL.GetModelList(strwhere).FirstOrDefault();
7675 7698
                             if (deptmodel != null)
7676 7699
                             {
@@ -8028,7 +8051,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
8028 8051
         {
8029 8052
             int userId = CurrentUser.UserData.F_UserId;
8030 8053
             string usercode = CurrentUser.UserData.F_UserCode;
8031
-            string markdepts = "37,57,74,88,268,422,339,213";
8054
+            string markdepts = "37,57,74,88,268,295,339,422,213,427";
8032 8055
             string qualdepts = "12,36,295,245";
8033 8056
             if (userId != 0)
8034 8057
             {
@@ -8471,7 +8494,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
8471 8494
             int userId = CurrentUser.UserData.F_UserId;
8472 8495
             if (userId != 0)
8473 8496
             {
8474
-                string markdepts = "37,57,74,88,268,422,339,213";
8497
+                string markdepts = "37,57,74,88,268,295,339,422,213,427";
8475 8498
                 string qualdepts = "12,36,295,245"; //245:九江心连心化肥有限公司-质量督察处
8476 8499
                 if (string.IsNullOrEmpty(cont))
8477 8500
                     return Error("请输入处理内容");
@@ -8688,7 +8711,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
8688 8711
                     if (model != null)
8689 8712
                     {
8690 8713
                         int flag = 0;
8691
-                        string markdepts = "37,57,74,88,268,422,339,213";
8714
+                        string markdepts = "37,57,74,88,268,295,339,422,213,427";
8692 8715
                         var modellist = new BLL.T_Wo_WorkOrderItem_New().GetModelList($"F_WoID={model.F_ID} and F_IsUsed=0 and (F_CreateUser={ua.F_UserCode} or F_NextUser like '%{ua.F_UserCode}%')  order by   F_ID desc ").FirstOrDefault();
8693 8716
 
8694 8717
                         if (modellist == null)
@@ -8732,7 +8755,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
8732 8755
         {
8733 8756
             int userId = CurrentUser.UserData.F_UserId; ;
8734 8757
             int flag = 0;
8735
-            string markdepts = "37,57,74,88,268,422,339,213";
8758
+            string markdepts = "37,57,74,88,268,295,339,422,213,427";
8736 8759
             if (userId != 0)
8737 8760
             {
8738 8761
                 //增加撤回功能
@@ -9183,7 +9206,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
9183 9206
         {
9184 9207
             #region 工单处理
9185 9208
             int sms = 0;
9186
-            string markdepts = "37,57,74,88,268,422,339,213";
9209
+            string markdepts = "37,57,74,88,268,295,339,422,213,427";
9187 9210
             var itemlasts = itembll.GetModelList("  F_ItemType=" + (int)EnumItemType.deal + " and  F_WoID=" + model.F_ID + " ");
9188 9211
             if (itemlasts.Count > 0)
9189 9212
             {