mengjie %!s(int64=5) %!d(string=před) roky
rodič
revize
ba199fad27

+ 41 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/CallOutReportController.cs

@@ -16,6 +16,7 @@ namespace CallCenterApi.Interface.Controllers.report
16 16
         private readonly BLL.T_Ask_Question questionBLL = new BLL.T_Ask_Question();
17 17
         private readonly BLL.T_Call_OutAnswers ansBLL = new BLL.T_Call_OutAnswers();
18 18
         private readonly BLL.T_Ask_QuestionItems questionItemBLL = new BLL.T_Ask_QuestionItems();
19
+        private readonly BLL.T_Call_OutTask otBLL = new BLL.T_Call_OutTask();
19 20
 
20 21
         #region 获取外呼任务报表查询
21 22
         /// <summary>
@@ -575,5 +576,45 @@ namespace CallCenterApi.Interface.Controllers.report
575 576
         }
576 577
         #endregion
577 578
         #endregion
579
+
580
+        #region 下拉框
581
+        /// <summary>
582
+        /// 任务列表下拉
583
+        /// </summary>
584
+        /// <returns></returns>
585
+        public ActionResult GetTaskDDL()
586
+        {
587
+            var alllist = otBLL.GetModelList(" F_DeleteFlag=0 order by F_TaskID desc");
588
+            return Success("获取任务列表下拉成功", alllist);
589
+        }
590
+        /// <summary>
591
+        /// 问题列表下拉
592
+        /// </summary>
593
+        /// <returns></returns>
594
+        public ActionResult GetQuesDDL(int taskid = 0)
595
+        {
596
+            string sql = "";
597
+            if (taskid > 0)
598
+            {
599
+                sql += " and F_QuestionId IN (select ta.F_QuestionId from  T_Ask_PagerItems ta where ta.F_PagerId=(select F_PagerID from T_Call_OutTask where isnull(F_TaskID,'')='" + taskid + "') )";
600
+            }
601
+            var list = questionBLL.GetModelList(" F_Type!=1" + sql);
602
+            return Success("获取问题列表下拉成功", list);
603
+        }
604
+        /// <summary>
605
+        /// 问题选项列表下拉
606
+        /// </summary>
607
+        /// <returns></returns>
608
+        public ActionResult GetQuesItemDDL(int quesid = 0)
609
+        {
610
+            string sql = " 1=1 ";
611
+            if (quesid > 0)
612
+            {
613
+                sql += " and F_QuestionId=" + quesid;
614
+            }
615
+            var list = questionItemBLL.GetModelList(sql);
616
+            return Success("获取问题选项列表下拉成功", list);
617
+        }
618
+        #endregion
578 619
     }
579 620
 }