duhongyu %!s(int64=6) %!d(string=hace) años
padre
commit
8dca999833

+ 9 - 13
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

6031
         /// <summary>
6031
         /// <summary>
6032
         /// 回访工单
6032
         /// 回访工单
6033
         /// </summary>
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
             #region 工单处理
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
             string sid = "";
6040
             string sid = "";
6047
             var opt = "回访";
6041
             var opt = "回访";
6048
             string smscont = "为更好的为你提供服务,请你对我们的服务进行评价,满意请按1,一般请按2,不满意请按3.";
6042
             string smscont = "为更好的为你提供服务,请你对我们的服务进行评价,满意请按1,一般请按2,不满意请按3.";
6049
             int optbut = (int)EnumItemOpt.visit;
6043
             int optbut = (int)EnumItemOpt.visit;
6050
             int wostate = (int)EnumWorkOrderState.evaluate;
6044
             int wostate = (int)EnumWorkOrderState.evaluate;
6051
             if (isOver==0)
6045
             if (isOver==0)
6052
-            {                                                                                                                                                                                                                     
6046
+            {                                                                                                                                  
6053
                 wostate = (int)EnumWorkOrderState.finish;
6047
                 wostate = (int)EnumWorkOrderState.finish;
6054
             }
6048
             }
6055
             else
6049
             else
6440
                 smscont = "建议";
6434
                 smscont = "建议";
6441
             }
6435
             }
6442
             string[] mag = { smscont };
6436
             string[] mag = { smscont };
6437
+            string smsmsg= "你有一条新的" + smscont + "工单,请及时处理";
6438
+           
6443
             string touser = ""; string tousername = "";
6439
             string touser = ""; string tousername = "";
6444
 
6440
 
6445
             int deptid = 0;
6441
             int deptid = 0;
6459
                         {
6455
                         {
6460
                           
6456
                           
6461
                             SmsSingleSenderResult result = new SMSController().SMSSingleshot(395191, mag, clus.F_Mobile.Trim());
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
                         if (!string.IsNullOrEmpty(l.F_Mobile.Trim ()))
6484
                         if (!string.IsNullOrEmpty(l.F_Mobile.Trim ()))
6489
                         {
6485
                         {
6490
                             SmsSingleSenderResult result = new SMSController().SMSSingleshot(395191, mag,l.F_Mobile.Trim());
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
                     }