zhoufan лет назад: 8
Родитель
Сommit
aa2e77e0d5

+ 1 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/InfoController.cs

@@ -127,7 +127,7 @@ namespace CallCenterApi.Interface.Controllers
127 127
         //受理区域统计(按小时统计)
128 128
         private object GetAreaCount24()
129 129
         {
130
-            var areaList = new BLL.T_Sys_Area().GetModelList(" 1=1 ");
130
+            var areaList = new BLL.T_Sys_Area().GetModelList(" F_PrentId=0 and F_State=0 ");
131 131
 
132 132
             int[] hours = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 };
133 133
 

+ 31 - 107
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -77,7 +77,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
77 77
             //} 
78 78
             #endregion
79 79
 
80
-
81 80
             #region 多个上传
82 81
             HttpFileCollection files = RequestString.GetFiles();
83 82
             if (files.Count > 0)
@@ -299,7 +298,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
299 298
                     sql = " and F_IsDelete=1 and F_IsEnabled=0 ";
300 299
                     break;
301 300
                 case "0"://待处理工单
302
-                    sql += " and F_CreateUser='" + userModel.F_UserCode + "'";
301
+                    if (userModel.F_RoleCode != "GLY")
302
+                    {
303
+                        sql += " and F_CreateUser='" + userModel.F_UserCode + "'";
304
+                    }
303 305
 
304 306
                     if (strstate.Trim() != "" && strstate != "undefined")
305 307
                     {
@@ -718,7 +720,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
718 720
                     {
719 721
                         sql += " and F_WorkOrderId in (select F_WorkOrderId from T_Bus_AssignedInfo where F_State=1 and F_IsDelete=0 and "
720 722
                         + " (F_MainDeptId = " + userModel.F_DeptId + " or ','+F_OtherDeptIds+',' like '," + userModel.F_DeptId + ",'))";
721
-                    }                    
723
+                    }
722 724
                     break;
723 725
                 case "1"://已查收的工单
724 726
                     sql += "  and F_WorkOrderID in(select F_WorkOrderID from T_Bus_AssignedInfo where F_State=1 and F_IsDelete=0 and F_IsSure=1 ";
@@ -873,11 +875,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
873 875
             var config = configBll.GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
874 876
             foreach (DataRow dr in dt.Rows)
875 877
             {
876
-                if (dr["F_LeaveRecordId"] != null && dr["F_LeaveRecordId"].ToString()!="")
878
+                if (dr["F_LeaveRecordId"] != null && dr["F_LeaveRecordId"].ToString() != "")
877 879
                 {
878 880
                     dr["FilePath"] = GetLeavePath(dr["F_LeaveRecordId"].ToString(), config.F_ParamValue);
879 881
                 }
880
-                else if (dr["F_CallRecordId"] != null && dr["F_CallRecordId"].ToString()!="")
882
+                else if (dr["F_CallRecordId"] != null && dr["F_CallRecordId"].ToString() != "")
881 883
                 {
882 884
                     dr["FilePath"] = GetCallPath(dr["F_CallRecordId"].ToString(), config.F_ParamValue);
883 885
                 }
@@ -895,8 +897,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
895 897
             };
896 898
 
897 899
             return Content(obj.ToJson());
898
-
899
-
900 900
         }
901 901
 
902 902
         /// <summary>
@@ -906,7 +906,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
906 906
         [Authority]
907 907
         public ActionResult GetTimeOutList()
908 908
         {
909
-
910 909
             DataTable dt = new DataTable();
911 910
 
912 911
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
@@ -1022,11 +1021,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
1022 1021
             var config = configBll.GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
1023 1022
             foreach (DataRow dr in dt.Rows)
1024 1023
             {
1025
-                if (dr["F_LeaveRecordId"] != null && dr["F_LeaveRecordId"].ToString()!="")
1024
+                if (dr["F_LeaveRecordId"] != null && dr["F_LeaveRecordId"].ToString() != "")
1026 1025
                 {
1027 1026
                     dr["FilePath"] = GetLeavePath(dr["F_LeaveRecordId"].ToString(), config.F_ParamValue);
1028 1027
                 }
1029
-                else if (dr["F_CallRecordId"] != null && dr["F_CallRecordId"].ToString()!="")
1028
+                else if (dr["F_CallRecordId"] != null && dr["F_CallRecordId"].ToString() != "")
1030 1029
                 {
1031 1030
                     dr["FilePath"] = GetCallPath(dr["F_CallRecordId"].ToString(), config.F_ParamValue);
1032 1031
                 }
@@ -1046,8 +1045,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1046 1045
             };
1047 1046
 
1048 1047
             return Content(obj.ToJson());
1049
-
1050
-
1051 1048
         }
