Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
     }
 }