Просмотр исходного кода

工单类型和知识库混淆

MicroWin10-1604\Administrator лет назад: 7
Родитель
Сommit
e7871a464b

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/knowledge/KnowledgeClassController.cs

@@ -34,7 +34,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
34 34
 
35 35
                 DataTable dt = new DataTable();
36 36
                 string pid = HttpUtility.UrlDecode(RequestString.GetQueryString("pid"));
37
-                string sql = " and F_DeleteFlag=0";
37
+                string sql = " and F_DeleteFlag=0 and F_CategoryType is null";
38 38
                 if (pid.Trim() != "")
39 39
                 {
40 40
                     sql += " and F_ParentId=" + pid.Trim();
@@ -70,7 +70,7 @@ namespace CallCenterApi.Interface.Controllers.knowledge
70 70
                     model.id = currentID;
71 71
                     model.IconCls = "";//图标
72 72
                     model.text = categorylist[i].F_CategoryName;
73
-                    tab2 = new BLL.T_RepositoryCategory().GetList("F_ParentId=" + currentID + " and F_DeleteFlag=0 order by F_Sort").Tables[0];
73
+                    tab2 = new BLL.T_RepositoryCategory().GetList("F_ParentId=" + currentID + " and F_DeleteFlag=0 and F_CategoryType is null order by F_Sort").Tables[0];
74 74
                     if (tab2 != null && tab2.Rows.Count > 0)
75 75
                     {
76 76
                         model.children = BindTree(tab2, currentID);

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkTypeController.cs

@@ -4,8 +4,8 @@ using System.Collections.Generic;
4 4
 using System.Data;
5 5
 using System.Linq;
6 6
 using System.Web;
7
-using System.ServiceModel;
8
-using System.ServiceModel.Web;
7
+//using System.ServiceModel;
8
+//using System.ServiceModel.Web;
9 9
 using System.Runtime.Serialization;
10 10
 using System.Web.Mvc;
11 11
 using System.Web.Script.Serialization;
@@ -32,7 +32,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
32 32
                     dt = new BLL.T_RepositoryCategory().GetList("F_ParentId=0 and F_DeleteFlag=0 and F_CategoryType=1").Tables[0];
33 33
                     if (dt != null && dt.Rows.Count > 0)
34 34
                     {
35
-                        System.Collections.Generic.List<Model.TreeModel> modelList = BindTree(dt, "0");
35
+                        System.Collections.Generic.List<Model.TreeModel > modelList = BindTree(dt, "0");
36 36
                         //将对象转为json字符串
37 37
                         //resstr = new JavaScriptSerializer().Serialize(modelList);
38 38
                         res = Success("获取成功", modelList);
@@ -173,7 +173,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
173 173
                     model.id = currentID;
174 174
                     model.IconCls = "";//图标
175 175
                     model.text = categorylist[i].F_CategoryName;
176
-                    tab2 = new BLL.T_RepositoryCategory().GetList("F_ParentId=" + currentID + " and F_DeleteFlag=0 order by F_Sort").Tables[0];
176
+                    tab2 = new BLL.T_RepositoryCategory().GetList("F_ParentId=" + currentID + " and F_DeleteFlag=0 and F_CategoryType=1 order by F_Sort").Tables[0];
177 177
                     if (tab2 != null && tab2.Rows.Count > 0)
178 178
                     {
179 179
                         model.children = BindTree(tab2, currentID);