1052 1049
 
1053 1050
         /// <summary>
@@ -1062,6 +1059,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1062 1059
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
1063 1060
 
1064 1061
             string strworkorderid = HttpUtility.UrlDecode(RequestString.GetQueryString("workorderid"));
1062
+            int type = RequestString.GetInt("type", 0);//0基本信息1监察意见2领导批示3办理情况4回访信息5督办信息6办理过程
1065 1063
             if (!string.IsNullOrEmpty(strworkorderid))
1066 1064
             {
1067 1065
                 string sql = "select *,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName1,"
@@ -1090,11 +1088,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1090 1088
                                     + "from T_Bus_VisitResult where F_State=1 and F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "'";
1091 1089
                     string gcsql = "select *,dbo.GetUserName(F_CreateUser) as UserName "
1092 1090
                                     + "from T_Bus_Operation where F_IsDelete=0 and F_WorkOrderId ='" + strworkorderid + "'";
1093
-                    //if (userModel.F_RoleCode == "WLDW")
1094
-                    //{
1095
-                    //    jbsql += " and F_DeptId='" + userModel.F_DeptId + "'";
1096
-                    //    fksql += " and F_BackDeptId='" + userModel.F_DeptId + "'";
1097
-                    //}
1091
+
1098 1092
 
1099 1093
                     #region 声音文件
1100 1094
                     dt.Columns.Add("FilePath", typeof(string));
@@ -1211,8 +1205,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1211 1205
             {
1212 1206
                 return Error("参数传输失败");
1213 1207
             }
1214
-
1215
-
1216 1208
         }
1217 1209
 
1218 1210
         /// <summary>
@@ -1256,8 +1248,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1256 1248
             {
1257 1249
                 return Error("参数传输失败");
1258 1250
             }
1259
-
1260
-
1261 1251
         }
1262 1252
 
1263 1253
         /// <summary>
@@ -1301,8 +1291,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1301 1291
             {
1302 1292
                 return Error("参数传输失败");
1303 1293
             }
1304
-
1305
-
1306 1294
         }
1307 1295
 
1308 1296
         /// <summary>
@@ -1311,7 +1299,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1311 1299
         /// <returns></returns>
1312 1300
         public ActionResult AddWorkOrder()
