/// <summary>
        /// 获取员工的层级部门信息
        /// </summary>
        /// <returns></returns>
        public JsonResult GetEmpLevelDepthDept()
        {
            if (_Request == null)
            {
                _Request = Request;
            }
            SetRequest(_Request);
            string levelDepthStr = _Request.QueryEx("levelDepth").ObjToStr();
            int    levelDepth    = levelDepthStr.ObjToInt();     //层级
            string empIdStr      = _Request.QueryEx("empId").ObjToStr();
            Guid   empId         = empIdStr.ObjToGuid();         //员工ID
            string companyIdStr  = _Request.QueryEx("companyId").ObjToStr();
            Guid?  companyId     = companyIdStr.ObjToGuidNull(); //所属公司,集团模式下用到
            string deptIdStr     = _Request.QueryEx("deptId").ObjToStr();
            Guid?  deptId        = deptIdStr.ObjToGuidNull();    //兼职部门,以兼职部门找

            if (empId == Guid.Empty || levelDepth < 0)
            {
                return(Json(null));
            }
            //层级部门
            OrgM_Dept depthDept = OrgMOperate.GetEmpLevelDepthDept(levelDepth, empId, companyId, deptId);
            //当前部门
            OrgM_Dept currDept = deptId.HasValue && deptId.Value != Guid.Empty ? OrgMOperate.GetDeptById(deptId.Value) : OrgMOperate.GetEmpMainDept(empId, companyId);

            return(Json(new { CurrDept = currDept, DepthDept = depthDept }));
        }
        /// <summary>
        /// 获取员工的层级部门信息
        /// </summary>
        /// <returns></returns>
        public ActionResult GetEmpLevelDepthDept()
        {
            if (_Request == null)
            {
                _Request = Request;
            }
            SetRequest(_Request);
            int  levelDepth = _Request["levelDepth"].ObjToInt();     //层级
            Guid empId      = _Request["empId"].ObjToGuid();         //员工ID
            Guid?companyId  = _Request["companyId"].ObjToGuidNull(); //所属公司,集团模式下用到
            Guid?deptId     = _Request["deptId"].ObjToGuidNull();    //兼职部门,以兼职部门找

            if (empId == Guid.Empty || levelDepth < 0)
            {
                return(Json(null));
            }
            //层级部门
            OrgM_Dept depthDept = OrgMOperate.GetEmpLevelDepthDept(levelDepth, empId, companyId, deptId);
            //当前部门
            OrgM_Dept currDept = deptId.HasValue && deptId.Value != Guid.Empty ? OrgMOperate.GetDeptById(deptId.Value) : OrgMOperate.GetEmpMainDept(empId, companyId);

            return(Json(new { CurrDept = currDept, DepthDept = depthDept }));
        }