|
|
@@ -30,87 +30,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
30
|
30
|
private BLL.T_Bus_Operation operBLL = new BLL.T_Bus_Operation();
|
|
31
|
31
|
private BLL.T_Sys_SystemConfig configBll = new BLL.T_Sys_SystemConfig();
|
|
32
|
32
|
|
|
33
|
|
- /// <summary>
|
|
34
|
|
- /// 上传附件
|
|
35
|
|
- /// </summary>
|
|
36
|
|
- /// <returns></returns>
|
|
37
|
|
- [Authority]
|
|
38
|
|
- public ActionResult UploadFile()
|
|
39
|
|
- {
|
|
40
|
|
- int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
41
|
|
- Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
42
|
|
-
|
|
43
|
|
- #region 单个上传 no use
|
|
44
|
|
- //string path = string.Empty;
|
|
45
|
|
- //HttpPostedFile _upfile = RequestString.GetFile("upFile");
|
|
46
|
|
- //if (_upfile != null)
|
|
47
|
|
- //{
|
|
48
|
|
- // //byte[] buffer = new Byte[(int)_upfile.InputStream.Length]; //声明文件长度的二进制类型
|
|
49
|
|
- // //_upfile.InputStream.Read(buffer, 0, buffer.Length); //将文件转成二进制
|
|
50
|
|
- // string name = string.Empty;
|
|
51
|
|
- // FileUp fu = new FileUp();
|
|
52
|
|
- // var model = configBll.GetModelList(" F_ParamCode='FilePath' ").FirstOrDefault();
|
|
53
|
|
- // if (model != null)
|
|
54
|
|
- // {
|
|
55
|
|
- // name = fu.Upload(_upfile, model.F_ParamValue);
|
|
56
|
|
-
|
|
57
|
|
- // Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
|
|
58
|
|
- // model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
|
|
59
|
|
- // model_T_Sys_Accessories.F_FileName = name;//附件名称
|
|
60
|
|
- // model_T_Sys_Accessories.F_FileType = System.IO.Path.GetExtension(_upfile.FileName);//附件类型
|
|
61
|
|
- // model_T_Sys_Accessories.F_FileUrl = model.F_ParamValue + name;//附件地址
|
|
62
|
|
- // model_T_Sys_Accessories.F_Size = _upfile.ContentLength;
|
|
63
|
|
- // model_T_Sys_Accessories.F_UserCode = userModel.F_UserCode;//上传人
|
|
64
|
|
- // int p_fuId = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
|
|
65
|
|
-
|
|
66
|
|
- // return Success("成功", model_T_Sys_Accessories);
|
|
67
|
|
- // }
|
|
68
|
|
- // else
|
|
69
|
|
- // {
|
|
70
|
|
- // return Error("上传失败");
|
|
71
|
|
- // }
|
|
72
|
|
-
|
|
73
|
|
- //}
|
|
74
|
|
- //else
|
|
75
|
|
- //{
|
|
76
|
|
- // return Error("请选择要上传的文件");
|
|
77
|
|
- //}
|
|
78
|
|
- #endregion
|
|
79
|
|
-
|
|
80
|
|
- #region 多个上传
|
|
81
|
|
- HttpFileCollection files = RequestString.GetFiles();
|
|
82
|
|
- if (files.Count > 0)
|
|
83
|
|
- {
|
|
84
|
|
- List<Model.T_Sys_Accessories> acs = new List<Model.T_Sys_Accessories>();
|
|
85
|
|
- string path = "/Upload/Files/" + DateTime.Now.ToString("yyyy") + "/" + DateTime.Now.ToString("MM") + "/" + DateTime.Now.ToString("dd") + "/";
|
|
86
|
|
- for (int i = 0; i < files.Count; i++)
|
|
87
|
|
- {
|
|
88
|
|
- HttpPostedFile file = files[i];
|
|
89
|
|
- FileUp fu = new FileUp();
|
|
90
|
|
-
|
|
91
|
|
- string name = fu.Upload(file, path);
|
|
92
|
|
-
|
|
93
|
|
- Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
|
|
94
|
|
- model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
|
|
95
|
|
- model_T_Sys_Accessories.F_FileName = name;//附件名称
|
|
96
|
|
- model_T_Sys_Accessories.F_FileType = System.IO.Path.GetExtension(file.FileName);//附件类型
|
|
97
|
|
- model_T_Sys_Accessories.F_FileUrl = path + name;//附件地址
|
|
98
|
|
- model_T_Sys_Accessories.F_Size = file.ContentLength;
|
|
99
|
|
- model_T_Sys_Accessories.F_UserCode = userModel.F_UserCode;//上传人
|
|
100
|
|
- int id = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
|
|
101
|
|
- model_T_Sys_Accessories.F_FileId = id;
|
|
102
|
|
- acs.Add(model_T_Sys_Accessories);
|
|
103
|
|
- }
|
|
104
|
|
-
|
|
105
|
|
- return Success("成功", acs);
|
|
106
|
|
- }
|
|
107
|
|
- else
|
|
108
|
|
- {
|
|
109
|
|
- return Error("请选择要上传的文件");
|
|
110
|
|
- }
|
|
111
|
|
- #endregion
|
|
112
|
|
-
|
|
113
|
|
- }
|
|
|
33
|
+ #region 获取工单
|
|
114
|
34
|
|
|
115
|
35
|
/// <summary>
|
|
116
|
36
|
/// 获取工单列表
|
|
|
@@ -323,7 +243,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
323
|
243
|
}
|
|
324
|
244
|
break;
|
|
325
|
245
|
case "1"://已提交的工单
|
|
326
|
|
- sql += " and F_WorkOrderID in(select F_WorkOrderID from T_Bus_SubmitSuper where F_State=1 and F_IsDelete=0 ";
|
|
|
246
|
+ //sql += " and F_WorkOrderID in(select F_WorkOrderID from T_Bus_SubmitSuper where F_State=1 and F_IsDelete=0 ";
|
|
|
247
|
+ sql += " and F_WorkState >0 ";
|
|
327
|
248
|
if (userModel.F_RoleCode != "GLY")
|
|
328
|
249
|
{
|
|
329
|
250
|
sql += " and F_CreateUser='" + userModel.F_UserCode + "')";
|
|
|
@@ -348,7 +269,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
348
|
269
|
sql += " and F_WorkState=0 and F_IsReturn=1 ";
|
|
349
|
270
|
if (userModel.F_RoleCode != "GLY")
|
|
350
|
271
|
{
|
|
351
|
|
- sql += " and F_CreateUser='" + userModel.F_UserCode ;
|
|
|
272
|
+ sql += " and F_CreateUser='" + userModel.F_UserCode;
|
|
352
|
273
|
}
|
|
353
|
274
|
|
|
354
|
275
|
break;
|
|
|
@@ -452,7 +373,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
452
|
373
|
{
|
|
453
|
374
|
dr["FilePath"] = GetCallPath(dr["F_CallRecordId"].ToString(), config.F_ParamValue);
|
|
454
|
375
|
}
|
|
455
|
|
- if (Int32.Parse( strtab) ==0)
|
|
|
376
|
+ if (Int32.Parse(strtab) == 0)
|
|
456
|
377
|
{
|
|
457
|
378
|
dr["Buttons"] = ButtonGroup.GetButtons(dr["F_WorkState"].ToString(), userModel.F_RoleCode.ToUpper());
|
|
458
|
379
|
}
|
|
|
@@ -1362,7 +1283,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1362
|
1283
|
case 1: sql = "select top 1 * from T_Bus_Feedback where F_Type=3 and"; break;
|
|
1363
|
1284
|
case 2: sql = "select top 1 * from T_Bus_DelayTime where"; break;
|
|
1364
|
1285
|
}
|
|
1365
|
|
- sql += " F_WorkOrderId='"+ strworkorderid + "' and F_State=1 and F_IsDelete=0 and F_IsAudit=0 order by F_CreateTime desc";
|
|
|
1286
|
+ sql += " F_WorkOrderId='" + strworkorderid + "' and F_State=1 and F_IsDelete=0 and F_IsAudit=0 order by F_CreateTime desc";
|
|
1366
|
1287
|
var dt = DbHelperSQL.Query(sql).Tables[0];
|
|
1367
|
1288
|
if (dt.Rows.Count > 0)
|
|
1368
|
1289
|
{
|
|
|
@@ -1384,6 +1305,90 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1384
|
1305
|
return Error("参数传输失败");
|
|
1385
|
1306
|
}
|
|
1386
|
1307
|
}
|
|
|
1308
|
+ #endregion
|
|
|
1309
|
+
|
|
|
1310
|
+ #region 新增工单
|
|
|
1311
|
+ /// <summary>
|
|
|
1312
|
+ /// 上传附件
|
|
|
1313
|
+ /// </summary>
|
|
|
1314
|
+ /// <returns></returns>
|
|
|
1315
|
+ [Authority]
|
|
|
1316
|
+ public ActionResult UploadFile()
|
|
|
1317
|
+ {
|
|
|
1318
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
1319
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
1320
|
+
|
|
|
1321
|
+ #region 单个上传 no use
|
|
|
1322
|
+ //string path = string.Empty;
|
|
|
1323
|
+ //HttpPostedFile _upfile = RequestString.GetFile("upFile");
|
|
|
1324
|
+ //if (_upfile != null)
|
|
|
1325
|
+ //{
|
|
|
1326
|
+ // //byte[] buffer = new Byte[(int)_upfile.InputStream.Length]; //声明文件长度的二进制类型
|
|
|
1327
|
+ // //_upfile.InputStream.Read(buffer, 0, buffer.Length); //将文件转成二进制
|
|
|
1328
|
+ // string name = string.Empty;
|
|
|
1329
|
+ // FileUp fu = new FileUp();
|
|
|
1330
|
+ // var model = configBll.GetModelList(" F_ParamCode='FilePath' ").FirstOrDefault();
|
|
|
1331
|
+ // if (model != null)
|
|
|
1332
|
+ // {
|
|
|
1333
|
+ // name = fu.Upload(_upfile, model.F_ParamValue);
|
|
|
1334
|
+
|
|
|
1335
|
+ // Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
|
|
|
1336
|
+ // model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
|
|
|
1337
|
+ // model_T_Sys_Accessories.F_FileName = name;//附件名称
|
|
|
1338
|
+ // model_T_Sys_Accessories.F_FileType = System.IO.Path.GetExtension(_upfile.FileName);//附件类型
|
|
|
1339
|
+ // model_T_Sys_Accessories.F_FileUrl = model.F_ParamValue + name;//附件地址
|
|
|
1340
|
+ // model_T_Sys_Accessories.F_Size = _upfile.ContentLength;
|
|
|
1341
|
+ // model_T_Sys_Accessories.F_UserCode = userModel.F_UserCode;//上传人
|
|
|
1342
|
+ // int p_fuId = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
|
|
|
1343
|
+
|
|
|
1344
|
+ // return Success("成功", model_T_Sys_Accessories);
|
|
|
1345
|
+ // }
|
|
|
1346
|
+ // else
|
|
|
1347
|
+ // {
|
|
|
1348
|
+ // return Error("上传失败");
|
|
|
1349
|
+ // }
|
|
|
1350
|
+
|
|
|
1351
|
+ //}
|
|
|
1352
|
+ //else
|
|
|
1353
|
+ //{
|
|
|
1354
|
+ // return Error("请选择要上传的文件");
|
|
|
1355
|
+ //}
|
|
|
1356
|
+ #endregion
|
|
|
1357
|
+
|
|
|
1358
|
+ #region 多个上传
|
|
|
1359
|
+ HttpFileCollection files = RequestString.GetFiles();
|
|
|
1360
|
+ if (files.Count > 0)
|
|
|
1361
|
+ {
|
|
|
1362
|
+ List<Model.T_Sys_Accessories> acs = new List<Model.T_Sys_Accessories>();
|
|
|
1363
|
+ string path = "/Upload/Files/" + DateTime.Now.ToString("yyyy") + "/" + DateTime.Now.ToString("MM") + "/" + DateTime.Now.ToString("dd") + "/";
|
|
|
1364
|
+ for (int i = 0; i < files.Count; i++)
|
|
|
1365
|
+ {
|
|
|
1366
|
+ HttpPostedFile file = files[i];
|
|
|
1367
|
+ FileUp fu = new FileUp();
|
|
|
1368
|
+
|
|
|
1369
|
+ string name = fu.Upload(file, path);
|
|
|
1370
|
+
|
|
|
1371
|
+ Model.T_Sys_Accessories model_T_Sys_Accessories = new Model.T_Sys_Accessories();
|
|
|
1372
|
+ model_T_Sys_Accessories.F_AddTime = DateTime.Now;//上传时间
|
|
|
1373
|
+ model_T_Sys_Accessories.F_FileName = name;//附件名称
|
|
|
1374
|
+ model_T_Sys_Accessories.F_FileType = System.IO.Path.GetExtension(file.FileName);//附件类型
|
|
|
1375
|
+ model_T_Sys_Accessories.F_FileUrl = path + name;//附件地址
|
|
|
1376
|
+ model_T_Sys_Accessories.F_Size = file.ContentLength;
|
|
|
1377
|
+ model_T_Sys_Accessories.F_UserCode = userModel.F_UserCode;//上传人
|
|
|
1378
|
+ int id = new BLL.T_Sys_Accessories().Add(model_T_Sys_Accessories);
|
|
|
1379
|
+ model_T_Sys_Accessories.F_FileId = id;
|
|
|
1380
|
+ acs.Add(model_T_Sys_Accessories);
|
|
|
1381
|
+ }
|
|
|
1382
|
+
|
|
|
1383
|
+ return Success("成功", acs);
|
|
|
1384
|
+ }
|
|
|
1385
|
+ else
|
|
|
1386
|
+ {
|
|
|
1387
|
+ return Error("请选择要上传的文件");
|
|
|
1388
|
+ }
|
|
|
1389
|
+ #endregion
|
|
|
1390
|
+
|
|
|
1391
|
+ }
|
|
1387
|
1392
|
|
|
1388
|
1393
|
/// <summary>
|
|
1389
|
1394
|
/// 添加工单信息
|
|
|
@@ -1810,6 +1815,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1810
|
1815
|
return Error("权限不足");
|
|
1811
|
1816
|
}
|
|
1812
|
1817
|
}
|
|
|
1818
|
+ #endregion
|
|
|
1819
|
+
|
|
|
1820
|
+ #region 操作工单
|
|
1813
|
1821
|
|
|
1814
|
1822
|
/// <summary>
|
|
1815
|
1823
|
/// 修改工单信息
|
|
|
@@ -2245,12 +2253,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2245
|
2253
|
Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = new BLL.T_Bus_WorkOrder().GetModel(workorderid);
|
|
2246
|
2254
|
if (modelT_Bus_WorkOrder != null)
|
|
2247
|
2255
|
{
|
|
2248
|
|
- if (modelT_Bus_WorkOrder.F_WorkState == 1)
|
|
|
2256
|
+ if (modelT_Bus_WorkOrder.F_WorkState == 1 || (modelT_Bus_WorkOrder.F_WorkState == 9 && modelT_Bus_WorkOrder.F_IsResult==1))
|
|
2249
|
2257
|
{
|
|
2250
|
2258
|
using (TransactionScope trans = new TransactionScope())
|
|
2251
|
2259
|
{
|
|
2252
|
2260
|
#region 保存工单信息
|
|
2253
|
2261
|
modelT_Bus_WorkOrder.F_WorkState = 0;
|
|
|
2262
|
+ modelT_Bus_WorkOrder.F_IsResult = 0;
|
|
2254
|
2263
|
modelT_Bus_WorkOrder.F_IsReturn = 1;
|
|
2255
|
2264
|
workorderBLL.Update(modelT_Bus_WorkOrder);
|
|
2256
|
2265
|
#endregion
|
|
|
@@ -2297,7 +2306,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2297
|
2306
|
{
|
|
2298
|
2307
|
return Error("操作失败");
|
|
2299
|
2308
|
}
|
|
2300
|
|
- }
|
|
|
2309
|
+ }
|
|
2301
|
2310
|
|
|
2302
|
2311
|
/// <summary>
|
|
2303
|
2312
|
/// 领导批示/市长指示
|
|
|
@@ -2828,7 +2837,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2828
|
2837
|
#endregion
|
|
2829
|
2838
|
|
|
2830
|
2839
|
#region 保存工单信息
|
|
2831
|
|
-
|
|
|
2840
|
+
|
|
2832
|
2841
|
modelT_Bus_WorkOrder.F_WorkState = 1;//待交办
|
|
2833
|
2842
|
workorderBLL.Update(modelT_Bus_WorkOrder);
|
|
2834
|
2843
|
#endregion
|
|
|
@@ -3743,7 +3752,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3743
|
3752
|
if (modelT_Bus_WorkOrder.F_InfoSource == 7 && modelT_Bus_WorkOrder.F_WorkState == 9)
|
|
3744
|
3753
|
{
|
|
3745
|
3754
|
ShangQiuWorkOrderController sqwo = new ShangQiuWorkOrderController();
|
|
3746
|
|
- bool bl=sqwo.SaveReplyInfo(oper.F_WorkOrderId, userModel.F_UserCode, userModel.depname, modelT_Bus_WorkOrder.F_Result, "3", modelT_Bus_WorkOrder.F_InfoType.Value.ToString());
|
|
|
3755
|
+ bool bl = sqwo.SaveReplyInfo(oper.F_WorkOrderId, userModel.F_UserCode, userModel.depname, modelT_Bus_WorkOrder.F_Result, "3", modelT_Bus_WorkOrder.F_InfoType.Value.ToString());
|
|
3747
|
3756
|
if (bl)
|
|
3748
|
3757
|
{
|
|
3749
|
3758
|
Success("调用成功,工单号:" + oper.F_WorkOrderId);
|
|
|
@@ -3823,8 +3832,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3823
|
3832
|
{
|
|
3824
|
3833
|
return Error("权限不足");
|
|
3825
|
3834
|
}
|
|
3826
|
|
- }
|
|
|
3835
|
+ }
|
|
|
3836
|
+ #endregion
|
|
3827
|
3837
|
|
|
|
3838
|
+ #region 语音附件其他
|
|
3828
|
3839
|
/// <summary>
|
|
3829
|
3840
|
/// 验证当前单位是否交办单位
|
|
3830
|
3841
|
/// </summary>
|
|
|
@@ -3922,7 +3933,384 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3922
|
3933
|
}
|
|
3923
|
3934
|
}
|
|
3924
|
3935
|
return dt;
|
|
|
3936
|
+ }
|
|
|
3937
|
+ #endregion
|
|
|
3938
|
+
|
|
|
3939
|
+ #region 修改工单 by admin
|
|
|
3940
|
+ /// <summary>
|
|
|
3941
|
+ /// 修改工单信息
|
|
|
3942
|
+ /// </summary>
|
|
|
3943
|
+ /// <returns></returns>
|
|
|
3944
|
+ [Authority]
|
|
|
3945
|
+ public ActionResult EditWorkOrderByAdmin()
|
|
|
3946
|
+ {
|
|
|
3947
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
3948
|
+
|
|
|
3949
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
3950
|
+
|
|
|
3951
|
+ if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
|
|
|
3952
|
+ {
|
|
|
3953
|
+ string workorderid = RequestString.GetFormString("workorderid");
|
|
|
3954
|
+
|
|
|
3955
|
+ int source = RequestString.GetInt("source", 0);
|
|
|
3956
|
+
|
|
|
3957
|
+ string cusname = RequestString.GetFormString("cusname");
|
|
|
3958
|
+ string cussex = RequestString.GetFormString("cussex");
|
|
|
3959
|
+ string cusphone = RequestString.GetFormString("cusphone");
|
|
|
3960
|
+ string cusaddress = RequestString.GetFormString("cusaddress");
|
|
|
3961
|
+ string email = RequestString.GetFormString("email");
|
|
|
3962
|
+ string zipcode = RequestString.GetFormString("zipcode");
|
|
|
3963
|
+ string conname = RequestString.GetFormString("conname");
|
|
|
3964
|
+ string conphone = RequestString.GetFormString("conphone");
|
|
|
3965
|
+
|
|
|
3966
|
+ string title = RequestString.GetFormString("title");
|
|
|
3967
|
+ string content = RequestString.GetFormString("content");
|
|
|
3968
|
+ string files = RequestString.GetFormString("files");
|
|
|
3969
|
+ int sourcearea = RequestString.GetInt("sourcearea", 0);
|
|
|
3970
|
+ string sourceaddress = RequestString.GetFormString("sourceaddress");
|
|
|
3971
|
+
|
|
|
3972
|
+ string keys = RequestString.GetFormString("keys");
|
|
|
3973
|
+ string splituser = RequestString.GetFormString("splituser");
|
|
|
3974
|
+
|
|
|
3975
|
+ int type = RequestString.GetInt("type", 0);
|
|
|
3976
|
+ int bigtype = RequestString.GetInt("bigtype", 0);
|
|
|
3977
|
+ int smalltype = RequestString.GetInt("smalltype", 0);
|
|
|
3978
|
+
|
|
|
3979
|
+ int isprotect = RequestString.GetInt("isprotect", 0);
|
|
|
3980
|
+ int level = RequestString.GetInt("level", 0);
|
|
|
3981
|
+
|
|
|
3982
|
+ Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
|
|
|
3983
|
+ if (modelT_Bus_WorkOrder != null)
|
|
|
3984
|
+ {
|
|
|
3985
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
3986
|
+ {
|
|
|
3987
|
+ #region 保存工单信息
|
|
|
3988
|
+
|
|
|
3989
|
+ modelT_Bus_WorkOrder.F_InfoSource = source;//信息来源
|
|
|
3990
|
+
|
|
|
3991
|
+ modelT_Bus_WorkOrder.F_InfoType = type;//信息类别
|
|
|
3992
|
+ modelT_Bus_WorkOrder.F_InfoConBigType = bigtype;//内容大类
|
|
|
3993
|
+ modelT_Bus_WorkOrder.F_InfoConSmallType = smalltype;//内容小类
|
|
|
3994
|
+ modelT_Bus_WorkOrder.F_SourceArea = sourcearea;//反映地域
|
|
|
3995
|
+ modelT_Bus_WorkOrder.F_SourceAddress = sourceaddress;//事发地址
|
|
|
3996
|
+
|
|
|
3997
|
+ modelT_Bus_WorkOrder.F_CusName = cusname;//投诉人姓名
|
|
|
3998
|
+ modelT_Bus_WorkOrder.F_CusSex = cussex;//性别
|
|
|
3999
|
+ modelT_Bus_WorkOrder.F_CusPhone = cusphone;//来电号码
|
|
|
4000
|
+ modelT_Bus_WorkOrder.F_CusAddress = cusaddress;//地址
|
|
|
4001
|
+ modelT_Bus_WorkOrder.F_ZipCode = zipcode;//邮编
|
|
|
4002
|
+ modelT_Bus_WorkOrder.F_ConName = conname;//联系人姓名
|
|
|
4003
|
+ modelT_Bus_WorkOrder.F_ConPhone = conphone;//联系人电话
|
|
|
4004
|
+ modelT_Bus_WorkOrder.F_Email = email;//E-mail
|
|
|
4005
|
+
|
|
|
4006
|
+ modelT_Bus_WorkOrder.F_ComTitle = title;//标题
|
|
|
4007
|
+ modelT_Bus_WorkOrder.F_ComContent = content;//情况摘要(投诉内容)
|
|
|
4008
|
+ modelT_Bus_WorkOrder.F_File = files;//附件
|
|
|
4009
|
+ modelT_Bus_WorkOrder.F_IsProtect = isprotect;//保密方式0否1是
|
|
|
4010
|
+
|
|
|
4011
|
+ modelT_Bus_WorkOrder.F_Key = keys;
|
|
|
4012
|
+ modelT_Bus_WorkOrder.F_Level = level;
|
|
|
4013
|
+
|
|
|
4014
|
+ workorderBLL.Update(modelT_Bus_WorkOrder);
|
|
|
4015
|
+ #endregion
|
|
|
4016
|
+
|
|
|
4017
|
+ #region 插入操作记录
|
|
|
4018
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
4019
|
+ oper.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
|
|
|
4020
|
+ oper.F_State = modelT_Bus_WorkOrder.F_WorkState;
|
|
|
4021
|
+ oper.F_CallRecordId = modelT_Bus_WorkOrder.F_CallRecordId;
|
|
|
4022
|
+ oper.F_File = modelT_Bus_WorkOrder.F_File;
|
|
|
4023
|
+
|
|
|
4024
|
+ string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
|
|
|
4025
|
+ oper.F_Message = userinfo + " 修改了工单基本信息";
|
|
|
4026
|
+ oper.F_CreateUser = userModel.F_UserCode;
|
|
|
4027
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
4028
|
+ oper.F_IsDelete = 0;
|
|
|
4029
|
+
|
|
|
4030
|
+ operBLL.Add(oper);
|
|
|
4031
|
+ #endregion
|
|
|
4032
|
+
|
|
|
4033
|
+ trans.Complete();
|
|
|
4034
|
+ }
|
|
|
4035
|
+ return Success("操作成功");
|
|
|
4036
|
+
|
|
|
4037
|
+ }
|
|
|
4038
|
+ else
|
|
|
4039
|
+ {
|
|
|
4040
|
+ return Error("操作失败");
|
|
|
4041
|
+ }
|
|
|
4042
|
+ }
|
|
|
4043
|
+ else
|
|
|
4044
|
+ {
|
|
|
4045
|
+ return Success("权限不足");
|
|
|
4046
|
+ }
|
|
|
4047
|
+ }
|
|
|
4048
|
+
|
|
|
4049
|
+ /// <summary>
|
|
|
4050
|
+ /// 修改批示信息
|
|
|
4051
|
+ /// </summary>
|
|
|
4052
|
+ /// <returns></returns>
|
|
|
4053
|
+ [Authority]
|
|
|
4054
|
+ public ActionResult EditSuperInfoByAdmin()
|
|
|
4055
|
+ {
|
|
|
4056
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
4057
|
+
|
|
|
4058
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
4059
|
+
|
|
|
4060
|
+ if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
|
|
|
4061
|
+ {
|
|
|
4062
|
+ int type = RequestString.GetInt("type", 0);//1领导批示 2市长指示
|
|
|
4063
|
+ string superuser = RequestString.GetFormString("superuser");
|
|
|
4064
|
+ string superopinion = RequestString.GetFormString("superopinion");
|
|
|
4065
|
+ string files = RequestString.GetFormString("files");
|
|
|
4066
|
+ int id = RequestString.GetInt("id", 0);
|
|
|
4067
|
+
|
|
|
4068
|
+ Model.T_Bus_SubmitSuper model_T_Bus_SubmitSuper = new BLL.T_Bus_SubmitSuper().GetModel(id);
|
|
|
4069
|
+ if (model_T_Bus_SubmitSuper != null)
|
|
|
4070
|
+ {
|
|
|
4071
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
4072
|
+ {
|
|
|
4073
|
+ #region 保存批示信息
|
|
|
4074
|
+
|
|
|
4075
|
+ model_T_Bus_SubmitSuper.F_Type = type;//1领导批示 2市长指示
|
|
|
4076
|
+ model_T_Bus_SubmitSuper.F_BatchReason = superuser;//批示人
|
|
|
4077
|
+ model_T_Bus_SubmitSuper.F_SuperOpinion = superopinion;//批示内容
|
|
|
4078
|
+ model_T_Bus_SubmitSuper.F_File = files;//附件
|
|
|
4079
|
+
|
|
|
4080
|
+ new BLL.T_Bus_SubmitSuper().Update(model_T_Bus_SubmitSuper);
|
|
|
4081
|
+ #endregion
|
|
|
4082
|
+
|
|
|
4083
|
+ #region 插入操作记录
|
|
|
4084
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
4085
|
+ oper.F_WorkOrderId = model_T_Bus_SubmitSuper.F_WorkOrderId;
|
|
|
4086
|
+ oper.F_File = model_T_Bus_SubmitSuper.F_File;
|
|
|
4087
|
+
|
|
|
4088
|
+ string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
|
|
|
4089
|
+ oper.F_Message = userinfo + " 修改了工单批示信息";
|
|
|
4090
|
+ oper.F_CreateUser = userModel.F_UserCode;
|
|
|
4091
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
4092
|
+ oper.F_IsDelete = 0;
|
|
|
4093
|
+
|
|
|
4094
|
+ operBLL.Add(oper);
|
|
|
4095
|
+ #endregion
|
|
|
4096
|
+
|
|
|
4097
|
+ trans.Complete();
|
|
|
4098
|
+ }
|
|
|
4099
|
+ return Success("操作成功");
|
|
|
4100
|
+
|
|
|
4101
|
+ }
|
|
|
4102
|
+ else
|
|
|
4103
|
+ {
|
|
|
4104
|
+ return Error("操作失败");
|
|
|
4105
|
+ }
|
|
|
4106
|
+ }
|
|
|
4107
|
+ else
|
|
|
4108
|
+ {
|
|
|
4109
|
+ return Success("权限不足");
|
|
|
4110
|
+ }
|
|
|
4111
|
+ }
|
|
|
4112
|
+
|
|
|
4113
|
+ /// <summary>
|
|
|
4114
|
+ /// 修改交办信息
|
|
|
4115
|
+ /// </summary>
|
|
|
4116
|
+ /// <returns></returns>
|
|
|
4117
|
+ [Authority]
|
|
|
4118
|
+ public ActionResult EditAssignInfoByAdmin()
|
|
|
4119
|
+ {
|
|
|
4120
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
4121
|
+
|
|
|
4122
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
4123
|
+
|
|
|
4124
|
+ if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
|
|
|
4125
|
+ {
|
|
|
4126
|
+ int assignid = RequestString.GetInt("id", 0);
|
|
|
4127
|
+ int maindeptid = RequestString.GetInt("maindeptid", 0);
|
|
|
4128
|
+ string otherdeptids = RequestString.GetFormString("otherdeptids");
|
|
|
4129
|
+ DateTime limittime = DateTime.Parse(RequestString.GetFormString("limittime"));
|
|
|
4130
|
+ string assignedopinion = RequestString.GetFormString("assignedopinion");
|
|
|
4131
|
+
|
|
|
4132
|
+ Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetModel(assignid);
|
|
|
4133
|
+ if (modelT_Bus_AssignedInfo != null)
|
|
|
4134
|
+ {
|
|
|
4135
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
4136
|
+ {
|
|
|
4137
|
+ #region 保存交办信息
|
|
|
4138
|
+
|
|
|
4139
|
+ modelT_Bus_AssignedInfo.F_LimitTime = limittime;//办理时限
|
|
|
4140
|
+ modelT_Bus_AssignedInfo.F_MainDeptId = maindeptid;//主办单位id
|
|
|
4141
|
+ modelT_Bus_AssignedInfo.F_OtherDeptIds = otherdeptids;//协办单位id
|
|
|
4142
|
+ modelT_Bus_AssignedInfo.F_AssignedOpinion = assignedopinion;//交办意见
|
|
|
4143
|
+
|
|
|
4144
|
+ assignBLL.Update(modelT_Bus_AssignedInfo);
|
|
|
4145
|
+ #endregion
|
|
|
4146
|
+
|
|
|
4147
|
+ #region 插入操作记录
|
|
|
4148
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
4149
|
+ oper.F_WorkOrderId = modelT_Bus_AssignedInfo.F_WorkOrderId;
|
|
|
4150
|
+ oper.F_File = modelT_Bus_AssignedInfo.F_File;
|
|
|
4151
|
+
|
|
|
4152
|
+ string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
|
|
|
4153
|
+ oper.F_Message = userinfo + " 修改了工单交办信息";
|
|
|
4154
|
+ oper.F_CreateUser = userModel.F_UserCode;
|
|
|
4155
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
4156
|
+ oper.F_IsDelete = 0;
|
|
|
4157
|
+
|
|
|
4158
|
+ operBLL.Add(oper);
|
|
|
4159
|
+ #endregion
|
|
|
4160
|
+
|
|
|
4161
|
+ trans.Complete();
|
|
|
4162
|
+ }
|
|
|
4163
|
+ return Success("操作成功");
|
|
|
4164
|
+
|
|
|
4165
|
+ }
|
|
|
4166
|
+ else
|
|
|
4167
|
+ {
|
|
|
4168
|
+ return Error("操作失败");
|
|
|
4169
|
+ }
|
|
|
4170
|
+ }
|
|
|
4171
|
+ else
|
|
|
4172
|
+ {
|
|
|
4173
|
+ return Success("权限不足");
|
|
|
4174
|
+ }
|
|
|
4175
|
+ }
|
|
|
4176
|
+
|
|
|
4177
|
+ /// <summary>
|
|
|
4178
|
+ /// 修改办理信息
|
|
|
4179
|
+ /// </summary>
|
|
|
4180
|
+ /// <returns></returns>
|
|
|
4181
|
+ [Authority]
|
|
|
4182
|
+ public ActionResult EditFeedBackInfoByAdmin()
|
|
|
4183
|
+ {
|
|
|
4184
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
4185
|
+
|
|
|
4186
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
4187
|
+
|
|
|
4188
|
+ if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
|
|
|
4189
|
+ {
|
|
|
4190
|
+ string dealman = RequestString.GetFormString("dealman");
|
|
|
4191
|
+ string result = RequestString.GetFormString("result");
|
|
|
4192
|
+ string files = RequestString.GetFormString("files");
|
|
|
4193
|
+ int feedbackid = RequestString.GetInt("id", 0);
|
|
|
4194
|
+
|
|
|
4195
|
+ Model.T_Bus_Feedback model_T_Bus_Feedback = new BLL.T_Bus_Feedback().GetModel(feedbackid);
|
|
|
4196
|
+ if (model_T_Bus_Feedback != null)
|
|
|
4197
|
+ {
|
|
|
4198
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
4199
|
+ {
|
|
|
4200
|
+ #region 保存办理信息
|
|
|
4201
|
+
|
|
|
4202
|
+ model_T_Bus_Feedback.F_DealUser = dealman;
|
|
|
4203
|
+ model_T_Bus_Feedback.F_Result = result;//反馈内容
|
|
|
4204
|
+ model_T_Bus_Feedback.F_File = files;
|
|
|
4205
|
+
|
|
|
4206
|
+ new BLL.T_Bus_Feedback().Update(model_T_Bus_Feedback);
|
|
|
4207
|
+ #endregion
|
|
|
4208
|
+
|
|
|
4209
|
+ #region 保存工单信息
|
|
|
4210
|
+ var assign = assignBLL.GetModel(model_T_Bus_Feedback.F_AssignedId.Value);
|
|
|
4211
|
+ if (assign.F_IsReload != null && assign.F_IsReload != 1)
|
|
|
4212
|
+ {
|
|
|
4213
|
+ var order = workorderBLL.GetModel(model_T_Bus_Feedback.F_WorkOrderId);
|
|
|
4214
|
+ order.F_Result= result;//反馈内容
|
|
|
4215
|
+
|
|
|
4216
|
+ workorderBLL.Update(order);
|
|
|
4217
|
+ }
|
|
|
4218
|
+ #endregion
|
|
|
4219
|
+
|
|
|
4220
|
+ #region 插入操作记录
|
|
|
4221
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
4222
|
+ oper.F_WorkOrderId = model_T_Bus_Feedback.F_WorkOrderId;
|
|
|
4223
|
+ oper.F_File = model_T_Bus_Feedback.F_File;
|
|
|
4224
|
+
|
|
|
4225
|
+ string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
|
|
|
4226
|
+ oper.F_Message = userinfo + " 修改了工单办理信息";
|
|
|
4227
|
+ oper.F_CreateUser = userModel.F_UserCode;
|
|
|
4228
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
4229
|
+ oper.F_IsDelete = 0;
|
|
|
4230
|
+
|
|
|
4231
|
+ operBLL.Add(oper);
|
|
|
4232
|
+ #endregion
|
|
|
4233
|
+
|
|
|
4234
|
+ trans.Complete();
|
|
|
4235
|
+ }
|
|
|
4236
|
+ return Success("操作成功");
|
|
|
4237
|
+
|
|
|
4238
|
+ }
|
|
|
4239
|
+ else
|
|
|
4240
|
+ {
|
|
|
4241
|
+ return Error("操作失败");
|
|
|
4242
|
+ }
|
|
|
4243
|
+ }
|
|
|
4244
|
+ else
|
|
|
4245
|
+ {
|
|
|
4246
|
+ return Success("权限不足");
|
|
|
4247
|
+ }
|
|
|
4248
|
+ }
|
|
|
4249
|
+
|
|
|
4250
|
+ /// <summary>
|
|
|
4251
|
+ /// 修改回访信息
|
|
|
4252
|
+ /// </summary>
|
|
|
4253
|
+ /// <returns></returns>
|
|
|
4254
|
+ [Authority]
|
|
|
4255
|
+ public ActionResult EditVisitInfoByAdmin()
|
|
|
4256
|
+ {
|
|
|
4257
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
4258
|
+
|
|
|
4259
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
4260
|
+
|
|
|
4261
|
+ if (userModel.F_RoleCode == "ZXLD" || userModel.F_RoleCode == "GLY")
|
|
|
4262
|
+ {
|
|
|
4263
|
+ string visituser = RequestString.GetFormString("visituser");//回访人
|
|
|
4264
|
+ int type = RequestString.GetInt("type", 0);//回访方式
|
|
|
4265
|
+ int issatisfie = RequestString.GetInt("issatisfie", 0);//0不满意 1满意
|
|
|
4266
|
+ int visitid = RequestString.GetInt("id", 0);
|
|
|
4267
|
+ string result = RequestString.GetFormString("result");//回访情况
|
|
|
4268
|
+
|
|
|
4269
|
+ Model.T_Bus_VisitResult modelT_Bus_VisitResult = new BLL.T_Bus_VisitResult().GetModel(visitid);
|
|
|
4270
|
+ if (modelT_Bus_VisitResult != null)
|
|
|
4271
|
+ {
|
|
|
4272
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
4273
|
+ {
|
|
|
4274
|
+ #region 保存回访信息
|
|
|
4275
|
+
|
|
|
4276
|
+ modelT_Bus_VisitResult.F_VisitUser = visituser;
|
|
|
4277
|
+ modelT_Bus_VisitResult.F_Type = type;
|
|
|
4278
|
+ modelT_Bus_VisitResult.F_IsSatisfie = issatisfie;
|
|
|
4279
|
+ modelT_Bus_VisitResult.F_Result = result;
|
|
|
4280
|
+
|
|
|
4281
|
+ new BLL.T_Bus_VisitResult().Update(modelT_Bus_VisitResult);
|
|
|
4282
|
+ #endregion
|
|
|
4283
|
+
|
|
|
4284
|
+ #region 插入操作记录
|
|
|
4285
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
4286
|
+ oper.F_WorkOrderId = modelT_Bus_VisitResult.F_WorkOrderId;
|
|
|
4287
|
+ oper.F_File = modelT_Bus_VisitResult.F_File;
|
|
|
4288
|
+
|
|
|
4289
|
+ string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
|
|
|
4290
|
+ oper.F_Message = userinfo + " 修改了工单回访信息";
|
|
|
4291
|
+ oper.F_CreateUser = userModel.F_UserCode;
|
|
|
4292
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
4293
|
+ oper.F_IsDelete = 0;
|
|
|
4294
|
+
|
|
|
4295
|
+ operBLL.Add(oper);
|
|
|
4296
|
+ #endregion
|
|
|
4297
|
+
|
|
|
4298
|
+ trans.Complete();
|
|
|
4299
|
+ }
|
|
|
4300
|
+ return Success("操作成功");
|
|
|
4301
|
+
|
|
|
4302
|
+ }
|
|
|
4303
|
+ else
|
|
|
4304
|
+ {
|
|
|
4305
|
+ return Error("操作失败");
|
|
|
4306
|
+ }
|
|
|
4307
|
+ }
|
|
|
4308
|
+ else
|
|
|
4309
|
+ {
|
|
|
4310
|
+ return Success("权限不足");
|
|
|
4311
|
+ }
|
|
3925
|
4312
|
}
|
|
|
4313
|
+ #endregion
|
|
3926
|
4314
|
|
|
3927
|
4315
|
}
|
|
3928
|
4316
|
}
|