Example #1
0
 public void CalculateEmployeeAttendanceMonthlyByDepartmentID(string strCurDateMonth, string strDepartmentID)
 {
     using (AttendMonthlyBalanceBLL bllAttendMonthlyBalance = new AttendMonthlyBalanceBLL())
     {
         bllAttendMonthlyBalance.CalculateEmployeeAttendanceMonthlyByDepartmentID(strCurDateMonth, strDepartmentID);
     }
 }
Example #2
0
 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);
     }
 }