Selaa lähdekoodia

按坐席筛选 传入坐席工号

MicroWin10-1604\Administrator 7 vuotta sitten
vanhempi
commit
a78efdea71

+ 10 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -270,8 +270,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
270 270
                         //20180329 来电弹屏工单记录根据反馈单位获取列表 可以看到同一坐席组的所有人的工单记录
271 271
                         string fkdep = HttpUtility.UrlDecode(RequestString.GetQueryString("fkdep"));
272 272
                         int isldtp = RequestString.GetQueryInt("isldtp", 0);
273
-                        //坐席
274
-                        string uid = HttpUtility.UrlDecode(RequestString.GetQueryString("userid") == "" ? "0" : HttpUtility.UrlDecode(RequestString.GetFormString("userid")));
273
+                        //坐席工号
274
+                        string uid = HttpUtility.UrlDecode(RequestString.GetQueryString("userid") == "" ? "0" : HttpUtility.UrlDecode(RequestString.GetQueryString("userid")));
275 275
                         //if (uid == "0")//默认是当前登录坐席
276 276
                         //{
277 277
                         //    if (ua.F_RoleId != 17)//管理员
@@ -288,6 +288,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
288 288
                         {
289 289
                             sql += " and CustomerTel like '%" + strtel + "%'  ";
290 290
                         }
291
+                        //坐席
292
+                        if (uid.Trim() != "" && uid != "0")
293
+                        {
294
+                            sql += " and (LastDealUser = '" + uid + "' or CreateUser = '" + uid + "') ";
295
+                        }
291 296
                         string strpageindex = RequestString.GetQueryString("page");
292 297
                         int pageindex = 1;
293 298
                         string strpagesize = RequestString.GetQueryString("pagesize");
@@ -429,7 +434,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
429 434
                         dt = BLL.PagerBLL.GetListPager(
430 435
                             "T_Wo_WorkOrder",
431 436
                             "T_Wo_WorkOrder.ID",
432
-                            "*,dbo.GetDictionaryName(Type) as GDLYName,dbo.GetGDLXName(TypeClass) as TypeClassName,dbo.GetUserName(CreateUser) as CreateUserName, dbo.GetDeptName(ResponDept) as ResponDeptName,dbo.GetUserName(ResponUser) as ResponUserName,convert(decimal(18,2),DATEDIFF(minute, CreateTime, ISNULL(LastDealTime, GETDATE()))/60.00) as totalhour",
437
+                            "*,dbo.GetDictionaryName(Type) as GDLYName,dbo.GetGDLXName(TypeClass) as TypeClassName,dbo.GetUserName(CreateUser) as CreateUserName,dbo.GetUserName(LastDealUser) as LastDealUserName, dbo.GetDeptName(ResponDept) as ResponDeptName,dbo.GetUserName(ResponUser) as ResponUserName,convert(decimal(18,2),DATEDIFF(minute, CreateTime, ISNULL(LastDealTime, GETDATE()))/60.00) as totalhour",
433 438
                             sql,
434 439
                             "ORDER BY T_Wo_WorkOrder.ID desc",
435 440
                             pagesize,
@@ -887,7 +892,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
887 892
                                     else
888 893
                                         ordermodel.State = 1;
889 894
                                 }
890
-                                
895
+
891 896
                                 ordermodel.Customer = customer;
892 897
                                 ordermodel.Address = lddep;
893 898
                                 ordermodel.Source = fkdep;
@@ -897,7 +902,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
897 902
                                 ordermodel.Province = province;
898 903
                                 ordermodel.City = city;
899 904
 
900
-                                if(new BLL.T_Wo_WorkOrder().Update(ordermodel))
905
+                                if (new BLL.T_Wo_WorkOrder().Update(ordermodel))
901 906
                                     res = Success("修改成功!");
902 907
                                 else
903 908
                                     res = Error("修改失败!");