1550076451 2 yıl önce
ebeveyn
işleme
2ba3447844

+ 29 - 13
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

2441
                     {
2441
                     {
2442
                        
2442
                        
2443
                         ////话务员,已办待回访菜单中可以看到所有工单并能操作
2443
                         ////话务员,已办待回访菜单中可以看到所有工单并能操作
2444
-                        if (User.F_RoleCode != "ZJZY" && User.F_RoleCode != "ZXHWY")
2444
+                        if (User.F_RoleCode != "ZJZY" && User.F_RoleCode != "ZXHWY" )
2445
                             sql += " and F_CreateUser='" + User.F_UserCode + "'";
2445
                             sql += " and F_CreateUser='" + User.F_UserCode + "'";
2446
                         //话务员,已办待回访菜单中可以看到所有工单并能操作
2446
                         //话务员,已办待回访菜单中可以看到所有工单并能操作
2447
                     }
2447
                     }
3216
                             sql += "  and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo WITH(NOLOCK) where F_State=1 and F_IsDelete=0 ";
3216
                             sql += "  and F_WorkOrderID in (select F_WorkOrderID from T_Bus_AssignedInfo WITH(NOLOCK) where F_State=1 and F_IsDelete=0 ";
3217
 
3217
 
3218
                             if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLDGLY" && User.F_RoleCode != "ZXLDGLYGLY" && User.F_RoleCode != "DDZG"
3218
                             if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLDGLY" && User.F_RoleCode != "ZXLDGLYGLY" && User.F_RoleCode != "DDZG"
3219
-                                && User.F_RoleCode != "ZXLD " && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ"
3219
+                               && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ"
3220
                                )
3220
                                )
3221
                             {
3221
                             {
3222
                                 sql += " and F_CreateUser='" + User.F_UserCode + "')";
3222
                                 sql += " and F_CreateUser='" + User.F_UserCode + "')";
3235
                                     + " F_State = 1 and F_IsDelete = 0 and T_Bus_AssignedInfo.F_WorkOrderId = T_Bus_WorkOrder.F_WorkOrderId) is null)";
3235
                                     + " F_State = 1 and F_IsDelete = 0 and T_Bus_AssignedInfo.F_WorkOrderId = T_Bus_WorkOrder.F_WorkOrderId) is null)";
3236
                                 sql += " and F_WorkState != '9' ";
3236
                                 sql += " and F_WorkState != '9' ";
3237
                             }
3237
                             }
3238
-                            if (User.F_RoleCode == "ZXHWY")
3238
+                            if (User.F_RoleCode == "ZXHWY"|| User.F_RoleCode == "ZXLD")
3239
                             {
3239
                             {
3240
                                 sql += "  and F_CreateUser='" + User.F_UserCode + "' ";
3240
                                 sql += "  and F_CreateUser='" + User.F_UserCode + "' ";
3241
                             }
3241
                             }
3270
                     }
3270
                     }
3271
 
3271
 
3272
                     if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLDGLY" && User.F_RoleCode != "ZXLDGLYGLY" && User.F_RoleCode != "DDZG"
3272
                     if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLDGLY" && User.F_RoleCode != "ZXLDGLYGLY" && User.F_RoleCode != "DDZG"
3273
-                        && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ")
3273
+                         && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ")
3274
                     {
3274
                     {
3275
                         sql += " and F_CreateUser='" + User.F_UserCode + "'";
3275
                         sql += " and F_CreateUser='" + User.F_UserCode + "'";
3276
                     }
3276
                     }
3437
                     //  sql += " and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback b WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_Type = 3 and F_IsAudit = 1  ) ";
3437
                     //  sql += " and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback b WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_Type = 3 and F_IsAudit = 1  ) ";
3438
                     // sql += "and F_WorkOrderID in(  select  b.F_WorkOrderID from T_Bus_Feedback b  WITH(NOLOCK)  inner join T_Bus_Feedback a on a.F_Id = b.F_Id and a .F_Id = (select max(t1.F_Id) from T_Bus_Feedback t1 where t1.F_WorkOrderId = b.F_WorkOrderId)  where b.F_State = 1 and b.F_IsDelete = 0 and b.F_Type = 3 and b.F_IsAudit = 1  ) ";
