public decimal GeneratePostRecord(string postID, string year, string month) { decimal result = 0; EmployeePostBLL bll = new EmployeePostBLL(); List <T_HR_EMPLOYEEPOST> emplist = bll.GetEmployeePostByPostID(postID); foreach (var emp in emplist) { result += GenerateEmployeeRecord(emp.T_HR_EMPLOYEE.EMPLOYEEID, year, month); } return(result); }
public void GeneratePostSalary(string postID, string year, string month) { EmployeePostBLL bll = new EmployeePostBLL(); EmployeeSalaryRecordBLL bllemp = new EmployeeSalaryRecordBLL(); List <SMT_HRM_EFModel.T_HR_EMPLOYEEPOST> emplist = bll.GetEmployeePostByPostID(postID); foreach (var emp in emplist) { employes.Add(bllemp.GetEmployeeInfor(emp.T_HR_EMPLOYEE.EMPLOYEEID)); employeIDs.Add(emp.T_HR_EMPLOYEE.EMPLOYEEID); } }
public List<T_HR_EMPLOYEEPOST> GetEmployeePostByPostID(string postID) { using (EmployeePostBLL bll = new EmployeePostBLL()) { return bll.GetEmployeePostByPostID(postID); } }