Esempio n. 1
0
        /// <summary>
        /// 获得在companyID公司内employeeID所管辖的部门
        /// </summary>
        /// <param name="employeeID"></param>
        /// <param name="companyID"></param>
        /// <returns></returns>
        public List <Department> GetDepartmentAndChildrenDeptByEmployeeIDAndCompanyID(int employeeID, int companyID)
        {
            List <Department> dept1 = _IDepartmentBll.GetDepartmentAndChildrenDeptByLeaderID(employeeID);
            List <Department> dept2 = GetDepartmentByCompanyID(companyID);

            //dept1与dept2取交集
            return(_IDepartmentBll.MixDepartmentList(dept1, dept2));
        }