コード例 #1
0
        /// <summary>
        /// 获取所有子部门
        /// </summary>
        /// <param name="PID"></param>
        /// <returns></returns>
        public JsonResult GetChildNodes(int PID)
        {
            var list = bll.GetChildNodes(PID);

            return(base.List <DeptTreeNode>(list.Count(), list));
        }
コード例 #2
0
        /// <summary>
        /// 获取所有子部门
        /// </summary>
        /// <param name="PID"></param>
        /// <returns></returns>
        public JsonResult GetChildNodes(int PID)
        {
            var result = bll.GetChildNodes(PID);

            return(Json(result));
        }