| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using Newtonsoft.Json;
- using Newtonsoft.Json.Linq;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Web;
- using System.Web.Mvc;
- using ZXDT.CallCenter.Model;
- using ZXDT.CallCenter.MVCWeb.Commons;
- using ZXDT.CallCenter.MVCWeb.Models;
- namespace ZXDT.CallCenter.MVCWeb.Controllers
- {
- public class DepartmentController : BaseController
- {
- #region 部门管理
- BLL.T_Sys_Department deptBLL = new BLL.T_Sys_Department();
- ///通过部门父级节点获取数据
- /// </summary>
- /// <param name="fid"></param>
- /// <returns></returns>
- public string GetDepartmentAndUserJsonModel(int parentId)
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(deptBLL.GetDepartmentJsonModel(parentId,true));
- }
- public string GetDepartmentAndUserJsonModelTrun(int parentId,string key)
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(deptBLL.GetDepartmentJsonModelTrun(parentId, key));
- }
- #endregion
- }
-
- }
|