|
|
@@ -6031,25 +6031,19 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
6031
|
6031
|
/// <summary>
|
|
6032
|
6032
|
/// 回访工单
|
|
6033
|
6033
|
/// </summary>
|
|
6034
|
|
- public bool Retu(Model.T_Sys_UserAccount nowUser, Model.T_Wo_WorkOrder model, string cont,string reason,string F_VisitRemarks, string call, int isOver = 0)
|
|
|
6034
|
+ public bool Retu(Model.T_Sys_UserAccount nowUser, Model.T_Wo_WorkOrder model, string cont,string reason,string F_VisitRemarks, string call, int isOver = 0 ,int sms = 0)
|
|
6035
|
6035
|
{
|
|
6036
|
6036
|
#region 工单处理
|
|
6037
|
|
- int sms = 0;
|
|
6038
|
|
- var itemlasts = itembll.GetModelList(" F_WoState=" + (int)EnumWorkOrderState.finish + " and F_WoID=" + model.F_ID + " ");
|
|
6039
|
|
- if (itemlasts.Count > 0)
|
|
6040
|
|
- {
|
|
6041
|
|
- foreach (var it in itemlasts)
|
|
6042
|
|
- {
|
|
6043
|
|
- sms = int.Parse(it.F_IsSMS.ToString());
|
|
6044
|
|
- }
|
|
6045
|
|
- }
|
|
|
6037
|
+
|
|
|
6038
|
+
|
|
|
6039
|
+
|
|
6046
|
6040
|
string sid = "";
|
|
6047
|
6041
|
var opt = "回访";
|
|
6048
|
6042
|
string smscont = "为更好的为你提供服务,请你对我们的服务进行评价,满意请按1,一般请按2,不满意请按3.";
|
|
6049
|
6043
|
int optbut = (int)EnumItemOpt.visit;
|
|
6050
|
6044
|
int wostate = (int)EnumWorkOrderState.evaluate;
|
|
6051
|
6045
|
if (isOver==0)
|
|
6052
|
|
- {
|
|
|
6046
|
+ {
|
|
6053
|
6047
|
wostate = (int)EnumWorkOrderState.finish;
|
|
6054
|
6048
|
}
|
|
6055
|
6049
|
else
|
|
|
@@ -6440,6 +6434,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
6440
|
6434
|
smscont = "建议";
|
|
6441
|
6435
|
}
|
|
6442
|
6436
|
string[] mag = { smscont };
|
|
|
6437
|
+ string smsmsg= "你有一条新的" + smscont + "工单,请及时处理";
|
|
|
6438
|
+
|
|
6443
|
6439
|
string touser = ""; string tousername = "";
|
|
6444
|
6440
|
|
|
6445
|
6441
|
int deptid = 0;
|
|
|
@@ -6459,7 +6455,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
6459
|
6455
|
{
|
|
6460
|
6456
|
|
|
6461
|
6457
|
SmsSingleSenderResult result = new SMSController().SMSSingleshot(395191, mag, clus.F_Mobile.Trim());
|
|
6462
|
|
- bool n = new SMSController().AddSmS(clus.F_Mobile.Trim(), smscont, nowUser.F_UserId);
|
|
|
6458
|
+ bool n = new SMSController().AddSmS(clus.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
|
|
6463
|
6459
|
}
|
|
6464
|
6460
|
|
|
6465
|
6461
|
}
|
|
|
@@ -6488,7 +6484,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
6488
|
6484
|
if (!string.IsNullOrEmpty(l.F_Mobile.Trim ()))
|
|
6489
|
6485
|
{
|
|
6490
|
6486
|
SmsSingleSenderResult result = new SMSController().SMSSingleshot(395191, mag,l.F_Mobile.Trim());
|
|
6491
|
|
- bool n = new SMSController().AddSmS(l.F_Mobile.Trim(), smscont, nowUser.F_UserId);
|
|
|
6487
|
+ bool n = new SMSController().AddSmS(l.F_Mobile.Trim(), smsmsg, nowUser.F_UserId);
|
|
6492
|
6488
|
}
|
|
6493
|
6489
|
|
|
6494
|
6490
|
}
|