Browse Source

调整问卷

zhengbingbing 7 years ago
parent
commit
ef9aa6ae66

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/Question/QuestionnaireController.cs

@@ -967,7 +967,7 @@ namespace CallCenterApi.Interface.Controllers.Question
967 967
             if (Request.IsAuthenticated)
968 968
             {
969 969
                 DataTable dt = new DataTable();
970
-                dt = new BLL.T_Call_OutTask().GetList("").Tables[0];
970
+                dt = new BLL.T_Call_OutTask().GetList("  F_DeleteFlag=0 ").Tables[0];
971 971
                 return Success("加载成功", dt);
972 972
             }
973 973
             return NoToken("未知错误,请重新登录");

+ 27 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/callout/CallOutPlanController.cs

@@ -102,15 +102,37 @@ namespace CallCenterApi.Interface.Controllers.callout
102 102
                 return Success("修改成功" + ",操作人:" + CurrentUser.UserData.F_UserCode);
103 103
             return Error("修改失败" + ",操作人:" + CurrentUser.UserData.F_UserCode);
104 104
         }
105
+        //删除任务
105 106
         public ActionResult DeleteTask(int id = 0)
106 107
         {
107
-            if (otBLL.Delete(id))
108
+            if (id > 0)
108 109
             {
109
-                return Success("删除成功" + ",操作人:" + CurrentUser.UserData.F_UserCode);
110
+                var tellist = otnBLL.GetRecordCount(" F_TaskId=" + id);
111
+                if (tellist > 0)
112
+                {
113
+                    return Error("请先清理任务下的号码,再做删除!");
114
+                }
115
+                if (otBLL.Delete(id))
116
+                {
117
+                    return Success("删除成功" + ",操作人:" + CurrentUser.UserData.F_UserCode);
118
+                }
119
+                else
120
+                {
121
+                    return Error("删除失败!" + ",操作人:" + CurrentUser.UserData.F_UserCode);
122
+                }
123
+            }
124
+            return Error("参数传入失败");
125
+        }
126
+        //清理号码
127
+        public ActionResult DeletesTaskTel(int id = 0)
128
+        {
129
+            if (otnBLL.DeleteByTask(id))
130
+            {
131
+                return Success("清理任务下号码成功" + ",操作人:" + CurrentUser.UserData.F_UserCode);
110 132
             }
111 133
             else
112 134
             {
113
-                return Error("删除失败!" + ",操作人:" + CurrentUser.UserData.F_UserCode);
135
+                return Error("清理任务下号码失败!" + ",操作人:" + CurrentUser.UserData.F_UserCode);
114 136
             }
115 137
         }
116 138
 
@@ -544,6 +566,8 @@ namespace CallCenterApi.Interface.Controllers.callout
544 566
         #region 分配
545 567
         public ActionResult fpdata(string fpvalue, string[] arruser, string key)
546 568
         {
569
+            if (arruser.Length <= 0)
570
+                return Error("请选择分配坐席");
547 571
             string fptype = "0";
548 572
             StringBuilder sb = new StringBuilder();
549 573