public void CalculateEmployeeAttendanceMonthlyByCompanyID(string strCurDateMonth, string strCompanyID) { using (AttendMonthlyBalanceBLL bllAttendMonthlyBalance = new AttendMonthlyBalanceBLL()) { bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByCompanyID(strCurDateMonth, strCompanyID); } }
public string CalculateAttendanceMonthly(string strCurDateMonth, string calcuType, string strID, List<string> ClacuEmployeePosts, string balancePostid, ref string strmsg) { using (AttendMonthlyBalanceBLL bllAttendMonthlyBalance = new AttendMonthlyBalanceBLL()) { switch (calcuType) { case "1"://AssignedObjectType.Company: return bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByCompanyID(strCurDateMonth, strID, balancePostid); //break; case "2"://AssignedObjectType.Department; return bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByDepartmentID(strCurDateMonth, strID, balancePostid); //break; case "3"://AssignedObjectType.Post return bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByPostID(strCurDateMonth, strID, balancePostid); //break; case "4"://AssignedObjectType.Personnel return bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByBalacePostID(strCurDateMonth, strID, balancePostid); //break; } return ""; // return bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByEmployeeID(strCurDateMonth, strEmployeeID); } }