|
|
@@ -6,13 +6,14 @@ using CallCenterApi.Interface.Controllers.Base;
|
|
6
|
6
|
using CallCenterApi.Interface.Controllers.Sms;
|
|
7
|
7
|
using CallCenterApi.Interface.Models.Common;
|
|
8
|
8
|
using CallCenterApi.Model;
|
|
9
|
|
-
|
|
|
9
|
+using Newtonsoft.Json.Linq;
|
|
10
|
10
|
using System;
|
|
11
|
11
|
using System.Collections.Generic;
|
|
12
|
12
|
using System.Data;
|
|
13
|
13
|
using System.IO;
|
|
14
|
14
|
using System.Linq;
|
|
15
|
15
|
using System.Net;
|
|
|
16
|
+using System.Security.Cryptography;
|
|
16
|
17
|
using System.Text;
|
|
17
|
18
|
using System.Threading.Tasks;
|
|
18
|
19
|
using System.Transactions;
|
|
|
@@ -72,6 +73,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
72
|
73
|
int sourcearea = RequestString.GetInt("sourcearea", 0);
|
|
73
|
74
|
int deptid = RequestString.GetInt("deptid", 0);
|
|
74
|
75
|
int pydt = RequestString.GetInt("pydt", 0);
|
|
|
76
|
+ string myd = HttpUtility.UrlDecode(RequestString.GetQueryString("myd"));
|
|
75
|
77
|
int zdpy = RequestString.GetInt("zdpy", 0);
|
|
76
|
78
|
int smpy = RequestString.GetInt("smpy", 0);
|
|
77
|
79
|
int dealtype = RequestString.GetInt("dealtype", -1);
|
|
|
@@ -189,21 +191,35 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
189
|
191
|
string value1 = "";
|
|
190
|
192
|
if (pydt > 0)
|
|
191
|
193
|
{
|
|
192
|
|
- if (zdpy > 0)
|
|
|
194
|
+ string comment = "";
|
|
|
195
|
+ if (!string.IsNullOrEmpty(myd))
|
|
193
|
196
|
{
|
|
194
|
|
- sql += " and datediff(day,F_CreateTime,getdate() )>15 and F_WorkState = 9 and F_CloseTime is not null " +
|
|
195
|
|
- "and F_WorkOrderId not in (select WorkOrderId from PublicComment WITH(NOLOCK) )";
|
|
|
197
|
+ comment+= "b.strWrkOrder_Cst_Ssf_Cd='" + myd + "'";
|
|
|
198
|
+ }
|
|
|
199
|
+ if (zdpy > 0)
|
|
|
200
|
+ {
|
|
|
201
|
+ if (!string.IsNullOrEmpty(myd))
|
|
|
202
|
+ {
|
|
|
203
|
+ sql += " and datediff(day,F_CreateTime,getdate() )>15 and F_WorkState = 9 and F_CloseTime is not null " +
|
|
|
204
|
+ "and F_WorkOrderId not in (select WorkOrderId from PublicComment WITH(NOLOCK) where strWrkOrder_Cst_Ssf_Cd='"+ myd + "')";
|
|
|
205
|
+ }
|
|
|
206
|
+ else
|
|
|
207
|
+ {
|
|
|
208
|
+ sql += " and datediff(day,F_CreateTime,getdate() )>15 and F_WorkState = 9 and F_CloseTime is not null " +
|
|
|
209
|
+ "and F_WorkOrderId not in (select WorkOrderId from PublicComment WITH(NOLOCK) )";
|
|
|
210
|
+ }
|
|
|
211
|
+
|
|
196
|
212
|
}
|
|
197
|
213
|
else if (smpy > 0)
|
|
198
|
214
|
{
|
|
199
|
|
- //sql += " and F_WorkOrderId in (select WorkOrderId from PublicComment WITH(NOLOCK) ) ";
|
|
200
|
|
- value1 = "inner join PublicComment b on a .F_WorkOrderId =b .WorkOrderId ";
|
|
|
215
|
+ value1 = "inner join PublicComment b on a .F_WorkOrderId =b .WorkOrderId "+ comment;
|
|
201
|
216
|
}
|
|
202
|
217
|
else
|
|
203
|
218
|
{
|
|
204
|
219
|
sql += " and (datediff(day,F_CreateTime,getdate() )>15 and F_WorkState = 9 and F_CloseTime is not null) ";
|
|
205
|
|
- value1 = "left join PublicComment b on a .F_WorkOrderId =b .WorkOrderId ";
|
|
|
220
|
+ value1 = "left join PublicComment b on a .F_WorkOrderId =b .WorkOrderId "+ comment;
|
|
206
|
221
|
}
|
|
|
222
|
+
|
|
207
|
223
|
}
|
|
208
|
224
|
else if (dbdata > 0)
|
|
209
|
225
|
{
|
|
|
@@ -1720,6 +1736,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1720
|
1736
|
int deptid = RequestString.GetInt("deptid", 0);
|
|
1721
|
1737
|
int deptlevel = RequestString.GetInt("deptlevel", 0);
|
|
1722
|
1738
|
int issms = RequestString.GetInt("issms", -1);
|
|
|
1739
|
+ int smspy = RequestString.GetInt("smspy", -1);//0未发送短信1
|
|
1723
|
1740
|
int db = RequestString.GetInt("db", 0);
|
|
1724
|
1741
|
int visit = RequestString.GetInt("visit", -1);//0满意1一评不满意2二评不满意
|
|
1725
|
1742
|
string strpageindex = RequestString.GetQueryString("page");
|
|
|
@@ -1747,6 +1764,28 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1747
|
1764
|
sql += " and F_DealTime<='" + dealstrendtime + "' ";
|
|
1748
|
1765
|
}
|
|
1749
|
1766
|
}
|
|
|
1767
|
+ if(smspy>-1)
|
|
|
1768
|
+ {
|
|
|
1769
|
+ if (smspy==0)
|
|
|
1770
|
+ {
|
|
|
1771
|
+ sql += "and F_IsSms = 1 and F_WorkOrderID not in (select WorkOrderId from PublicComment)";
|
|
|
1772
|
+ }
|
|
|
1773
|
+ else if (smspy == 1)
|
|
|
1774
|
+ {//短信默认好评
|
|
|
1775
|
+ sql += "and F_IsSms = 1 and F_WorkOrderID in (select WorkOrderId from PublicComment where " +
|
|
|
1776
|
+ " strSsf_Cst_Ass_CntDsc ='15天未评议自动评议工单')";
|
|
|
1777
|
+ }
|
|
|
1778
|
+ else if (smspy == 2)
|
|
|
1779
|
+ {//短信人工好评
|
|
|
1780
|
+ sql += "and F_IsSms = 1 and F_WorkOrderID in (select WorkOrderId from PublicComment where " +
|
|
|
1781
|
+ " strSsf_Cst_Ass_CntDsc !='15天未评议自动评议工单' and strWrkOrder_Cst_Ssf_Cd !='不满意' and strWrkOrder_Cst_Ssf_Cd !='非常不满意')";
|
|
|
1782
|
+ }
|
|
|
1783
|
+ else if (smspy == 3)
|
|
|
1784
|
+ {//短信人工差评
|
|
|
1785
|
+ sql += "and F_IsSms = 1 and F_WorkOrderID in (select WorkOrderId from PublicComment where " +
|
|
|
1786
|
+ " strSsf_Cst_Ass_CntDsc !='15天未评议自动评议工单' and strWrkOrder_Cst_Ssf_Cd in ('不满意' or '非常不满意')";
|
|
|
1787
|
+ }
|
|
|
1788
|
+ }
|
|
1750
|
1789
|
switch (strtab)
|
|
1751
|
1790
|
{
|
|
1752
|
1791
|
case "-1"://待处理工单(其他来源)
|
|
|
@@ -1773,6 +1812,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
1773
|
1812
|
sql += " and F_WorkState in (" + (int)EnumWorkState.audit + "," + (int)EnumWorkState.auditreback + ") ";
|
|
1774
|
1813
|
sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_RemindRecord where F_Type=1 and F_IsDelete=0 and (F_Content != '推诿工单' or F_Content is null ) and F_State!=2)";
|
|
1775
|
1814
|
}
|
|
|
1815
|
+ else if (strstate.Trim() == "6" )
|
|
|
1816
|
+ {
|
|
|
1817
|
+ sql += " and F_WorkState = '" + strstate.Trim() + "' ";
|
|
|
1818
|
+ }
|
|
1776
|
1819
|
else
|
|
1777
|
1820
|
{
|
|
1778
|
1821
|
sql += "and F_ToBereply=" + tobereply;
|
|
|
@@ -2134,7 +2177,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2134
|
2177
|
}
|
|
2135
|
2178
|
else
|
|
2136
|
2179
|
{
|
|
2137
|
|
- cols = "F_WorkOrderId,F_CusName,F_ComTitle,F_WorkState,F_MainDeptId,F_OtherDeptIds,F_DealTime,F_LeaveRecordId,F_CallRecordId,F_IsResult,F_IsProtect,F_IsReturn,F_CreateTime,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,(select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_Type=3 and F_State=1 and F_IsDelete=0" +
|
|
|
2180
|
+ cols = "F_WorkOrderId,F_InfoSource,F_CusName,F_ComTitle,F_WorkState,F_MainDeptId,F_OtherDeptIds,F_DealTime,F_LeaveRecordId,F_CallRecordId,F_IsResult,F_IsProtect,F_IsReturn,F_CreateTime,dbo.GetUserName(F_CreateUser) as UserName,dbo.GetDictionaryName(F_InfoType) as TypeName,dbo.GetDictionaryName(F_InfoSource) as SourceName,(select top 1 F_Result from T_Bus_Feedback WITH(NOLOCK) where F_Type=3 and F_State=1 and F_IsDelete=0" +
|
|
2138
|
2181
|
"and F_WorkOrderId=a.F_WorkOrderId order by F_CreateTime desc ) as Backreason ,F_CloseTime,F_Identification,F_IsRelease";
|
|
2139
|
2182
|
|
|
2140
|
2183
|
}
|
|
|
@@ -2351,7 +2394,21 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2351
|
2394
|
if (Int32.Parse(strtab) == 0 || Int32.Parse(strtab) == 3)
|
|
2352
|
2395
|
{
|
|
2353
|
2396
|
btns.Clear();
|
|
2354
|
|
- btns = ButtonGroup.GetButtons(dr["F_WorkState"].ToString(), User.F_RoleCode.ToUpper(), dr["F_IsResult"].ToString(), iszbdw);
|
|
|
2397
|
+ btns = ButtonGroup.GetButtons(dr["F_WorkState"].ToString(), User.F_RoleCode.ToUpper(), dr["F_IsResult"].ToString(), iszbdw
|
|
|
2398
|
+ );
|
|
|
2399
|
+ if (dr["F_InfoSource"].ToString()=="2580"&& dr["F_WorkState"].ToString()=="7")
|
|
|
2400
|
+ {
|
|
|
2401
|
+ if (User.F_RoleCode.ToUpper() == "ZJZY" || User.F_RoleCode.ToUpper() == "GNZY" || User.F_RoleCode.ToUpper() == "GLY" || User.F_RoleCode.ToUpper() == "ZXLD" || User.F_RoleCode.ToUpper() == "YSZY" || User.F_RoleCode.ToUpper() == "DDZG" || User.F_RoleCode.ToUpper() == "MTDD"|| User.F_RoleCode.ToUpper() == "ZXHWY")
|
|
|
2402
|
+ {
|
|
|
2403
|
+ var butts = btns.Find(c => c.key == ButtonGroup.visit().key);
|
|
|
2404
|
+ if (butts != null)
|
|
|
2405
|
+ {
|
|
|
2406
|
+ btns.Remove(butts);
|
|
|
2407
|
+ btns.Add(ButtonGroup.visits());
|
|
|
2408
|
+ }
|
|
|
2409
|
+
|
|
|
2410
|
+ }
|
|
|
2411
|
+ }
|
|
2355
|
2412
|
#region 判断是否存在待督办
|
|
2356
|
2413
|
var recount = reminds.Where(r => r.F_WorkOrderId == dr["F_WorkOrderId"].ToString()).Count();
|
|
2357
|
2414
|
var butt = btns.Find(c => c.key == ButtonGroup.turnsee().key);
|
|
|
@@ -2367,7 +2424,21 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2367
|
2424
|
if ( butt != null)
|
|
2368
|
2425
|
btns.Remove(butt);
|
|
2369
|
2426
|
}
|
|
|
2427
|
+
|
|
|
2428
|
+
|
|
2370
|
2429
|
#endregion
|
|
|
2430
|
+ if (dr["F_InfoSource"].ToString() == "4" && dr["F_WorkState"].ToString() == "7")
|
|
|
2431
|
+ {
|
|
|
2432
|
+ if (User.F_RoleCode.ToUpper() == "GLY" || User.F_RoleCode.ToUpper() == "MTDD")
|
|
|
2433
|
+ {
|
|
|
2434
|
+ var prople = new BLL.T_Bus_People().GetModelList("state !=3 and F_WorkOrderId='" + dr["F_WorkOrderId"].ToString() + "'");
|
|
|
2435
|
+ if (prople != null&& prople.Count >0)
|
|
|
2436
|
+ {
|
|
|
2437
|
+ btns.Add(ButtonGroup.Explain());
|
|
|
2438
|
+ }
|
|
|
2439
|
+
|
|
|
2440
|
+ }
|
|
|
2441
|
+ }
|
|
2371
|
2442
|
}
|
|
2372
|
2443
|
else if (Int32.Parse(strtab) == 5)
|
|
2373
|
2444
|
{
|
|
|
@@ -2598,8 +2669,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2598
|
2669
|
{
|
|
2599
|
2670
|
if (issh==0)
|
|
2600
|
2671
|
{
|
|
2601
|
|
- sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_ToExamine where F_AssignedId=0 " +
|
|
2602
|
|
- "and F_Type!=0)";
|
|
|
2672
|
+ sql += "and F_WorkOrderID not in (select F_WorkOrderID from T_Bus_ToExamine where F_AssignedId=0 and F_IsDelete=0 and (F_Type!=0 or F_Type is null) and F_State=0 ) ";
|
|
2603
|
2673
|
}
|
|
2604
|
2674
|
else if (issh == 1)
|
|
2605
|
2675
|
{
|
|
|
@@ -2807,7 +2877,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2807
|
2877
|
// 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 ) ";
|
|
2808
|
2878
|
// 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 ) ";
|
|
2809
|
2879
|
sql += "and F_IsSendBack =1";
|
|
2810
|
|
- if (User.F_RoleCode != "GLY" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "YSZY" && User.F_RoleCode != "MTDD")
|
|
|
2880
|
+ if (User.F_RoleCode != "GLY" && User.F_RoleCode != "DMTCK" && User.F_RoleCode != "ZXLD" && User.F_RoleCode != "YSZY" && User.F_RoleCode != "MTDD")
|
|
2811
|
2881
|
{
|
|
2812
|
2882
|
sql += " and F_CreateUser='" + User.F_UserCode + "'";
|
|
2813
|
2883
|
}
|
|
|
@@ -3237,7 +3307,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3237
|
3307
|
btns.Add(ButtonGroup.turnsee());
|
|
3238
|
3308
|
}
|
|
3239
|
3309
|
|
|
3240
|
|
- if (User.F_RoleCode.ToUpper() == "DMTSH" )
|
|
|
3310
|
+ if (User.F_RoleCode.ToUpper() == "MTDD" && strtab=="0"&&issh ==2)
|
|
3241
|
3311
|
{
|
|
3242
|
3312
|
btns.Add(ButtonGroup.AuditDispatch());
|
|
3243
|
3313
|
btns.Add(ButtonGroup.Failed());
|
|
|
@@ -5120,7 +5190,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
5120
|
5190
|
break;
|
|
5121
|
5191
|
|
|
5122
|
5192
|
case "3"://已办未果
|
|
5123
|
|
- sql += " and F_WorkState = '6' ";
|
|
|
5193
|
+ sql += " and F_WorkState in(6,7) ";
|
|
5124
|
5194
|
sql += " and F_IsProResult = '" + 2 + "' ";
|
|
5125
|
5195
|
sql += " and F_WorkOrderID in(select F_WorkOrderID from T_Bus_Feedback_Next WITH(NOLOCK) where F_State=1 and F_IsDelete=0 and F_Type in (1,2) ";
|
|
5126
|
5196
|
if (User.F_RoleCode != "GLY" && User.F_RoleCode != "DDZG")
|
|
|
@@ -7892,6 +7962,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
7892
|
7962
|
int pagesize = RequestString.GetInt("pagesize", 10);
|
|
7893
|
7963
|
int business = RequestString.GetInt("business", 0);
|
|
7894
|
7964
|
int Supervisor = RequestString.GetInt("Supervisor", 0);
|
|
|
7965
|
+ string strSupervisor = HttpUtility.UrlDecode(RequestString.GetQueryString("strSupervisor"));//
|
|
7895
|
7966
|
int isExamine = RequestString.GetInt("isExamine", 0);
|
|
7896
|
7967
|
|
|
7897
|
7968
|
int dbdeptid = RequestString.GetInt("dbdeptid", 0);
|
|
|
@@ -7963,9 +8034,15 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
7963
|
8034
|
|
|
7964
|
8035
|
|
|
7965
|
8036
|
int iscb = RequestString.GetInt("iscb", -1);
|
|
|
8037
|
+
|
|
|
8038
|
+
|
|
7966
|
8039
|
if (business > 0)
|
|
7967
|
8040
|
sql += " and F_Business = '1'";
|
|
7968
|
|
-
|
|
|
8041
|
+
|
|
|
8042
|
+ if (strSupervisor.Trim() != "" && strSupervisor != "undefined")
|
|
|
8043
|
+ {
|
|
|
8044
|
+ Remind += " and Supervisor ='" + strSupervisor + "' ";
|
|
|
8045
|
+ }
|
|
7969
|
8046
|
if (User.F_RoleCode == "DBZY")
|
|
7970
|
8047
|
{
|
|
7971
|
8048
|
if (Supervisor == 1)
|
|
|
@@ -8110,6 +8187,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
8110
|
8187
|
else
|
|
8111
|
8188
|
sql += "and F_WorkState =6";
|
|
8112
|
8189
|
break;
|
|
|
8190
|
+ case "7"://督办综合查询
|
|
|
8191
|
+
|
|
|
8192
|
+ sql += " and F_WorkOrderID in(" + sqlsup + " ) " + " and F_IsDelete=0 ";
|
|
|
8193
|
+
|
|
|
8194
|
+ break;
|
|
8113
|
8195
|
|
|
8114
|
8196
|
|
|
8115
|
8197
|
}
|
|
|
@@ -8486,6 +8568,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
8486
|
8568
|
}
|
|
8487
|
8569
|
else
|
|
8488
|
8570
|
{
|
|
|
8571
|
+ btns.Add(ButtonGroup.takeback());
|
|
8489
|
8572
|
btns.Add(ButtonGroup.forceend());
|
|
8490
|
8573
|
}
|
|
8491
|
8574
|
}
|
|
|
@@ -11318,7 +11401,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11318
|
11401
|
if (User.F_RoleCode == "GNZY")
|
|
11319
|
11402
|
keyValuePairs.Add("F_EditUser", "GNZY");
|
|
11320
|
11403
|
|
|
11321
|
|
- if (User.F_RoleCode == "MTDD"&&!string .IsNullOrEmpty (maindeptids))
|
|
|
11404
|
+ if (source !=1&& !string .IsNullOrEmpty (maindeptids))
|
|
11322
|
11405
|
{
|
|
11323
|
11406
|
var deptlist = new BLL.T_Sys_Department().GetModelList("F_DeptId in (" + maindeptids + ")");
|
|
11324
|
11407
|
if (deptlist != null)
|
|
|
@@ -11358,6 +11441,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11358
|
11441
|
modelT_Bus_ToExamine.F_State = 0;
|
|
11359
|
11442
|
modelT_Bus_ToExamine.F_AssignedId = 0;
|
|
11360
|
11443
|
modelT_Bus_ToExamine.F_IsDelete = 0;
|
|
|
11444
|
+ modelT_Bus_ToExamine.F_Type = null;
|
|
11361
|
11445
|
modelT_Bus_ToExamine.F_CreatUser = User.F_UserCode;
|
|
11362
|
11446
|
modelT_Bus_ToExamine.F_MainDeptId = maindeptids;
|
|
11363
|
11447
|
var n = new BLL.T_Bus_ToExamine().Update (modelT_Bus_ToExamine);
|
|
|
@@ -11370,6 +11454,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11370
|
11454
|
modelT_Bus_ToExamine.F_State = 0;
|
|
11371
|
11455
|
modelT_Bus_ToExamine.F_AssignedId = 0;
|
|
11372
|
11456
|
modelT_Bus_ToExamine.F_IsDelete = 0;
|
|
|
11457
|
+ modelT_Bus_ToExamine.F_Type = null;
|
|
11373
|
11458
|
modelT_Bus_ToExamine.F_CreatUser = User.F_UserCode;
|
|
11374
|
11459
|
modelT_Bus_ToExamine.F_MainDeptId = maindeptids;
|
|
11375
|
11460
|
var n = new BLL.T_Bus_ToExamine().Add(modelT_Bus_ToExamine);
|
|
|
@@ -11378,7 +11463,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11378
|
11463
|
}
|
|
11379
|
11464
|
|
|
11380
|
11465
|
|
|
11381
|
|
- modelT_Bus_WorkOrder.F_IsResult = isresult;
|
|
|
11466
|
+ modelT_Bus_WorkOrder.F_IsResult = isresult;
|
|
11382
|
11467
|
keyValuePairs.Add("F_Result", result);
|
|
11383
|
11468
|
modelT_Bus_WorkOrder.F_Result = result;//处理结果
|
|
11384
|
11469
|
if (isopen > 0)
|
|
|
@@ -11404,8 +11489,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11404
|
11489
|
keyValuePairs.Add("F_CloseUser", User.F_UserCode);
|
|
11405
|
11490
|
// modelT_Bus_WorkOrder.F_CloseUser = User.F_UserCode;
|
|
11406
|
11491
|
keyValuePairs.Add("F_CloseTime", DateTime.Now);
|
|
11407
|
|
-
|
|
11408
|
|
-
|
|
11409
|
11492
|
if (!string.IsNullOrEmpty(modelT_Bus_WorkOrder.F_MainWorkorder1))
|
|
11410
|
11493
|
{
|
|
11411
|
11494
|
var model = workorderBLL.GetModel(modelT_Bus_WorkOrder.F_MainWorkorder1);
|
|
|
@@ -11575,35 +11658,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11575
|
11658
|
|
|
11576
|
11659
|
}
|
|
11577
|
11660
|
}
|
|
11578
|
|
-
|
|
11579
|
11661
|
// modelT_Bus_WorkOrder.F_CloseTime = DateTime.Now;
|
|
11580
|
|
- if (!string.IsNullOrEmpty(file))
|
|
11581
|
|
- {
|
|
11582
|
|
- Model.T_Bus_Feedback modelT_Bus_Feedback = new T_Bus_Feedback();
|
|
11583
|
|
- modelT_Bus_Feedback.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;//工单编号
|
|
11584
|
|
-
|
|
11585
|
|
- modelT_Bus_Feedback.F_DealUser = User.F_UserCode;
|
|
11586
|
|
- modelT_Bus_Feedback.F_Result = result;//反馈内容
|
|
11587
|
|
- #region 20200114新增字段 zhengbingbing
|
|
11588
|
|
-
|
|
11589
|
|
- modelT_Bus_Feedback.F_IsProtect = modelT_Bus_WorkOrder.F_IsProtect;//是否保密(0:否1:是)
|
|
11590
|
|
-
|
|
11591
|
|
- DateTime contime = DateTime.Now;
|
|
11592
|
|
- modelT_Bus_Feedback.F_IsProResult = 1;
|
|
11593
|
|
- #endregion
|
|
11594
|
|
- modelT_Bus_Feedback.F_File = file;
|
|
11595
|
|
- modelT_Bus_Feedback.F_IsAudit = 0;
|
|
11596
|
|
- modelT_Bus_Feedback.F_IsDelete = 0;
|
|
11597
|
|
- modelT_Bus_Feedback.F_CreateUser = User.F_UserCode;//办理人
|
|
11598
|
|
- modelT_Bus_Feedback.F_CreateTime = DateTime.Now;//办理时间
|
|
11599
|
|
- modelT_Bus_Feedback.F_CreateDeptId = User.F_DeptId;//办理部门
|
|
11600
|
|
- modelT_Bus_Feedback.F_IsFeedEnd = 1;
|
|
11601
|
|
- modelT_Bus_Feedback.F_State = 1;
|
|
11602
|
|
- modelT_Bus_Feedback.F_Type = 1;
|
|
11603
|
|
-
|
|
11604
|
|
- new BLL.T_Bus_Feedback().Add(modelT_Bus_Feedback);
|
|
11605
|
11662
|
}
|
|
11606
|
|
- }
|
|
11607
|
11663
|
else if (issubmit == 1)
|
|
11608
|
11664
|
{
|
|
11609
|
11665
|
keyValuePairs.Add("F_SubmitTime", DateTime.Now);
|
|
|
@@ -11611,9 +11667,32 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
11611
|
11667
|
keyValuePairs.Add("F_WorkState", 1);
|
|
11612
|
11668
|
modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.submit;// 1;//提交领导
|
|
11613
|
11669
|
}
|
|
11614
|
|
- #region
|
|
|
11670
|
+
|
|
|
11671
|
+ if (!string.IsNullOrEmpty(file))
|
|
|
11672
|
+ {
|
|
|
11673
|
+ Model.T_Bus_Feedback modelT_Bus_Feedback = new T_Bus_Feedback();
|
|
|
11674
|
+ modelT_Bus_Feedback.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;//工单编号
|
|
|
11675
|
+ modelT_Bus_Feedback.F_DealUser = User.F_UserCode;
|
|
|
11676
|
+ modelT_Bus_Feedback.F_Result = result;//反馈内容
|
|
|
11677
|
+ #region 20200114新增字段 zhengbingbing
|
|
|
11678
|
+ modelT_Bus_Feedback.F_IsProtect = modelT_Bus_WorkOrder.F_IsProtect;//是否保密(0:否1:是)
|
|
|
11679
|
+ DateTime contime = DateTime.Now;
|
|
|
11680
|
+ modelT_Bus_Feedback.F_IsProResult = 1;
|
|
11615
|
11681
|
#endregion
|
|
11616
|
|
- if (state > 0)
|
|
|
11682
|
+ modelT_Bus_Feedback.F_File = file;
|
|
|
11683
|
+ modelT_Bus_Feedback.F_IsAudit = 0;
|
|
|
11684
|
+ modelT_Bus_Feedback.F_IsDelete = 0;
|
|
|
11685
|
+ modelT_Bus_Feedback.F_CreateUser = User.F_UserCode;//办理人
|
|
|
11686
|
+ modelT_Bus_Feedback.F_CreateTime = DateTime.Now;//办理时间
|
|
|
11687
|
+ modelT_Bus_Feedback.F_CreateDeptId = User.F_DeptId;//办理部门
|
|
|
11688
|
+ modelT_Bus_Feedback.F_IsFeedEnd = 1;
|
|
|
11689
|
+ modelT_Bus_Feedback.F_State = 1;
|
|
|
11690
|
+ modelT_Bus_Feedback.F_Type = 1;
|
|
|
11691
|
+ new BLL.T_Bus_Feedback().Add(modelT_Bus_Feedback);
|
|
|
11692
|
+ }
|
|
|
11693
|
+ #region
|
|
|
11694
|
+ #endregion
|
|
|
11695
|
+ if (state > 0)
|
|
11617
|
11696
|
{
|
|
11618
|
11697
|
if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "YSZY" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "MTDD")
|
|
11619
|
11698
|
{
|
|
|
@@ -13998,7 +14077,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
13998
|
14077
|
public ActionResult TakeBackWorkOrder()
|
|
13999
|
14078
|
{
|
|
14000
|
14079
|
|
|
14001
|
|
- if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "YSZY" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "MTDD")
|
|
|
14080
|
+ if (User.F_RoleCode == "ZXLD" || User.F_RoleCode == "YSZY" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG" || User.F_RoleCode == "MTDD" || User.F_RoleCode == "DBZY")
|
|
14002
|
14081
|
{
|
|
14003
|
14082
|
string workorderid = RequestString.GetFormString("workorderid");
|
|
14004
|
14083
|
|
|
|
@@ -14078,7 +14157,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
14078
|
14157
|
new BLL.T_Bus_Feedback_Next().Update(cg);
|
|
14079
|
14158
|
}
|
|
14080
|
14159
|
#endregion
|
|
14081
|
|
-
|
|
|
14160
|
+ var modelT_Bus_RemindRecord = new BLL.T_Bus_RemindRecord().GetModelList(" F_State !=2 and F_IsDelete = 0 and F_Type = 1 and F_WorkOrderId = '"
|
|
|
14161
|
+ + modelT_Bus_WorkOrder.F_WorkOrderId + "' order by F_CreateTime desc").FirstOrDefault();
|
|
|
14162
|
+ if (modelT_Bus_RemindRecord!=null )
|
|
|
14163
|
+ {
|
|
|
14164
|
+ modelT_Bus_RemindRecord.F_State = 0;
|
|
|
14165
|
+ new BLL.T_Bus_RemindRecord().Update(modelT_Bus_RemindRecord);
|
|
|
14166
|
+ }
|
|
14082
|
14167
|
#region 插入操作记录
|
|
14083
|
14168
|
Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
14084
|
14169
|
oper.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
|
|
|
@@ -14191,11 +14276,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
14191
|
14276
|
oper.F_CreateTime = DateTime.Now;
|
|
14192
|
14277
|
oper.F_IsDelete = 0;
|
|
14193
|
14278
|
|
|
14194
|
|
- operBLL.Add(oper);
|
|
|
14279
|
+ int n= operBLL.Add(oper);
|
|
14195
|
14280
|
|
|
14196
|
14281
|
Task.Run(() =>
|
|
14197
|
14282
|
{
|
|
14198
|
|
- process_info(oper.F_Id, "case_process_info","查收工单");
|
|
|
14283
|
+ process_info(n, "case_process_info","查收工单");
|
|
14199
|
14284
|
}).ContinueWith(p => {
|
|
14200
|
14285
|
System.Diagnostics.Debug.WriteLine(DateTime.Now);
|
|
14201
|
14286
|
});
|
|
|
@@ -14340,7 +14425,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
14340
|
14425
|
string reason = RequestString.GetFormString("reason");
|
|
14341
|
14426
|
int isjb = RequestString.GetInt("isjb", 0);
|
|
14342
|
14427
|
int rebackid = RequestString.GetInt("rebackid", 0);
|
|
14343
|
|
-
|
|
|
14428
|
+ int zb = RequestString.GetInt("zb", 0);
|
|
14344
|
14429
|
Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
|
|
14345
|
14430
|
Model.T_Bus_Feedback modelT_Bus_Feedback = new BLL.T_Bus_Feedback().GetModel(rebackid);
|
|
14346
|
14431
|
Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
|
|
|
@@ -14409,13 +14494,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
14409
|
14494
|
modelAssignedInfo_Next.F_State = 2;
|
|
14410
|
14495
|
new BLL.T_Bus_AssignedInfo_Next().Update(modelAssignedInfo_Next);
|
|
14411
|
14496
|
}
|
|
14412
|
|
- if (modelT_Bus_RemindRecord != null)
|
|
14413
|
|
- {
|
|
14414
|
|
- if (modelT_Bus_RemindRecord.F_State == 1)
|
|
14415
|
|
- {
|
|
|
14497
|
+
|
|
|
14498
|
+ if (zb==0)
|
|
|
14499
|
+ {if (modelT_Bus_RemindRecord!=null )
|
|
|
14500
|
+ {
|
|
14416
|
14501
|
modelT_Bus_RemindRecord.F_State = 0;
|
|
14417
|
|
- remindBLL.Update(modelT_Bus_RemindRecord);
|
|
|
14502
|
+ new BLL.T_Bus_RemindRecord().Update(modelT_Bus_RemindRecord);
|
|
14418
|
14503
|
}
|
|
|
14504
|
+
|
|
14419
|
14505
|
}
|
|
14420
|
14506
|
}
|
|
14421
|
14507
|
else
|
|
|
@@ -15545,7 +15631,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
15545
|
15631
|
else
|
|
15546
|
15632
|
keyValuePairs.Add("F_AdditionalReply", modelT_Bus_WorkOrder.F_AdditionalReply + "; "+ replycount);
|
|
15547
|
15633
|
keyValuePairs.Add("F_IsProResult",3);
|
|
15548
|
|
- // modelT_Bus_WorkOrder.F_IsProResult = 3;
|
|
15549
|
15634
|
bool n = workorderBLL.UpdateWorkOrder (modelT_Bus_WorkOrder.F_Id , keyValuePairs);
|
|
15550
|
15635
|
if (!string.IsNullOrEmpty(files))
|
|
15551
|
15636
|
{
|
|
|
@@ -17153,34 +17238,75 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17153
|
17238
|
var model = new BLL.T_Bus_WorkOrder().GetModel(WorkOrderId);
|
|
17154
|
17239
|
if (model != null)
|
|
17155
|
17240
|
{
|
|
17156
|
|
- Dictionary<string, object> keyValuePairs = new Dictionary<string, object>();
|
|
17157
|
|
- keyValuePairs.Add("F_IsSms", "1");
|
|
17158
|
|
- // model.F_IsSms = 1;
|
|
17159
|
|
- new BLL.T_Bus_WorkOrder().UpdateWorkOrder (model.F_Id , keyValuePairs);
|
|
17160
|
17241
|
|
|
17161
|
|
- //string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
17162
|
|
- string content = "您提交的" + model.F_ComTitle + "事项的办理结果为:" + model.F_Result + "请于15天内回复:“$" + model.F_Id + "#”+1、满意,2、基本满意,3、不满意+#评议内容,进行评价。(不超过60字)";
|
|
17163
|
|
- string mag = "[\"" + model.F_ComTitle + "\",\"" + model.F_Result + "\",\"" + model.F_Id + "\"]";
|
|
17164
|
|
- string n = SmsNewController.AddSmS(0, content, phone, "660571546305982464", mag, WorkOrderId);
|
|
17165
|
|
- if (n=="")
|
|
|
17242
|
+ if (model.F_InfoSource == 1 || model.F_InfoSource == 2501)
|
|
17166
|
17243
|
{
|
|
17167
|
|
- Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
17168
|
|
- oper.F_WorkOrderId = model.F_WorkOrderId;
|
|
17169
|
|
- oper.F_State = model.F_WorkState;
|
|
17170
|
|
- oper.F_CallRecordId = model.F_CallRecordId;
|
|
17171
|
|
- oper.F_File = model.F_File;
|
|
17172
|
|
- string userinfo = User.depname + "(" + User.F_UserCode + ")";
|
|
17173
|
|
- oper.F_Message = userinfo + "发送了市民评价短信" ;
|
|
|
17244
|
+ Dictionary<string, object> keyValuePairs = new Dictionary<string, object>();
|
|
|
17245
|
+ keyValuePairs.Add("F_IsSms", "1");
|
|
|
17246
|
+ // model.F_IsSms = 1;
|
|
|
17247
|
+ new BLL.T_Bus_WorkOrder().UpdateWorkOrder(model.F_Id, keyValuePairs);
|
|
17174
|
17248
|
|
|
17175
|
|
- oper.F_CreateUser = User.F_UserCode;
|
|
17176
|
|
- oper.F_CreateTime = DateTime.Now;
|
|
17177
|
|
- oper.F_IsDelete = 0;
|
|
17178
|
|
- operBLL.Add(oper);
|
|
17179
|
|
- return Success("发送成功");
|
|
17180
|
|
- }
|
|
|
17249
|
+ //string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
|
17250
|
+ string content = "您提交的" + model.F_ComTitle + "事项的办理结果为:" + model.F_Result + "请于15天内回复:“$" + model.F_Id + "#”+1、满意,2、基本满意,3、不满意+#评议内容,进行评价。(不超过60字)";
|
|
|
17251
|
+ string mag = "[\"" + model.F_ComTitle + "\",\"" + model.F_Result + "\",\"" + model.F_Id + "\"]";
|
|
|
17252
|
+ string n = SmsNewController.AddSmS(0, content, phone, "660571546305982464", mag, WorkOrderId);
|
|
|
17253
|
+ if (n == "")
|
|
|
17254
|
+ {
|
|
|
17255
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
17256
|
+ oper.F_WorkOrderId = model.F_WorkOrderId;
|
|
|
17257
|
+ oper.F_State = model.F_WorkState;
|
|
|
17258
|
+ oper.F_CallRecordId = model.F_CallRecordId;
|
|
|
17259
|
+ oper.F_File = model.F_File;
|
|
|
17260
|
+ string userinfo = User.depname + "(" + User.F_UserCode + ")";
|
|
|
17261
|
+ oper.F_Message = userinfo + "发送了市民评价短信";
|
|
|
17262
|
+
|
|
|
17263
|
+ oper.F_CreateUser = User.F_UserCode;
|
|
|
17264
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
17265
|
+ oper.F_IsDelete = 0;
|
|
|
17266
|
+ operBLL.Add(oper);
|
|
|
17267
|
+ return Success("发送成功");
|
|
|
17268
|
+ }
|
|
|
17269
|
+ else
|
|
|
17270
|
+ return Error(n);
|
|
|
17271
|
+ }
|
|
17181
|
17272
|
else
|
|
17182
|
|
- return Error(n );
|
|
|
17273
|
+ {
|
|
|
17274
|
+ if (model.F_InfoSource == 2 || model.F_InfoSource == 2458)
|
|
|
17275
|
+ {
|
|
|
17276
|
+ Dictionary<string, object> keyValuePairs = new Dictionary<string, object>();
|
|
|
17277
|
+ keyValuePairs.Add("F_IsSms", "1");
|
|
|
17278
|
+ // model.F_IsSms = 1;
|
|
|
17279
|
+ new BLL.T_Bus_WorkOrder().UpdateWorkOrder(model.F_Id, keyValuePairs);
|
|
|
17280
|
+
|
|
|
17281
|
+ //string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
|
17282
|
+ string content = "您诉求的诉求已完成,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn),登录后查看办结结果对执行情况进行评价,谢谢";
|
|
|
17283
|
+ string n = SmsNewController.AddSmS(0, content, phone, "614918587799461888", "", WorkOrderId);
|
|
|
17284
|
+ if (n == "")
|
|
|
17285
|
+ {
|
|
|
17286
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
17287
|
+ oper.F_WorkOrderId = model.F_WorkOrderId;
|
|
|
17288
|
+ oper.F_State = model.F_WorkState;
|
|
|
17289
|
+ oper.F_CallRecordId = model.F_CallRecordId;
|
|
|
17290
|
+ oper.F_File = model.F_File;
|
|
|
17291
|
+ string userinfo = User.depname + "(" + User.F_UserCode + ")";
|
|
|
17292
|
+ oper.F_Message = userinfo + "发送了市民评价短信";
|
|
|
17293
|
+
|
|
|
17294
|
+ oper.F_CreateUser = User.F_UserCode;
|
|
|
17295
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
17296
|
+ oper.F_IsDelete = 0;
|
|
|
17297
|
+ operBLL.Add(oper);
|
|
|
17298
|
+ return Success("发送成功");
|
|
|
17299
|
+ }
|
|
|
17300
|
+ else
|
|
|
17301
|
+ return Error(n);
|
|
|
17302
|
+ }
|
|
|
17303
|
+
|
|
|
17304
|
+
|
|
|
17305
|
+ }
|
|
|
17306
|
+
|
|
17183
|
17307
|
}
|
|
|
17308
|
+
|
|
|
17309
|
+
|
|
17184
|
17310
|
return Error("发送失败");
|
|
17185
|
17311
|
}
|
|
17186
|
17312
|
/// <summary>
|
|
|
@@ -17234,10 +17360,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17234
|
17360
|
// return Error("回访时,提交重办只能操作一次");
|
|
17235
|
17361
|
//}
|
|
17236
|
17362
|
Dictionary<string, object> keyValuePairs2 = new Dictionary<string, object>();
|
|
17237
|
|
- //if (modelT_Bus_WorkOrder.F_RemindDay == 1 || modelT_Bus_WorkOrder.F_RemindDay == 3)
|
|
17238
|
|
- // keyValuePairs2.Add("F_RemindDay", 3);
|
|
17239
|
|
- //else
|
|
17240
|
|
- // keyValuePairs2.Add("F_RemindDay", 2);
|
|
|
17363
|
+ if (modelT_Bus_WorkOrder.F_RemindDay == 1 || modelT_Bus_WorkOrder.F_RemindDay == 3)
|
|
|
17364
|
+ keyValuePairs2.Add("F_RemindDay", 3);
|
|
|
17365
|
+ else
|
|
|
17366
|
+ keyValuePairs2.Add("F_RemindDay", 2);
|
|
17241
|
17367
|
keyValuePairs2.Add("F_WorkState", (int)EnumWorkState.resubmit);
|
|
17242
|
17368
|
modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.resubmit;
|
|
17243
|
17369
|
keyValuePairs2.Add("F_IsExamine", 1);
|
|
|
@@ -17485,7 +17611,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17485
|
17611
|
modelT_Bus_AssignedInfo.F_OtherDeptIds = "";//协办单位id
|
|
17486
|
17612
|
modelT_Bus_AssignedInfo.F_AssignedOpinion = cbreason;//交办意见
|
|
17487
|
17613
|
modelT_Bus_AssignedInfo.F_State = 1;//0草稿 1正式
|
|
17488
|
|
- modelT_Bus_AssignedInfo.F_CreateUser = curuser.F_UserCode;
|
|
|
17614
|
+ modelT_Bus_AssignedInfo.F_CreateUser = modelT_Bus_ToExamine.F_CreatUser ;
|
|
17489
|
17615
|
modelT_Bus_AssignedInfo.F_CreateTime = DateTime.Now;
|
|
17490
|
17616
|
modelT_Bus_AssignedInfo.F_IsDelete = 0;
|
|
17491
|
17617
|
modelT_Bus_AssignedInfo.F_IsOverdue = 0;
|
|
|
@@ -17532,7 +17658,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17532
|
17658
|
keyValuePairs.Add("F_IsReload", t);
|
|
17533
|
17659
|
keyValuePairs1.Add("F_OtherDeptIds", "");
|
|
17534
|
17660
|
// modelT_Bus_WorkOrder.F_OtherDeptIds = otherdeptids;
|
|
17535
|
|
- keyValuePairs1.Add("F_AssignUser", curuser.F_UserCode);
|
|
|
17661
|
+ keyValuePairs1.Add("F_AssignUser", modelT_Bus_ToExamine.F_CreatUser);
|
|
17536
|
17662
|
// modelT_Bus_WorkOrder.F_AssignUser = curuser.F_UserCode;
|
|
17537
|
17663
|
keyValuePairs1.Add("F_AssignTime", DateTime.Now);
|
|
17538
|
17664
|
// modelT_Bus_WorkOrder.F_AssignTime = DateTime.Now;
|
|
|
@@ -17712,7 +17838,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17712
|
17838
|
modelT_Bus_AssignedInfo.F_AssignedOpinion = cbreason ;//交办意见
|
|
17713
|
17839
|
modelT_Bus_AssignedInfo.F_TimeResp = assignBLL.GetRepTimly(DateTime.Now);//及时查收时间点
|
|
17714
|
17840
|
modelT_Bus_AssignedInfo.F_State = 1;//0草稿 1正式
|
|
17715
|
|
- modelT_Bus_AssignedInfo.F_CreateUser = curuser.F_UserCode;
|
|
|
17841
|
+ modelT_Bus_AssignedInfo.F_CreateUser = modelT_Bus_ToExamine.F_CreatUser;
|
|
17716
|
17842
|
modelT_Bus_AssignedInfo.F_CreateTime = DateTime.Now;
|
|
17717
|
17843
|
modelT_Bus_AssignedInfo.F_IsDelete = 0;
|
|
17718
|
17844
|
modelT_Bus_AssignedInfo.F_IsOverdue = 0;
|
|
|
@@ -17751,7 +17877,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
17751
|
17877
|
modelT_Bus_WorkOrder1.F_MainDeptId = deptinfo.F_DeptId;
|
|
17752
|
17878
|
keyValuePairs2.Add("F_OtherDeptIds", "");
|
|
17753
|
17879
|
// modelT_Bus_WorkOrder1.F_OtherDeptIds = otherdeptids;
|
|
17754
|
|
- keyValuePairs2.Add("F_AssignUser", curuser.F_UserCode);
|
|
|
17880
|
+ keyValuePairs2.Add("F_AssignUser", modelT_Bus_ToExamine.F_CreatUser);
|
|
17755
|
17881
|
// modelT_Bus_WorkOrder1.F_AssignUser = curuser.F_UserCode;
|
|
17756
|
17882
|
keyValuePairs2.Add("F_AssignTime", DateTime.Now);
|
|
17757
|
17883
|
// modelT_Bus_WorkOrder1.F_AssignTime = DateTime.Now;
|
|
|
@@ -18182,10 +18308,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
18182
|
18308
|
}
|
|
18183
|
18309
|
}
|
|
18184
|
18310
|
}
|
|
18185
|
|
-
|
|
18186
|
|
- string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
18187
|
|
- string mag = "";
|
|
18188
|
|
- bool n = SMSController.AddSmS(0, mag, count, modelT_Bus_WorkOrder.F_CusPhone, "289715", "", modelT_Bus_WorkOrder.F_WorkOrderId);
|
|
|
18311
|
+ if (modelT_Bus_WorkOrder.F_InfoSource ==1|| modelT_Bus_WorkOrder.F_InfoSource ==2501 )
|
|
|
18312
|
+ {
|
|
|
18313
|
+ string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
|
18314
|
+ string mag = "";
|
|
|
18315
|
+ bool n = SMSController.AddSmS(0, mag, count, modelT_Bus_WorkOrder.F_CusPhone, "289715", "", modelT_Bus_WorkOrder.F_WorkOrderId);
|
|
|
18316
|
+ }
|
|
|
18317
|
+
|
|
18189
|
18318
|
}
|
|
18190
|
18319
|
#region 重办
|
|
18191
|
18320
|
else if (nexttype == 1)
|
|
|
@@ -18325,10 +18454,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
18325
|
18454
|
oper.F_CreateTime = DateTime.Now;
|
|
18326
|
18455
|
oper.F_IsDelete = 0;
|
|
18327
|
18456
|
|
|
18328
|
|
- operBLL.Add(oper);
|
|
|
18457
|
+ int o= operBLL.Add(oper);
|
|
18329
|
18458
|
Task.Run(() =>
|
|
18330
|
18459
|
{
|
|
18331
|
|
- process_info(oper.F_Id, "case_process_info", "审核工单");
|
|
|
18460
|
+ process_info(o , "case_process_info", "审核工单");
|
|
18332
|
18461
|
}).ContinueWith(p => {
|
|
18333
|
18462
|
System.Diagnostics.Debug.WriteLine(DateTime.Now);
|
|
18334
|
18463
|
});
|
|
|
@@ -20152,9 +20281,13 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
20152
|
20281
|
}
|
|
20153
|
20282
|
if (issms > 0)
|
|
20154
|
20283
|
{
|
|
20155
|
|
- string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
20156
|
|
- string mag = "";
|
|
20157
|
|
- bool n = SMSController.AddSmS(0, mag, count, modelT_Bus_WorkOrder.F_CusPhone, "289715", "", modelT_Bus_WorkOrder.F_WorkOrderId);
|
|
|
20284
|
+ if (modelT_Bus_WorkOrder.F_InfoSource == 1 || modelT_Bus_WorkOrder.F_InfoSource == 2501)
|
|
|
20285
|
+ {
|
|
|
20286
|
+ string count = "您反映的诉求已有回复,请前往安阳政务服务官网(https://zwfw.anyang.gov.cn)登录后查看办结结果并对办理情况进行评价,或者拨打12345市长热线来电咨询,谢谢!";
|
|
|
20287
|
+ string mag = "";
|
|
|
20288
|
+ bool n = SMSController.AddSmS(0, mag, count, modelT_Bus_WorkOrder.F_CusPhone, "289715", "", modelT_Bus_WorkOrder.F_WorkOrderId);
|
|
|
20289
|
+ }
|
|
|
20290
|
+
|
|
20158
|
20291
|
}
|
|
20159
|
20292
|
oper.F_CreateUser = User.F_UserCode;
|
|
20160
|
20293
|
oper.F_CreateTime = DateTime.Now;
|
|
|
@@ -21291,6 +21424,282 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
21291
|
21424
|
|
|
21292
|
21425
|
return dt;
|
|
21293
|
21426
|
}
|
|
|
21427
|
+
|
|
|
21428
|
+ /// <summary>
|
|
|
21429
|
+ /// 添加人民网回复
|
|
|
21430
|
+ /// </summary>
|
|
|
21431
|
+ /// <returns></returns>
|
|
|
21432
|
+ public ActionResult Reply(string workorderid, string content, string organization)
|
|
|
21433
|
+ {
|
|
|
21434
|
+
|
|
|
21435
|
+ var mdoel = new BLL.T_Bus_WorkOrder().GetModelList("F_WorkOrderId='" + workorderid + "' and F_IsDelete=0");
|
|
|
21436
|
+ if (mdoel != null && mdoel.Count > 0)
|
|
|
21437
|
+ {
|
|
|
21438
|
+ var modelPeople = new BLL.T_Bus_People().GetModelList("F_WorkOrderId='" + mdoel.First().F_WorkOrderId + "' ");
|
|
|
21439
|
+ var prople = new Model.T_Bus_People();
|
|
|
21440
|
+ if (modelPeople != null && modelPeople.Count > 0)
|
|
|
21441
|
+ {
|
|
|
21442
|
+ prople = modelPeople.FirstOrDefault();
|
|
|
21443
|
+ }
|
|
|
21444
|
+ else
|
|
|
21445
|
+ {
|
|
|
21446
|
+ return Error("此工单非从网站抓取工单");
|
|
|
21447
|
+ }
|
|
|
21448
|
+ if (content.Length < 20)
|
|
|
21449
|
+ {
|
|
|
21450
|
+ return Error("回复内容应在20字以上");
|
|
|
21451
|
+ }
|
|
|
21452
|
+ string token = Login();
|
|
|
21453
|
+ Dictionary<string, object> LY = new Dictionary<string, object>();
|
|
|
21454
|
+ LY.Add("tid", prople.tid);
|
|
|
21455
|
+ LY.Add("asContent", content);
|
|
|
21456
|
+ LY.Add("organization", organization);
|
|
|
21457
|
+ Dictionary<string, object> ParamMap = new Dictionary<string, object>();
|
|
|
21458
|
+ ParamMap.Add("answer", LY);
|
|
|
21459
|
+ if (prople.state == 1)
|
|
|
21460
|
+ {
|
|
|
21461
|
+ //序列化参数
|
|
|
21462
|
+ // 发送请求
|
|
|
21463
|
+ var request = (HttpWebRequest)WebRequest.Create(rmwurl+"/v1/org/addExplainOne");
|
|
|
21464
|
+ request.Method = "POST";
|
|
|
21465
|
+ request.ContentType = "application/json;charset=UTF-8";
|
|
|
21466
|
+ var byteData = Encoding.UTF8.GetBytes(createParamMap("/v1/org/addExplainOne", ParamMap.ToJson(), token).ToJson());
|
|
|
21467
|
+ var length = byteData.Length;
|
|
|
21468
|
+ request.ContentLength = length;
|
|
|
21469
|
+ var writer = request.GetRequestStream();
|
|
|
21470
|
+ writer.Write(byteData, 0, length);
|
|
|
21471
|
+ writer.Close();
|
|
|
21472
|
+ //接收数据
|
|
|
21473
|
+ var response = (HttpWebResponse)request.GetResponse();
|
|
|
21474
|
+ var responseString = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8")).ReadToEnd();
|
|
|
21475
|
+
|
|
|
21476
|
+ try
|
|
|
21477
|
+ {
|
|
|
21478
|
+ JObject paras = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(responseString);
|
|
|
21479
|
+ var txnBodyCom = paras["result"].ToString();
|
|
|
21480
|
+ var result = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(txnBodyCom);
|
|
|
21481
|
+ if (result["code"].ToString() == "0")
|
|
|
21482
|
+ {
|
|
|
21483
|
+ prople.state = 3;
|
|
|
21484
|
+ bool n = new BLL.T_Bus_People().Update(prople);
|
|
|
21485
|
+ #region 插入操作记录
|
|
|
21486
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
21487
|
+ oper.F_WorkOrderId = mdoel.First().F_WorkOrderId;
|
|
|
21488
|
+ // oper.F_AssignedId = modelT_Bus_AssignedInfo.F_Id;
|
|
|
21489
|
+ oper.F_State = mdoel.First().F_WorkState;
|
|
|
21490
|
+ string userinfo = User.depname + "(" + User.F_UserCode + ")";
|
|
|
21491
|
+ oper.F_Message = userinfo + " " + "回复" + "了工单";
|
|
|
21492
|
+ oper.F_CreateUser = User.F_UserCode;
|
|
|
21493
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
21494
|
+ oper.F_IsDelete = 0;
|
|
|
21495
|
+ operBLL.Add(oper);
|
|
|
21496
|
+ #endregion
|
|
|
21497
|
+ return Success("回复成功");
|
|
|
21498
|
+ }
|
|
|
21499
|
+ else
|
|
|
21500
|
+ {
|
|
|
21501
|
+ return Error(result["msgDesc"].ToString());
|
|
|
21502
|
+ }
|
|
|
21503
|
+
|
|
|
21504
|
+ }
|
|
|
21505
|
+ catch
|
|
|
21506
|
+ {
|
|
|
21507
|
+ return Error("回复失败");
|
|
|
21508
|
+ }
|
|
|
21509
|
+
|
|
|
21510
|
+ }
|
|
|
21511
|
+ else if (prople.state == 2)
|
|
|
21512
|
+ {
|
|
|
21513
|
+
|
|
|
21514
|
+ //序列化参数
|
|
|
21515
|
+ // 发送请求
|
|
|
21516
|
+ var request = (HttpWebRequest)WebRequest.Create(rmwurl+"/v1/org/addExplainTwo");
|
|
|
21517
|
+ request.Method = "POST";
|
|
|
21518
|
+ request.ContentType = "application/json;charset=UTF-8";
|
|
|
21519
|
+ var byteData = Encoding.UTF8.GetBytes(createParamMap("/v1/org/addExplainTwo", ParamMap.ToJson(), token).ToJson());
|
|
|
21520
|
+ var length = byteData.Length;
|
|
|
21521
|
+ request.ContentLength = length;
|
|
|
21522
|
+ var writer = request.GetRequestStream();
|
|
|
21523
|
+ writer.Write(byteData, 0, length);
|
|
|
21524
|
+ writer.Close();
|
|
|
21525
|
+ //接收数据
|
|
|
21526
|
+ var response = (HttpWebResponse)request.GetResponse();
|
|
|
21527
|
+ var responseString = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8")).ReadToEnd();
|
|
|
21528
|
+
|
|
|
21529
|
+
|
|
|
21530
|
+ try
|
|
|
21531
|
+ {
|
|
|
21532
|
+ JObject paras = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(responseString);
|
|
|
21533
|
+ var txnBodyCom = paras["result"].ToString();
|
|
|
21534
|
+ var result = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(txnBodyCom);
|
|
|
21535
|
+ if (result["code"].ToString() == "0")
|
|
|
21536
|
+ {
|
|
|
21537
|
+ prople.state = 3;
|
|
|
21538
|
+ bool n = new BLL.T_Bus_People().Update(prople);
|
|
|
21539
|
+ #region 插入操作记录
|
|
|
21540
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
21541
|
+ oper.F_WorkOrderId = mdoel.First().F_WorkOrderId;
|
|
|
21542
|
+ // oper.F_AssignedId = modelT_Bus_AssignedInfo.F_Id;
|
|
|
21543
|
+ oper.F_State = mdoel.First().F_WorkState;
|
|
|
21544
|
+ string userinfo = User.depname + "(" + User.F_UserCode + ")";
|
|
|
21545
|
+ oper.F_Message = userinfo + " " + "回复" + "了工单";
|
|
|
21546
|
+ oper.F_CreateUser = User.F_UserCode;
|
|
|
21547
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
21548
|
+ oper.F_IsDelete = 0;
|
|
|
21549
|
+ operBLL.Add(oper);
|
|
|
21550
|
+ #endregion
|
|
|
21551
|
+ return Success("回复成功");
|
|
|
21552
|
+ }
|
|
|
21553
|
+ else
|
|
|
21554
|
+ {
|
|
|
21555
|
+ return Error(result["msgDesc"].ToString());
|
|
|
21556
|
+ }
|
|
|
21557
|
+
|
|
|
21558
|
+ }
|
|
|
21559
|
+ catch
|
|
|
21560
|
+ {
|
|
|
21561
|
+ return Error("回复失败");
|
|
|
21562
|
+ }
|
|
|
21563
|
+ }
|
|
|
21564
|
+ else
|
|
|
21565
|
+ { //序列化参数
|
|
|
21566
|
+ // 发送请求
|
|
|
21567
|
+ var request = (HttpWebRequest)WebRequest.Create(rmwurl+"/v1/org/addAnswerOne");
|
|
|
21568
|
+ request.Method = "POST";
|
|
|
21569
|
+ request.ContentType = "application/json;charset=UTF-8";
|
|
|
21570
|
+ var byteData = Encoding.UTF8.GetBytes(createParamMap("/v1/org/addAnswerOne", ParamMap.ToJson(), token).ToJson());
|
|
|
21571
|
+ var length = byteData.Length;
|
|
|
21572
|
+ request.ContentLength = length;
|
|
|
21573
|
+ var writer = request.GetRequestStream();
|
|
|
21574
|
+ writer.Write(byteData, 0, length);
|
|
|
21575
|
+ writer.Close();
|
|
|
21576
|
+ //接收数据
|
|
|
21577
|
+ var response = (HttpWebResponse)request.GetResponse();
|
|
|
21578
|
+ var responseString = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8")).ReadToEnd();
|
|
|
21579
|
+ try
|
|
|
21580
|
+ {
|
|
|
21581
|
+ JObject paras = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(responseString);
|
|
|
21582
|
+ var txnBodyCom = paras["result"].ToString();
|
|
|
21583
|
+ var result = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(txnBodyCom);
|
|
|
21584
|
+ if (result["code"].ToString() == "0")
|
|
|
21585
|
+ {
|
|
|
21586
|
+ prople.state = 3;
|
|
|
21587
|
+ bool n = new BLL.T_Bus_People().Update(prople);
|
|
|
21588
|
+ #region 插入操作记录
|
|
|
21589
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
21590
|
+ oper.F_WorkOrderId = mdoel.First().F_WorkOrderId;
|
|
|
21591
|
+ // oper.F_AssignedId = modelT_Bus_AssignedInfo.F_Id;
|
|
|
21592
|
+ oper.F_State = mdoel.First().F_WorkState;
|
|
|
21593
|
+ string userinfo = User.depname + "(" + User.F_UserCode + ")";
|
|
|
21594
|
+ oper.F_Message = userinfo + " " + "回复" + "了工单";
|
|
|
21595
|
+ oper.F_CreateUser = User.F_UserCode;
|
|
|
21596
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
21597
|
+ oper.F_IsDelete = 0;
|
|
|
21598
|
+ operBLL.Add(oper);
|
|
|
21599
|
+ #endregion
|
|
|
21600
|
+ return Success("回复成功");
|
|
|
21601
|
+ }
|
|
|
21602
|
+ else
|
|
|
21603
|
+ {
|
|
|
21604
|
+ return Error(result["msgDesc"].ToString());
|
|
|
21605
|
+ }
|
|
|
21606
|
+
|
|
|
21607
|
+ }
|
|
|
21608
|
+ catch
|
|
|
21609
|
+ {
|
|
|
21610
|
+ return Error("回复失败");
|
|
|
21611
|
+ }
|
|
|
21612
|
+
|
|
|
21613
|
+ }
|
|
|
21614
|
+
|
|
|
21615
|
+
|
|
|
21616
|
+ }
|
|
|
21617
|
+ else
|
|
|
21618
|
+ {
|
|
|
21619
|
+ return Error("工单不存在");
|
|
|
21620
|
+ }
|
|
|
21621
|
+
|
|
|
21622
|
+
|
|
|
21623
|
+ }
|
|
|
21624
|
+ public string Login()
|
|
|
21625
|
+ {
|
|
|
21626
|
+ Dictionary<string, string> login = new Dictionary<string, string>();
|
|
|
21627
|
+ login.Add("loginName", "ayszxx");
|
|
|
21628
|
+ login.Add("password", "5116008");
|
|
|
21629
|
+ //序列化参数
|
|
|
21630
|
+
|
|
|
21631
|
+ // 发送请求
|
|
|
21632
|
+ //序列化参数
|
|
|
21633
|
+
|
|
|
21634
|
+ // 发送请求
|
|
|
21635
|
+ var request = (HttpWebRequest)WebRequest.Create(rmwurl+"/v1/user/login");
|
|
|
21636
|
+ request.Method = "POST";
|
|
|
21637
|
+ request.ContentType = "application/json;charset=UTF-8";
|
|
|
21638
|
+
|
|
|
21639
|
+ var byteData = Encoding.UTF8.GetBytes(createParamMap("/v1/user/login", login.ToJson()).ToJson());
|
|
|
21640
|
+ var length = byteData.Length;
|
|
|
21641
|
+ request.ContentLength = length;
|
|
|
21642
|
+ var writer = request.GetRequestStream();
|
|
|
21643
|
+ writer.Write(byteData, 0, length);
|
|
|
21644
|
+ writer.Close();
|
|
|
21645
|
+ //接收数据
|
|
|
21646
|
+ var response = (HttpWebResponse)request.GetResponse();
|
|
|
21647
|
+ var responseString = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8")).ReadToEnd();
|
|
|
21648
|
+ JObject paras = null;
|
|
|
21649
|
+ paras = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(responseString);
|
|
|
21650
|
+ var txnBodyCom = paras["resultData"].ToString();
|
|
|
21651
|
+ var result = (JObject)Newtonsoft.Json.JsonConvert.DeserializeObject(txnBodyCom);
|
|
|
21652
|
+ // token = jo["token"].ToString();
|
|
|
21653
|
+ // string result = SmsNewHelper.Send(mobiles, Content);
|
|
|
21654
|
+
|
|
|
21655
|
+ return result["token"].ToString();
|
|
|
21656
|
+ }
|
|
|
21657
|
+ private string APP_CODE =Configs .GetValue ("APP_CODE");
|
|
|
21658
|
+ private string APP_SECRET = Configs.GetValue("APP_SECRET");
|
|
|
21659
|
+ private string rmwurl = Configs.GetValue("Rmwurl");
|
|
|
21660
|
+ // private string APP_CODE = "d377d97d7e9346e7831351ee5b62a418";
|
|
|
21661
|
+ // private string APP_SECRET = "ff24bb32f2e14ea595dcd1748feceabd";
|
|
|
21662
|
+ // private string rmwurl = "http://api-qa-dfbbs.peopletech.cn/pro-dfbbs-api";
|
|
|
21663
|
+ //private string APP_CODE = "314f185e71e74dd8879ab154746f7681";
|
|
|
21664
|
+ //private string APP_SECRET = "900a640b37e84a8c88ffc83d6f3500f6";
|
|
|
21665
|
+ //private string rmwurl = "http://liuyan-api.people.com.cn/api";
|
|
|
21666
|
+ public Dictionary<string, string> createParamMap(string url, string param)
|
|
|
21667
|
+ {
|
|
|
21668
|
+ Dictionary<string, string> parame = new Dictionary<string, string>();
|
|
|
21669
|
+ parame.Add("appCode", APP_CODE);
|
|
|
21670
|
+ parame.Add("param", param);
|
|
|
21671
|
+ parame.Add("signature", Md5(url + param + APP_SECRET));
|
|
|
21672
|
+ return parame;
|
|
|
21673
|
+ }
|
|
|
21674
|
+
|
|
|
21675
|
+ public Dictionary<string, string> createParamMap(string url, string param, string token)
|
|
|
21676
|
+ {
|
|
|
21677
|
+ Dictionary<string, string> parame = new Dictionary<string, string>();
|
|
|
21678
|
+ parame.Add("token", token);
|
|
|
21679
|
+ parame.Add("appCode", APP_CODE);
|
|
|
21680
|
+ parame.Add("param", param);
|
|
|
21681
|
+ parame.Add("signature", Md5(url + param + APP_SECRET + token));
|
|
|
21682
|
+ return parame;
|
|
|
21683
|
+ }
|
|
|
21684
|
+ /// <summary>
|
|
|
21685
|
+ /// MD5加密
|
|
|
21686
|
+ /// </summary>
|
|
|
21687
|
+ /// <param name="txt"></param>
|
|
|
21688
|
+ /// <returns></returns>
|
|
|
21689
|
+ public static string Md5(string txt)
|
|
|
21690
|
+ {
|
|
|
21691
|
+ byte[] sor = Encoding.UTF8.GetBytes(txt);
|
|
|
21692
|
+ MD5 md5 = MD5.Create();
|
|
|
21693
|
+ byte[] result = md5.ComputeHash(sor);
|
|
|
21694
|
+ StringBuilder strbul = new StringBuilder(40);
|
|
|
21695
|
+ for (int i = 0; i < result.Length; i++)
|
|
|
21696
|
+ {
|
|
|
21697
|
+ //加密结果"x2"结果为32位,"x3"结果为48位,"x4"结果为64位
|
|
|
21698
|
+ strbul.Append(result[i].ToString("x2"));
|
|
|
21699
|
+ }
|
|
|
21700
|
+ return strbul.ToString().ToLower(); ;
|
|
|
21701
|
+ }
|
|
|
21702
|
+
|
|
21294
|
21703
|
/// <summary>
|
|
21295
|
21704
|
/// 绑定追问回复附件信息
|
|
21296
|
21705
|
/// </summary>
|
|
|
@@ -22095,12 +22504,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
22095
|
22504
|
oper.F_CreateTime = DateTime.Now;
|
|
22096
|
22505
|
oper.F_IsDelete = 0;
|
|
22097
|
22506
|
oper.F_Type = type;
|
|
22098
|
|
- operBLL.Add(oper);
|
|
|
22507
|
+ int n= operBLL.Add(oper);
|
|
22099
|
22508
|
if (isjb==1)
|
|
22100
|
22509
|
{
|
|
22101
|
22510
|
Task.Run(() =>
|
|
22102
|
22511
|
{
|
|
22103
|
|
- process_info(oper.F_Id, "case_process_info", "交办工单");
|
|
|
22512
|
+ process_info(n, "case_process_info", "交办工单");
|
|
22104
|
22513
|
}).ContinueWith(p => {
|
|
22105
|
22514
|
System.Diagnostics.Debug.WriteLine(DateTime.Now);
|
|
22106
|
22515
|
});
|