Exemplo n.º 1
0
 public static List <EmployeeEntity> GetEmployeeBasicInfoByBasicCondition(string employeeName,
                                                                          EmployeeTypeEnum employeeType,
                                                                          int positionID,
                                                                          int?gradesID,
                                                                          int departmentID,
                                                                          bool recursionDepartment,
                                                                          int?powerID, int?accountID,
                                                                          int employeeStatus, List <int> notInEmployeeType)
 {
     return(EmployeeDA.GetEmployeeBasicInfoByBasicCondition(employeeName, (int)employeeType,
                                                            positionID, gradesID, null,
                                                            DepartmentLogic.GetDepartmentids(departmentID, recursionDepartment),
                                                            powerID == null ? null : AccountAuthDA.GetAccountAuthDepartment(accountID.Value, powerID.Value),
                                                            employeeStatus, notInEmployeeType, null));
 }
Exemplo n.º 2
0
        public static List <Employee> GetEmployeeBasicInfoByBasicConditionRetModel(string employeeName,
                                                                                   EmployeeTypeEnum employeeType,
                                                                                   int positionID,
                                                                                   int?gradesID,
                                                                                   int departmentID,
                                                                                   int?companyID,
                                                                                   bool recursionDepartment,
                                                                                   int?powerID, int?accountID,
                                                                                   int employeeStatus, List <int> notInEmployeeType, bool?hasPlanDuty = null)
        {
            List <EmployeeEntity> list = EmployeeDA.GetEmployeeBasicInfoByBasicCondition(employeeName, (int)employeeType,
                                                                                         positionID, gradesID, companyID,
                                                                                         DepartmentLogic.GetDepartmentids(departmentID, recursionDepartment),
                                                                                         powerID == null ? null : AccountAuthDA.GetAccountAuthDepartment(accountID.Value, powerID.Value),
                                                                                         employeeStatus, notInEmployeeType, hasPlanDuty);
            var employeeList = new List <Employee>();

            foreach (EmployeeEntity employeeEntity in list)
            {
                employeeList.Add(EmployeeEntity.Convert(employeeEntity));
            }
            return(employeeList);
        }