3438
                     // sql += "and F_WorkOrderID in(  select  b.F_WorkOrderID from T_Bus_Feedback b  WITH(NOLOCK)  inner join T_Bus_Feedback a on a.F_Id = b.F_Id and a .F_Id = (select max(t1.F_Id) from T_Bus_Feedback t1 where t1.F_WorkOrderId = b.F_WorkOrderId)  where b.F_State = 1 and b.F_IsDelete = 0 and b.F_Type = 3 and b.F_IsAudit = 1  ) ";
3439
 
3439
 
3440
-                    if (User.F_RoleCode != "GLY" && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ" && User.F_RoleCode != "ZXLD")
3440
+                    if (User.F_RoleCode != "GLY" && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ" )
3441
                     {
3441
                     {
3442
                         sql += " and F_CreateUser='" + User.F_UserCode + "'";
3442
                         sql += " and F_CreateUser='" + User.F_UserCode + "'";
3443
                     }
3443
                     }
3446
                 case "11"://
3446
                 case "11"://
3447
 
3447
 
3448
                     sql += " and F_WorkState =14";
3448
                     sql += " and F_WorkState =14";
3449
-                    if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ")
3449
+                    if (User.F_RoleCode != "GLY"  && User.F_RoleCode != "SPZ" && User.F_RoleCode != "SPZJZ")
3450
                     {
3450
                     {
3451
                         sql += " and F_CreateUser='" + User.F_UserCode + "'";
3451
                         sql += " and F_CreateUser='" + User.F_UserCode + "'";
3452
                     }
3452
                     }
3876
                         if (Int32.Parse(strtab) != 11 && Int32.Parse(strtab) != 9)
3876
                         if (Int32.Parse(strtab) != 11 && Int32.Parse(strtab) != 9)
3877
                             btns.Add(ButtonGroup.turnsee());
3877
                             btns.Add(ButtonGroup.turnsee());
3878
                     }
3878
                     }
3879
-
3880
-
3879
+                    //if (User.F_RoleCode.ToUpper() == "ZXHWY")
3880
+                    //{
3881
+                    //    if (Int32.Parse(strtab)== 0)
3882
+                    //    {
3883
+                    //        btns.Add(ButtonGroup.turnsee());
3884
+                    //        if (dr["F_WorkState"].ToString()=="1")
3885
+                    //        {
3886
+                    //            btns.Add(ButtonGroup.edit());
3887
+                    //            btns.Add(ButtonGroup.back());
3888
+                    //            btns.Add(ButtonGroup.Report());
3889
+                    //            btns.Add(ButtonGroup.trans());
3890
+                    //        }
3891
+                    //        else if (dr["F_WorkState"].ToString() == "11")
3892
+                    //        {
3893
+                    //            btns.Add(ButtonGroup.reload()); btns.Add(ButtonGroup.reject());
3894
+                    //        }
3895
+                    //    }
3896
+                    //}
3881
                     if (strtab == "0" && issh == 2)
3897
                     if (strtab == "0" && issh == 2)
