Beispiel #1
0
 public void UpdateCheckState(string strEntityName, string EntityKeyName, string EntityKeyValue, string CheckState)
 {
     if (CheckState == "delete")
     {
         if (strEntityName == "T_HR_ATTENDMONTHLYBATCHBALANCE")
         {
             using (AttendMonthlyBatchBalanceBLL bll = new AttendMonthlyBatchBalanceBLL())
             {
                 bll.DeleteMonthlyBatchBalance(EntityKeyValue);
             }
         }
     }
     else
     {
         using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
         {
             bll.UpdateCheckState(strEntityName, EntityKeyName, EntityKeyValue, CheckState);
         }
     }
 }
Beispiel #2
0
 public string AuditMonthlyBatchBalance(T_HR_ATTENDMONTHLYBATCHBALANCE entTemp)
 {
     using (AttendMonthlyBatchBalanceBLL bllAttendMonthlyBatchBalance = new AttendMonthlyBatchBalanceBLL())
     {
         return bllAttendMonthlyBatchBalance.AuditMonthlyBatchBalance(entTemp);
     }
 }
Beispiel #3
0
 public string RemoveAttendMonthlyBatchBalance(string strMonthlyBatchBalanceId)
 {
     using (AttendMonthlyBatchBalanceBLL bllAttendMonthlyBatchBalance = new AttendMonthlyBatchBalanceBLL())
     {
         return bllAttendMonthlyBatchBalance.DeleteMonthlyBatchBalance(strMonthlyBatchBalanceId);
     }
 }
Beispiel #4
0
 public T_HR_ATTENDMONTHLYBATCHBALANCE GetAttendMonthlyBatchBalanceByMultSearch(string strOwnerID, string strBalanceObjectType, string strBalanceObjectId, decimal dBalanceYear, decimal dBalanceMonth, string strCheckState)
 {
     using (AttendMonthlyBatchBalanceBLL bllAttendMonthlyBatchBalance = new AttendMonthlyBatchBalanceBLL())
     {
         return bllAttendMonthlyBatchBalance.GetAttendMonthlyBatchBalanceByMultSearch(strOwnerID, strBalanceObjectType, strBalanceObjectId, dBalanceYear, dBalanceMonth, strCheckState);
     }
 }
Beispiel #5
0
 public T_HR_ATTENDMONTHLYBATCHBALANCE GetAttendMonthlyBatchBalanceByMonthlyBalanceId(string strAttendMonthlyBalanceId)
 {
     using (AttendMonthlyBatchBalanceBLL bllAttendMonthlyBatchBalance = new AttendMonthlyBatchBalanceBLL())
     {
         return bllAttendMonthlyBatchBalance.GetAttendMonthlyBatchBalanceByMonthlyBalanceId(strAttendMonthlyBalanceId);
     }
 }
 public void UpdateCheckState(string strEntityName, string EntityKeyName, string EntityKeyValue, string CheckState)
 {
     if (CheckState == "delete")
     {
         if (strEntityName == "T_HR_ATTENDMONTHLYBATCHBALANCE")
         {
             using (AttendMonthlyBatchBalanceBLL bll = new AttendMonthlyBatchBalanceBLL())
             {
                 bll.DeleteMonthlyBatchBalance(EntityKeyValue);
             }
         }
     }
     else
     {
         using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
         {
             bll.UpdateCheckState(strEntityName, EntityKeyName, EntityKeyValue, CheckState);
         }
     }
 }