1313 1301
         {
1314
-
1315 1302
             if (Request.IsAuthenticated)
1316 1303
             {
1317 1304
                 int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
@@ -1407,8 +1394,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
1407 1394
                                     modelT_Bus_WorkOrder.F_EndUser = userModel.F_UserCode;
1408 1395
                                     modelT_Bus_WorkOrder.F_EndTime = DateTime.Now;
1409 1396
                                     modelT_Bus_WorkOrder.F_IsClosed = 1;
1410
-                                    modelT_Bus_WorkOrder.F_CloseUser= userModel.F_UserCode;
1411
-                                    modelT_Bus_WorkOrder.F_CloseTime= DateTime.Now;
1397
+                                    modelT_Bus_WorkOrder.F_CloseUser = userModel.F_UserCode;
1398
+                                    modelT_Bus_WorkOrder.F_CloseTime = DateTime.Now;
1412 1399
                                 }
1413 1400
                                 else if (issubmit == 1)
1414 1401
                                 {
@@ -1569,8 +1556,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1569 1556
         [Authority]
1570 1557
         public ActionResult AddWorkOrderByLY()
1571 1558
         {
1572
-
1573
-
1574 1559
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
1575 1560
 
1576 1561
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -1729,8 +1714,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1729 1714
             {
1730 1715
                 return Error("权限不足");
1731 1716
             }
1732
-
1733
-
1734 1717
         }
1735 1718
 
1736 1719
         /// <summary>
@@ -1740,15 +1723,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
1740 1723
         [Authority]
1741 1724
         public ActionResult EditWorkOrder()
1742 1725
         {
1743
-
1744
-
1745 1726
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
1746 1727
 
1747 1728
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
1748 1729
 
1749 1730
             if (userModel.F_RoleCode == "ZXHWY" || userModel.F_RoleCode == "ZXBZ" || userModel.F_RoleCode == "GLY")
1750 1731
             {
1751
-
1752 1732
                 string workorderid = RequestString.GetFormString("workorderid");
1753 1733
 
1754 1734
                 int source = RequestString.GetInt("source", 0);
@@ -1889,8 +1869,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
1889 1869
             {
1890 1870
                 return Success("权限不足");
1891 1871
             }
1892
-
1893
-
1894 1872
         }
1895 1873
 
1896 1874
         /// <summary>
@@ -2051,8 +2029,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2051 2029
             {
2052 2030
                 return Success("权限不足");
2053 2031
             }
2054
-
2055
-
2056 2032
         }
2057 2033
 
2058 2034
         /// <summary>
@@ -2063,8 +2039,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2063 2039
         [Authority]
2064 2040
         public ActionResult SubmitWorkOrder(string[] ids)
2065 2041
         {
2066
-
2067
-
2068 2042
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2069 2043
 
2070 2044
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -2118,15 +2092,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
2118 2092
                 }
2119 2093
                 else
2120 2094
                 {
2121
-                    return Error("提交的ID不能为空");
2095
+                    return Error("操作失败");
2122 2096
                 }
2123 2097
             }
2124 2098
             else
2125 2099
             {
2126 2100
                 return Error("权限不足");
2127 2101
             }
2128
-
2129
-
2130 2102
         }
2131 2103
 
2132 2104
         /// <summary>
@@ -2137,7 +2109,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2137 2109
         [Authority]
2138 2110
         public ActionResult SuperWorkOrder()
2139 2111
         {
2140
-
2141 2112
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2142 2113
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
2143 2114
 
@@ -2194,8 +2165,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2194 2165
             {
2195 2166
                 return Error("操作失败");
2196 2167
             }
2197
-
2198
-
2199 2168
         }
2200 2169
 
2201 2170
         /// <summary>
@@ -2205,8 +2174,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2205 2174
         [Authority]
2206 2175
         public ActionResult AssignWorkOrder()
2207 2176
         {
2208
-
2209
-
2210 2177
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2211 2178
 
2212 2179
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -2226,6 +2193,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2226 2193
                 var deptinfo = new BLL.T_Sys_Department().GetModel(maindeptid);
2227 2194
                 if (modelT_Bus_WorkOrder != null && deptinfo != null)
2228 2195
                 {
2196
+                    int aid = 0;
2229 2197
                     using (TransactionScope trans = new TransactionScope())
2230 2198
                     {
2231 2199
                         if (assignid == 0)
@@ -2244,7 +2212,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2244 2212
                             modelT_Bus_AssignedInfo.F_IsOverdue = 0;
2245 2213
                             modelT_Bus_AssignedInfo.F_IsSure = 0;
2246 2214
                             modelT_Bus_AssignedInfo.F_IsReload = 0;
2247
-                            assignBLL.Add(modelT_Bus_AssignedInfo);
2215
+                            aid=assignBLL.Add(modelT_Bus_AssignedInfo);
2248 2216
 
2249 2217
                             #endregion
2250 2218
                         }
@@ -2263,6 +2231,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2263 2231
                                 modelT_Bus_AssignedInfo.F_CreateUser = userModel.F_UserCode;
2264 2232
                                 modelT_Bus_AssignedInfo.F_CreateTime = DateTime.Now;
2265 2233
                                 assignBLL.Update(modelT_Bus_AssignedInfo);
2234
+                                aid = modelT_Bus_AssignedInfo.F_Id;
2266 2235
                             }
2267 2236
 
2268 2237
                             #endregion
@@ -2305,7 +2274,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
2305 2274
                 }
