Beispiel #1
0
 public ApplyCompensate GetApplyCompensate(int id)
 {
     try
     {
         return(DALApplyCompensate.GetApplyCompensate(id));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ApplyCompensateException(1, "GetApplyCompensateById", ex);
         Logger.Log(Level.Error, exception, "GetApplyCompensateById");
         throw ex;
     }
 }
Beispiel #2
0
 public bool UpdateApplyCompensate(ApplyCompensate model)
 {
     try
     {
         return(DALApplyCompensate.UpdateApplyCompensate(model));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ApplyCompensateException(1, "UpdateApplyCompensate", ex);
         Logger.Log(Level.Error, exception, "UpdateApplyCompensate");
         throw ex;
     }
 }
Beispiel #3
0
 public List <ApplyCompensate> GetApplyCompensateList(ApplyCompensate model, int pageSize, int pageIndex, out int recordCount)
 {
     try
     {
         return(DALApplyCompensate.GetApplyCompensateList(model, pageSize, pageIndex, out recordCount));
     }
     catch (TuhuBizException)
     {
         throw;
     }
     catch (Exception ex)
     {
         var exception = new ApplyCompensateException(1, "GetApplyCompensateList", ex);
         Logger.Log(Level.Error, exception, "GetApplyCompensateList");
         throw ex;
     }
 }