public void GenerateDepartmentSalary(string departID, string year, string month) { PostBLL bll = new PostBLL(); List <SMT_HRM_EFModel.T_HR_POST> emplist = bll.GetPostByDepartId(departID); foreach (var emp in emplist) { GeneratePostSalary(emp.POSTID, year, month); } }
public decimal GenerateDepartmentRecord(string departID, string year, string month) { decimal result = 0; PostBLL bll = new PostBLL(); List <T_HR_POST> emplist = bll.GetPostByDepartId(departID); foreach (var emp in emplist) { result += GeneratePostRecord(emp.POSTID, year, month); } return(result); }