2306 2275
                 else
2307 2276
                 {
2308
-                    return Error("无法查到原始工单" + workorderid + "/" + maindeptid);
2277
+                    return Error("操作失败");
2309 2278
                 }
2310 2279
 
2311 2280
             }
@@ -2313,8 +2282,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2313 2282
             {
2314 2283
                 return Error("权限不足");
2315 2284
             }
2316
-
2317
-
2318 2285
         }
2319 2286
 
2320 2287
         /// <summary>
@@ -2324,8 +2291,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2324 2291
         [Authority]
2325 2292
         public ActionResult TakeBackWorkOrder()
2326 2293
         {
2327
-
2328
-
2329 2294
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2330 2295
 
2331 2296
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -2417,8 +2382,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2417 2382
             {
2418 2383
                 return Error("权限不足");
2419 2384
             }
2420
-
2421
-
2422 2385
         }
2423 2386
 
2424 2387
         /// <summary>
@@ -2428,8 +2391,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2428 2391
         [Authority]
2429 2392
         public ActionResult ReceiveWorkOrder()
2430 2393
         {
2431
-
2432
-
2433 2394
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2434 2395
 
2435 2396
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -2492,8 +2453,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2492 2453
             {
2493 2454
                 return Error("权限不足");
2494 2455
             }
2495
-
2496
-
2497 2456
         }
2498 2457
 
2499 2458
         /// <summary>
@@ -2592,8 +2551,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2592 2551
             {
2593 2552
                 return Error("权限不足");
2594 2553
             }
2595
-
2596
-
2597 2554
         }
2598 2555
 
2599 2556
         /// <summary>
@@ -2603,8 +2560,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2603 2560
         [Authority]
2604 2561
         public ActionResult AuditRebackWorkOrder()
2605 2562
         {
2606
-
2607
-
2608 2563
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2609 2564
 
2610 2565
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -2724,8 +2679,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2724 2679
             {
2725 2680
                 return Error("权限不足");
2726 2681
             }
2727
-
2728
-
2729 2682
         }
2730 2683
 
2731 2684
         /// <summary>
@@ -2735,8 +2688,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2735 2688
         [Authority]
2736 2689
         public ActionResult DelayWorkOrder()
2737 2690
         {
2738
-
2739
-
2740 2691
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2741 2692
 
2742 2693
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -2808,14 +2759,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
2808 2759
                 {
2809 2760
                     return Error("操作失败");
2810 2761
                 }
2811
-
2812 2762
             }
2813 2763
             else
2814 2764
             {
2815 2765
                 return Error("权限不足");
2816 2766
             }
2817
-
2818
-
2819 2767
         }
2820 2768
 
2821 2769
         /// <summary>
@@ -2910,8 +2858,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2910 2858
             {
2911 2859
                 return Error("权限不足");
2912 2860
             }
2913
-
2914
-
2915 2861
         }
2916 2862
 
2917 2863
         /// <summary>
@@ -2921,8 +2867,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
2921 2867
         [Authority]
2922 2868
         public ActionResult FeedBackWorkOrder()
2923 2869
         {
2924
-
2925
-
2926 2870
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
2927 2871
 
2928 2872
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -3059,8 +3003,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3059 3003
             {
3060 3004
                 return Error("权限不足");
3061 3005
             }
3062
-
3063
-
3064 3006
         }
3065 3007
 
3066 3008
         /// <summary>
@@ -3070,8 +3012,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3070 3012
         [Authority]
3071 3013
         public ActionResult VisitWorkOrder()
3072 3014
         {
3073
-
3074
-
3075 3015
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
3076 3016
 
3077 3017
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -3086,9 +3026,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
3086 3026
                 int state = RequestString.GetInt("state", 0);//0保存 1保存并下一步
3087 3027
                 int visitid = RequestString.GetInt("visitid", 0);
3088 3028
                 string result = RequestString.GetFormString("result");//回访情况
3089
-                                                                      //int nexttype = RequestString.GetInt("nexttype", 0);//1重办 2结案
3090
-                                                                      //string overseeopinion = RequestString.GetFormString("overseeopinion");//督办意见
3091
-                                                                      //string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
3029
+                //int nexttype = RequestString.GetInt("nexttype", 0);//1重办 2结案
3030
+                //string overseeopinion = RequestString.GetFormString("overseeopinion");//督办意见
3031
+                //string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
3092 3032
 
3093 3033
                 string callid = RequestString.GetFormString("callid");
3094 3034
 
@@ -3214,7 +3154,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3214 3154
             {
3215 3155
                 return Error("权限不足");
3216 3156
             }
3217
-
3218 3157
         }
