|
|
@@ -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);
|