Пример #1
0
 public List <T_HR_COMPANYHISTORY> GetCompanyHistoryDate()
 {
     using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
     {
         return(bll.GetCompanyHistoryDate());
     }
 }
Пример #2
0
 public void CompanyHistoryAdd(T_HR_COMPANYHISTORY entity)
 {
     using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
     {
         bll.CompanyHistoryAdd(entity);
     }
 }
Пример #3
0
 public List <T_HR_COMPANYHISTORY> GetCompanyHistory(DateTime currentDate)
 {
     using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
     {
         return(bll.GetCompanyHistory(currentDate));
     }
     //var ents = bll.GetCompanyHistory(currentDate);
     //return ents.Count() > 0 ? ents.ToList() : null;
 }
Пример #4
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);
         }
     }
 }
Пример #5
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);
         }
     }
 }
Пример #6
0
 public List<T_HR_COMPANYHISTORY> GetCompanyHistoryDate()
 {
     using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
     {
         return bll.GetCompanyHistoryDate();
     }
 }
Пример #7
0
 public void CompanyHistoryAdd(T_HR_COMPANYHISTORY entity)
 {
     using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
     {
         bll.CompanyHistoryAdd(entity);
     }
 }
Пример #8
0
 public List<T_HR_COMPANYHISTORY> GetCompanyHistory(DateTime currentDate)
 {
     using (CompanyHistoryBLL bll = new CompanyHistoryBLL())
     {
         return bll.GetCompanyHistory(currentDate);
     }
     //var ents = bll.GetCompanyHistory(currentDate);
     //return ents.Count() > 0 ? ents.ToList() : null;
 }