zhoufan 8 年 前
コミット
aa2e77e0d5

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

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

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

121
                 case "1":
121
                 case "1":
122
                     if (code == "ZXLD"||code == "GLY")
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
                     break;
126
                     break;
127
                 case "2":
127
                 case "2":