|
|
@@ -35,7 +35,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
35
|
35
|
string methodName = new System.Diagnostics.StackTrace(true).GetFrame(1).GetMethod().Name; //事件源
|
|
36
|
36
|
//验证文件是否存在
|
|
37
|
37
|
// LogInterface.WriteLog(this.GetType().ToString() + " -- " + methodName + "\r\n" + ajresult.state + "|" + ajresult.data + ajresult.message); //日志
|
|
38
|
|
- var jsonMsg = new AjaxResult { state = ajresult.state, message = ajresult.message, data = ajresult.data }.ToJson();
|
|
|
38
|
+ var jsonMsg = new AjaxResult { state = ajresult.state, message = ajresult.message, data = ajresult.data, page = ajresult.page, pagesize = ajresult.pagesize }.ToJson();
|
|
39
|
39
|
return Content(jsonMsg);
|
|
40
|
40
|
}
|
|
41
|
41
|
|
|
|
@@ -138,7 +138,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
138
|
138
|
string port_password = HttpUtility.UrlDecode(RequestString.GetQueryString("port_password")); //加密信息(安全验证用)
|
|
139
|
139
|
string uuid = HttpUtility.UrlDecode(RequestString.GetQueryString("uuid")); //客户唯一标识(安全验证用)
|
|
140
|
140
|
string content = HttpUtility.UrlDecode(RequestString.GetQueryString("content"));//查收详情
|
|
141
|
|
- string usercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
|
|
|
141
|
+ //string usercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
|
|
|
142
|
+ string usercode = "0";
|
|
142
|
143
|
|
|
143
|
144
|
|
|
144
|
145
|
//using (TransactionScope scope = new TransactionScope(
|
|
|
@@ -163,12 +164,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
163
|
164
|
// ajresult.message = "工单编号不能为空";
|
|
164
|
165
|
// return Process();
|
|
165
|
166
|
//}
|
|
166
|
|
- if (string.IsNullOrEmpty(usercode))
|
|
167
|
|
- {
|
|
168
|
|
- ajresult.state = (int)CodeStatus.必填字段为空;
|
|
169
|
|
- ajresult.message = "工号不能为空";
|
|
170
|
|
- return Process();
|
|
171
|
|
- }
|
|
|
167
|
+ //if (string.IsNullOrEmpty(usercode))
|
|
|
168
|
+ //{
|
|
|
169
|
+ // ajresult.state = (int)CodeStatus.必填字段为空;
|
|
|
170
|
+ // ajresult.message = "工号不能为空";
|
|
|
171
|
+ // return Process();
|
|
|
172
|
+ //}
|
|
172
|
173
|
|
|
173
|
174
|
if (!Common.CodeValidate.ICodeValidateGridding(uuid, port_password))
|
|
174
|
175
|
{
|
|
|
@@ -191,8 +192,29 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
191
|
192
|
}
|
|
192
|
193
|
else
|
|
193
|
194
|
{
|
|
194
|
|
- ajresult.state = (int)CodeStatus.SUCCESS;
|
|
|
195
|
+
|
|
|
196
|
+
|
|
|
197
|
+
|
|
|
198
|
+ string strpageindex = RequestString.GetQueryString("page");
|
|
|
199
|
+ int pageindex = 1;
|
|
|
200
|
+ //每页条数
|
|
|
201
|
+ string strpagesize = RequestString.GetQueryString("pagesize");
|
|
|
202
|
+ int pagesize = 10;
|
|
|
203
|
+ if (strpageindex.Trim() != "")
|
|
|
204
|
+ {
|
|
|
205
|
+ pageindex = Convert.ToInt32(strpageindex);
|
|
|
206
|
+ }
|
|
|
207
|
+
|
|
|
208
|
+ if (strpagesize.Trim() != "")
|
|
|
209
|
+ {
|
|
|
210
|
+ pagesize = Convert.ToInt32(strpagesize);
|
|
|
211
|
+ }
|
|
|
212
|
+
|
|
|
213
|
+
|
|
|
214
|
+ ajresult.state = (int)CodeStatus.SUCCESS;
|
|
195
|
215
|
ajresult.message = "操作成功";
|
|
|
216
|
+ ajresult.page = pageindex;
|
|
|
217
|
+ ajresult.pagesize = pagesize;
|
|
196
|
218
|
ajresult.data = obj1[2]; //反馈ID
|
|
197
|
219
|
}
|
|
198
|
220
|
|
|
|
@@ -228,7 +250,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
228
|
250
|
string port_password = HttpUtility.UrlDecode(RequestString.GetQueryString("port_password")); //加密信息(安全验证用)
|
|
229
|
251
|
string uuid = HttpUtility.UrlDecode(RequestString.GetQueryString("uuid")); //客户唯一标识(安全验证用)
|
|
230
|
252
|
string content = HttpUtility.UrlDecode(RequestString.GetQueryString("content"));//查收详情
|
|
231
|
|
- string usercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
|
|
|
253
|
+ //string usercode = HttpUtility.UrlDecode(RequestString.GetQueryString("usercode"));
|
|
|
254
|
+ string usercode = "0";
|
|
232
|
255
|
int id = Convert.ToInt32(HttpUtility.UrlDecode(RequestString.GetQueryString("callid")));
|
|
233
|
256
|
|
|
234
|
257
|
//#region 参数验证
|
|
|
@@ -245,12 +268,12 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
245
|
268
|
return Process();
|
|
246
|
269
|
}
|
|
247
|
270
|
|
|
248
|
|
- if (string.IsNullOrEmpty(usercode))
|
|
249
|
|
- {
|
|
250
|
|
- ajresult.state = (int)CodeStatus.必填字段为空;
|
|
251
|
|
- ajresult.message = "工号不能为空";
|
|
252
|
|
- return Process();
|
|
253
|
|
- }
|
|
|
271
|
+ //if (string.IsNullOrEmpty(usercode))
|
|
|
272
|
+ //{
|
|
|
273
|
+ // ajresult.state = (int)CodeStatus.必填字段为空;
|
|
|
274
|
+ // ajresult.message = "工号不能为空";
|
|
|
275
|
+ // return Process();
|
|
|
276
|
+ //}
|
|
254
|
277
|
|
|
255
|
278
|
if (!Common.CodeValidate.ICodeValidateGridding(uuid, port_password))
|
|
256
|
279
|
{
|