3219 3158
 
3220 3159
         /// <summary>
@@ -3224,8 +3163,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3224 3163
         [Authority]
3225 3164
         public ActionResult RemindWorkOrder()
3226 3165
         {
3227
-
3228
-
3229 3166
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
3230 3167
 
3231 3168
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -3282,8 +3219,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3282 3219
             {
3283 3220
                 return Error("操作失败");
3284 3221
             }
3285
-
3286
-
3287 3222
         }
3288 3223
 
3289 3224
         /// <summary>
@@ -3293,8 +3228,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3293 3228
         [Authority]
3294 3229
         public ActionResult ReloadWorkOrder()
3295 3230
         {
3296
-
3297
-
3298 3231
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
3299 3232
 
3300 3233
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -3405,8 +3338,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3405 3338
             {
3406 3339
                 return Error("权限不足");
3407 3340
             }
3408
-
3409
-
3410 3341
         }
3411 3342
 
3412 3343
         /// <summary>
@@ -3416,21 +3347,20 @@ namespace CallCenterApi.Interface.Controllers.workorder
3416 3347
         [Authority]
3417 3348
         public ActionResult FinishWorkOrder()
3418 3349
         {
3419
-
3420
-
3421 3350
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
3422 3351
 
3423 3352
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
3424 3353
 
3425
-            string workorderid = RequestString.GetFormString("workorderid");
3426
-            string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
3427
-            int issatisfie = RequestString.GetInt("issatisfie", 0);//0不满意 1满意
3428
-
3429
-            Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
3430
-            if (modelT_Bus_WorkOrder != null)
3354
+            if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
3431 3355
             {
3432
-                if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
3356
+                string workorderid = RequestString.GetFormString("workorderid");
3357
+                string finalopinion = RequestString.GetFormString("finalopinion");//结案意见
3358
+                int issatisfie = RequestString.GetInt("issatisfie", 0);//0不满意 1满意
3359
+
3360
+                Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
3361
+                if (modelT_Bus_WorkOrder != null)
3433 3362
                 {
3363
+
3434 3364
                     using (TransactionScope trans = new TransactionScope())
3435 3365
                     {
3436 3366
                         #region 修改工单记录
@@ -3465,15 +3395,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
3465 3395
                 }
3466 3396
                 else
3467 3397
                 {
3468
-                    return Error("权限不足");
3398
+                    return Error("操作失败");
3469 3399
                 }
3470 3400
             }
3471 3401
             else
3472 3402
             {
3473
-                return Error("操作失败");
3403
+                return Error("权限不足");
3474 3404
             }
3475
-
3476
-
3477 3405
         }
3478 3406
 
3479 3407
         /// <summary>
@@ -3482,8 +3410,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3482 3410
         /// <returns></returns>
3483 3411
         public ActionResult DelWorkOrder(string[] ids)
3484 3412
         {
3485
-
3486
-
3487 3413
             int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
3488 3414
 
3489 3415
             Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
@@ -3528,8 +3454,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
3528 3454
             {
3529 3455
                 return Error("权限不足");
3530 3456
             }
3531
-
3532
-
3533 3457
         }
3534 3458
 
3535 3459
         /// <summary>

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

@@ -121,7 +121,7 @@ namespace CallCenterApi.Interface.Models.Common
121 121
                 case "1":
122 122
                     if (code == "ZXLD"||code == "GLY")
123 123
                     {
124
-                        buttons.Add(assign()); buttons.Add(approval()); buttons.Add(instruct());
124
+                        buttons.Add(edit()); buttons.Add(assign()); buttons.Add(approval()); buttons.Add(instruct());
125 125
                     }
126 126
                     break;
127 127
                 case "2":