|
|
@@ -37,7 +37,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
37
|
37
|
/// 获取工单列表
|
|
38
|
38
|
/// </summary>
|
|
39
|
39
|
/// <returns></returns>
|
|
40
|
|
- public ActionResult GetList(string code, string cusname, string cusphone, string createby, string starttime, string endtime, string keywords, string companyname, string province, string city,
|
|
|
40
|
+ public ActionResult GetList(string code,string visitResult, string cusname, string cusphone, string createby, string starttime, string endtime, string keywords, string companyname, string province, string city, string callresults ,
|
|
41
|
41
|
string country, string telephone, string township, string touser, string strvisit, string endvisit, int source = 0, int type = 0, int status = 0, int state=-1, int pageindex = 1,int pagesize = 10)
|
|
42
|
42
|
{
|
|
43
|
43
|
|
|
|
@@ -65,6 +65,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
65
|
65
|
sql += $" and ( F_CusName like '%" + keywords.Trim() + "%'or F_CusPhone like '%" + keywords.Trim() + "%' ) ";
|
|
66
|
66
|
if (!string.IsNullOrWhiteSpace(code))//工单编号
|
|
67
|
67
|
sql += $" and F_WorkOrderCode like '%" + code.Trim() + "%'";
|
|
|
68
|
+ if (!string.IsNullOrWhiteSpace(visitResult))//
|
|
|
69
|
+ sql += $" and F_VisitResult = '" + visitResult.Trim() + "'";
|
|
|
70
|
+ if (!string.IsNullOrWhiteSpace(callresults))//
|
|
|
71
|
+ sql += $" and F_Callresults = '" + callresults.Trim() + "'";
|
|
|
72
|
+
|
|
68
|
73
|
if (!string.IsNullOrWhiteSpace(createby))//创建人
|
|
69
|
74
|
{
|
|
70
|
75
|
string F_WorkNumber = "";
|
|
|
@@ -4390,7 +4395,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
4390
|
4395
|
model.F_IsAudit = model1[i].F_IsAudit;//是否审核
|
|
4391
|
4396
|
model.F_Highopinions = model1[i].F_Highopinions;//高层处理意见
|
|
4392
|
4397
|
model.F_CreateOn = model1[i].F_CreateOn; ;//添加时间
|
|
4393
|
|
-
|
|
|
4398
|
+ model.F_Annotation = model1[i].F_Annotation; ;//注解
|
|
4394
|
4399
|
if (!string .IsNullOrEmpty (model1[i].F_CreateBy))
|
|
4395
|
4400
|
{
|
|
4396
|
4401
|
Model.T_Sys_UserAccount creatname = sysUserAccountBll.GetModel(model1[i].F_CreateBy);
|
|
|
@@ -5100,6 +5105,43 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
5100
|
5105
|
return Error("无操作权限!");
|
|
5101
|
5106
|
}
|
|
5102
|
5107
|
}
|
|
|
5108
|
+ /// <summary>
|
|
|
5109
|
+ /// 注解
|
|
|
5110
|
+ /// </summary>
|
|
|
5111
|
+ /// <param name="orderid"></param>
|
|
|
5112
|
+ /// <param name="cont"></param>
|
|
|
5113
|
+ /// <returns></returns>
|
|
|
5114
|
+ public ActionResult Annotation(int orderid, string cont)
|
|
|
5115
|
+ {
|
|
|
5116
|
+ int userId = CurrentUser.UserData.F_UserId;
|
|
|
5117
|
+ if (userId != 0)
|
|
|
5118
|
+ {
|
|
|
5119
|
+ Model.T_Sys_UserAccount ua = sysUserAccountBll.GetModel(userId);
|
|
|
5120
|
+ if (ua != null)
|
|
|
5121
|
+ {
|
|
|
5122
|
+ Model.T_Wo_WorkOrder model = workOrder.GetModel(orderid);
|
|
|
5123
|
+ //验证信息
|
|
|
5124
|
+ if (model != null)
|
|
|
5125
|
+ {
|
|
|
5126
|
+ if (string .IsNullOrEmpty (model.F_Annotation))
|
|
|
5127
|
+ {
|
|
|
5128
|
+ model.F_Annotation = cont;
|
|
|
5129
|
+ }
|
|
|
5130
|
+ else
|
|
|
5131
|
+ {
|
|
|
5132
|
+ model.F_Annotation = model.F_Annotation + "。" + cont;
|
|
|
5133
|
+ }
|
|
|
5134
|
+ var res = workOrder.Update(model);
|
|
|
5135
|
+ if (res)
|
|
|
5136
|
+ return Success("注解成功");
|
|
|
5137
|
+ else
|
|
|
5138
|
+ return Error("注解失败!");
|
|
|
5139
|
+ }
|
|
|
5140
|
+ return Error("工单不存在");
|
|
|
5141
|
+ }
|
|
|
5142
|
+ }
|
|
|
5143
|
+ return Error("无操作权限");
|
|
|
5144
|
+ }
|
|
5103
|
5145
|
public ActionResult ReturnVisit(int orderid, string cont)
|
|
5104
|
5146
|
{
|
|
5105
|
5147
|
int userId = CurrentUser.UserData.F_UserId;
|