easyui樹形結構選擇

如上圖所示,要有如些效果json

前臺HTML代碼ui

<select id="ShareTo" name="ShareTo" class="easyui-combotree"    data-options="url:'/BlueVacation/Controller/ScheduleHandler.ashx?op=tree'"   multiple ></select>url

後臺C#的代碼
string GetDepaOfUsersTree()
        {
            string json = null;
            if (HttpContext.Current.Cache["userTree"] != null)
            {
                json = HttpContext.Current.Cache["userTree"].ToString();
            }
            else
            {
                var list = DepartmentBll.Instance.GetDepaOfUsersTree();
               json = JsonConvert.SerializeObject(list);
               HttpContext.Current.Cache["userTree"] = json;
            }
         
           
           return json;
        }
相關文章
相關標籤/搜索