|
|
@@ -34,7 +34,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
34
|
34
|
{
|
|
35
|
35
|
sb.Append(" and (F_TaskName like '%" + key + "%' or F_TaskRemark like '%" + key + "%') ");
|
|
36
|
36
|
}
|
|
37
|
|
-
|
|
|
37
|
+
|
|
38
|
38
|
var recordCount = 0;
|
|
39
|
39
|
var dt = BLL.PagerBLL.GetListPager(
|
|
40
|
40
|
"T_Call_OutTask",
|
|
|
@@ -398,7 +398,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
398
|
398
|
}
|
|
399
|
399
|
|
|
400
|
400
|
//导入后获取
|
|
401
|
|
- public ActionResult GetList(int? fileid, int? taskid)
|
|
|
401
|
+ public ActionResult GetList(int? fileid, int? taskid,string custel)
|
|
402
|
402
|
{
|
|
403
|
403
|
ActionResult res = Error("未知错误,请重新登录");
|
|
404
|
404
|
if (Request.IsAuthenticated)
|
|
|
@@ -406,7 +406,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
406
|
406
|
string sql = " and F_DeleteFlag=0 ";
|
|
407
|
407
|
DataTable dt = new DataTable();
|
|
408
|
408
|
string userid = CurrentUser.UserData.F_UserId.ToString();
|
|
409
|
|
- if (userid.Trim() != "")
|
|
|
409
|
+ if (userid.Trim() != ""&& CurrentUser.UserData.F_RoleId !=17)//2018-7-17添加角色判断
|
|
410
|
410
|
{
|
|
411
|
411
|
sql += " and cast(ExpandVchField14 as varchar(max))='" + userid.Trim() + "' ";
|
|
412
|
412
|
}
|
|
|
@@ -418,6 +418,10 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
418
|
418
|
{
|
|
419
|
419
|
sql += " and F_TaskId=" + taskid;
|
|
420
|
420
|
}
|
|
|
421
|
+ if (custel != null && custel != "")
|
|
|
422
|
+ {
|
|
|
423
|
+ sql += " and F_Phone='" + custel+"' ";
|
|
|
424
|
+ }
|
|
421
|
425
|
//sql += " and F_InputDate=(select MAX(F_InputDate)from T_Vis_Telphone)";
|
|
422
|
426
|
string strpageindex = RequestString.GetQueryString("page");
|
|
423
|
427
|
int pageindex = 1;
|
|
|
@@ -466,8 +470,12 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
466
|
470
|
{
|
|
467
|
471
|
idd += str + ",";
|
|
468
|
472
|
}
|
|
469
|
|
- if (otnBLL.DeleteList(idd.TrimEnd(',')))
|
|
|
473
|
+ if (otnBLL.DeleteList(idd.TrimEnd(',')))//需添加删除问卷结果中的数据
|
|
470
|
474
|
{
|
|
|
475
|
+ if (ansBLL.DeleteTList(idd.TrimEnd(',')))
|
|
|
476
|
+ {
|
|
|
477
|
+ //return Success("删除成功");
|
|
|
478
|
+ }
|
|
471
|
479
|
return Success("删除成功");
|
|
472
|
480
|
}
|
|
473
|
481
|
else
|
|
|
@@ -477,7 +485,7 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
477
|
485
|
{
|
|
478
|
486
|
return Error("请选择要删除的记录");
|
|
479
|
487
|
}
|
|
480
|
|
- return Error("删除号码失败,操作人:" + CurrentUser.UserData.F_UserCode);
|
|
|
488
|
+ //return Error("删除号码失败,操作人:" + CurrentUser.UserData.F_UserCode);
|
|
481
|
489
|
}
|
|
482
|
490
|
|
|
483
|
491
|
#endregion
|