3882
                     {
3898
                     {
3883
                         dr["DeptName"] = DbHelperSQL.GetSingle("  select [dbo].[GetDeptNames]( (select top 1  F_MainDeptId  from T_Bus_ToExamine where F_WorkOrderId ='" + dr["F_WorkOrderId"].ToString() + "' and F_IsDelete = 0 and F_MainDeptId is not null and F_State = 0 and F_IsDelete = 0 and  F_AssignedId = 0and F_MainDeptId != '' order by F_ID desc))");
3899
                         dr["DeptName"] = DbHelperSQL.GetSingle("  select [dbo].[GetDeptNames]( (select top 1  F_MainDeptId  from T_Bus_ToExamine where F_WorkOrderId ='" + dr["F_WorkOrderId"].ToString() + "' and F_IsDelete = 0 and F_MainDeptId is not null and F_State = 0 and F_IsDelete = 0 and  F_AssignedId = 0and F_MainDeptId != '' order by F_ID desc))");
5416
             string strpagesize = RequestString.GetQueryString("pagesize");
5432
             string strpagesize = RequestString.GetQueryString("pagesize");
5417
             int pagesize = 10;
5433
             int pagesize = 10;
5418
 
5434
 
5419
-            if (User.F_RoleCode == "ZXHWY")
5435
+            if (User.F_RoleCode == "ZXHWY"||User.F_RoleCode == "ZXLD")
5420
             {
5436
             {
5421
                 sql += " and F_CreateUser = '" + User.F_UserCode + "' ";
5437
                 sql += " and F_CreateUser = '" + User.F_UserCode + "' ";
5422
             }
5438
             }
12128
                     #endregion
12144
                     #endregion
12129
                     if (state > 0)
12145
                     if (state > 0)
12130
                     {
12146
                     {
12131
-                        if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG")
12147
+                        if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXHWY" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG")
12132
                         {
12148
                         {
12133
 
12149
 
12134
                             int assignid = RequestString.GetInt("assignid", 0);
12150
                             int assignid = RequestString.GetInt("assignid", 0);
13271
         //[Authority]
13287
         //[Authority]
13272
         public ActionResult AssignWorkOrderNew(List<maindeptcontent> content)
13288
         public ActionResult AssignWorkOrderNew(List<maindeptcontent> content)
13273
         {
13289
         {
13274
-            if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "DBZY" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ")
13290
+            if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXHWY" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "DBZY" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ")
13275
             {
13291
             {
13276
                 string workorderid = RequestString.GetFormString("workorderid");
13292
                 string workorderid = RequestString.GetFormString("workorderid");
13277
                 int state = RequestString.GetInt("state", 0);
13293
                 int state = RequestString.GetInt("state", 0);
21617
         //[Authority]
21633
         //[Authority]
21618
         public ActionResult ReloadWorkOrder()
21634
         public ActionResult ReloadWorkOrder()
21619
         {
21635
         {
21620
-            if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ")
21636
+            if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXHWY" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ")
21621
             //if (User.F_RoleCode == "ZJZY" || User.F_RoleCode == "GLY")
21637
             //if (User.F_RoleCode == "ZJZY" || User.F_RoleCode == "GLY")
21622
             {
21638
             {
21623
                 string workorderid = RequestString.GetFormString("workorderid");
21639
                 string workorderid = RequestString.GetFormString("workorderid");
22333
             // var User = new BLL.T_Sys_UserAccount ().GetModel("8000");
22349
             // var User = new BLL.T_Sys_UserAccount ().GetModel("8000");
22334
 
22350
 
22335
 
22351
 
22336
-            if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ")
22352
+            if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXHWY" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "SPZ" || User.F_RoleCode == "SPZJZ")
22337
             //if (User.F_RoleCode == "ZJZY" || User.F_RoleCode == "GLY")
22353
             //if (User.F_RoleCode == "ZJZY" || User.F_RoleCode == "GLY")
22338
             {
22354
             {
22339
                 string workorderid = RequestString.GetFormString("workorderid");
22355
                 string workorderid = RequestString.GetFormString("workorderid");

+ 1 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Models/Common/ButtonGroup.cs

784
                     break;
784
                     break;
785
                 case "11":
785
                 case "11":
786
                     //调度专员 中心领导管理员 管理员
786
                     //调度专员 中心领导管理员 管理员
787
-                    if (code == "ZXLD" || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
787
+                    if (code == "ZXLD"  || code == "ZXLDGLYGLY" || code == "GLY" || code == "DDZG" || code == "SPZ" || code == "SPZJZ")
788
                     {
788
                     {
789
                         buttons.Add(reload()); buttons.Add(reject());
789
                         buttons.Add(reload()); buttons.Add(reject());
790
                     }
790
                     }