Przeglądaj źródła

增加获取工单来源标题接口

machenyang 8 lat temu
rodzic
commit
d8cc51ec97

+ 31 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/report/GDLYController.cs

@@ -17,6 +17,37 @@ namespace CallCenterApi.Interface.Controllers.report
17 17
         //{
18 18
         //    return View();
19 19
         //}
20
+        public ActionResult GetColumnList()
21
+        {
22
+            ActionResult res = NoToken("未知错误,请重新登录");
23
+            #region 添加表格标题
24
+            DataTable dtNew = new DataTable();
25
+            
26
+            var sqlGDLY = " and F_State=1 and F_DictionaryFlag='GDLY' ";
27
+            var recordCount = 0;
28
+            var dtGDLY = BLL.PagerBLL.GetListPager(
29
+              "T_Sys_DictionaryValue",
30
+              "F_DictionaryValueId",
31
+              "*",
32
+              sqlGDLY,
33
+              "ORDER BY F_Sort ",
34
+              10,
35
+              1,
36
+              true,
37
+              out recordCount);
38
+            List<Model.T_Sys_DictionaryValue> modelList = new BLL.T_Sys_DictionaryValue().DataTableToList(dtGDLY);
39
+            var columns = new List<string>();
40
+            columns.Add("坐席人员");
41
+            for (int i = 0; i < modelList.Count; i++)
42
+            {
43
+                string colname = modelList[i].F_Name;
44
+                columns.Add(colname);
45
+            }
46
+            #endregion
47
+            res = Success("获取工单来源标题成功", columns);
48
+
49
+            return res;
50
+        }
20 51
         /// <summary>
21 52
         /// 获取工单来源报表
22 53
         /// </summary>