|
|
@@ -123,7 +123,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
123
|
123
|
}
|
|
124
|
124
|
if (strtel.Trim() != "" && strtel != "undefined")
|
|
125
|
125
|
{
|
|
126
|
|
- sql += " and (F_CusPhone = '" + strtel + "' or F_CusPhone = '0" + strtel + "'or F_ConPhone = '" + strtel + "' or F_ConPhone = '0" + strtel + "') ";
|
|
|
126
|
+ sql += " and (F_CusPhone like '%" + strtel + "%' or F_ConPhone like '%" + strtel + "%') ";
|
|
127
|
127
|
}
|
|
128
|
128
|
int dbtype = RequestString.GetInt("dbtype", 0);
|
|
129
|
129
|
if (pydt>0)
|
|
|
@@ -8984,15 +8984,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
8984
|
8984
|
//[Authority]
|
|
8985
|
8985
|
public ActionResult EditWorkOrder()
|
|
8986
|
8986
|
{
|
|
8987
|
|
-
|
|
8988
|
|
-
|
|
8989
|
|
-
|
|
8990
|
|
-
|
|
8991
|
8987
|
if (User.F_RoleCode == "ZXHWY" || User.F_RoleCode == "ZXBZ" || User.F_RoleCode == "ZXLD" || User.F_RoleCode == "ZXLDGLYGLY" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG"|| User.F_RoleCode == "MTDD")
|
|
8992
|
8988
|
{
|
|
8993
|
8989
|
string workorderid = RequestString.GetFormString("workorderid");
|
|
8994
|
8990
|
Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
|
|
8995
|
|
- //if (modelT_Bus_WorkOrder != null && (modelT_Bus_WorkOrder.F_WorkState == 1 || modelT_Bus_WorkOrder.F_WorkState == 0))
|
|
8996
|
8991
|
if (modelT_Bus_WorkOrder != null && (modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.submit || modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.neworder || modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.audit || modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.resubmit))
|
|
8997
|
8992
|
{
|
|
8998
|
8993
|
int source = RequestString.GetInt("source", 0);
|
|
|
@@ -9077,17 +9072,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
9077
|
9072
|
modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.submit;// 1;//提交领导
|
|
9078
|
9073
|
}
|
|
9079
|
9074
|
#region
|
|
9080
|
|
- //20190715 审核环节去掉 zhengbingbing
|
|
9081
|
|
- //else
|
|
9082
|
|
- //{
|
|
9083
|
|
- // if(modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.neworder || modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.audit)
|
|
9084
|
|
- // modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.audit;
|
|
9085
|
|
- //}
|
|
9086
|
|
- //else if (issubmit == 1)
|
|
9087
|
|
- //{
|
|
9088
|
|
- // modelT_Bus_WorkOrder.F_SubmitTime = DateTime.Now;
|
|
9089
|
|
- // modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.submit;// 1;//提交领导
|
|
9090
|
|
- //}
|
|
9091
|
9075
|
#endregion
|
|
9092
|
9076
|
if (state > 0)
|
|
9093
|
9077
|
{
|
|
|
@@ -9345,18 +9329,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
9345
|
9329
|
//[Authority]
|
|
9346
|
9330
|
public ActionResult EditWorkOrderBySource()
|
|
9347
|
9331
|
{
|
|
9348
|
|
-
|
|
9349
|
|
-
|
|
9350
|
|
-
|
|
9351
|
|
-
|
|
9352
|
|
-
|
|
9353
|
9332
|
if (User.F_RoleCode == "ZXHWY" || User.F_RoleCode == "ZXBZ" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG")
|
|
9354
|
9333
|
{
|
|
9355
|
|
-
|
|
9356
|
9334
|
string workorderid = RequestString.GetFormString("workorderid");
|
|
9357
|
|
-
|
|
9358
|
9335
|
int source = RequestString.GetInt("source", 0);
|
|
9359
|
|
-
|
|
9360
|
9336
|
string cusname = RequestString.GetFormString("cusname");
|
|
9361
|
9337
|
string cussex = RequestString.GetFormString("cussex");
|
|
9362
|
9338
|
string cusphone = RequestString.GetFormString("cusphone");
|
|
|
@@ -12210,16 +12186,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
12210
|
12186
|
//[Authority]
|
|
12211
|
12187
|
public ActionResult ReplyWorkOrder()
|
|
12212
|
12188
|
{
|
|
12213
|
|
-
|
|
12214
|
|
-
|
|
12215
|
|
-
|
|
12216
|
|
-
|
|
12217
|
12189
|
if (User.F_RoleCode == "WLDW" || User.F_RoleCode == "ZXLD" || User.F_RoleCode == "EJWLDW" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG"|| User.F_RoleCode == "MTDD")
|
|
12218
|
12190
|
{
|
|
12219
|
12191
|
string workorderid = RequestString.GetFormString("workorderid");
|
|
12220
|
12192
|
string files = RequestString.GetFormString("files");
|
|
12221
|
|
-
|
|
12222
|
|
-
|
|
12223
|
12193
|
string replycount = RequestString.GetFormString("replycount");
|
|
12224
|
12194
|
Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
|
|
12225
|
12195
|
Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
|
|
|
@@ -12231,7 +12201,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
12231
|
12201
|
&& modelT_Bus_Feedback!=null )
|
|
12232
|
12202
|
{
|
|
12233
|
12203
|
// type = AssignDeptType(modelT_Bus_AssignedInfo, User.F_DeptId);
|
|
12234
|
|
-
|
|
12235
|
12204
|
//if (modelT_Bus_WorkOrder.F_WorkState == 4)
|
|
12236
|
12205
|
if (modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.dealed && modelT_Bus_WorkOrder.F_IsProResult ==2)
|
|
12237
|
12206
|
{
|
|
|
@@ -12970,10 +12939,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
12970
|
12939
|
//[Authority]
|
|
12971
|
12940
|
public ActionResult WithdrawWorkOrder()
|
|
12972
|
12941
|
{
|
|
12973
|
|
-
|
|
12974
|
|
-
|
|
12975
|
|
-
|
|
12976
|
|
-
|
|
12977
|
12942
|
if (User.F_RoleCode == "WLDW" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG")
|
|
12978
|
12943
|
{
|
|
12979
|
12944
|
string workorderid = RequestString.GetFormString("workorderid");
|
|
|
@@ -13054,10 +13019,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
13054
|
13019
|
//[Authority]
|
|
13055
|
13020
|
public ActionResult SignWorkOrder()
|
|
13056
|
13021
|
{
|
|
13057
|
|
-
|
|
13058
|
|
-
|
|
13059
|
|
-
|
|
13060
|
|
-
|
|
13061
|
13022
|
if (User.F_RoleCode == "EJWLDW" || User.F_RoleCode == "GLY" || User.F_RoleCode == "DDZG")
|
|
13062
|
13023
|
{
|
|
13063
|
13024
|
string workorderid = RequestString.GetFormString("workorderid");
|