コード例 #1
0
 public ENResult delete(uspTRCashMovementSearch_Result data)
 {
     try
     {
         using (erpStoreEntities db = new erpStoreEntities())
         {
             db.uspTRCashMovementDelete(data.idMovement, data.idCash, PUser, PReturnCode, PReturnMessage);
             return(new ENResult(Convert.ToInt32(PReturnCode.Value), Convert.ToString(PReturnMessage.Value)));
         }
     }
     catch (Exception ex)
     {
         return(PUnexpectedError(ex));
     }
 }
コード例 #2
0
 public ENResult update(uspTRCashMovementSearch_Result data)
 {
     try
     {
         using (erpStoreEntities db = new erpStoreEntities())
         {
             db.uspTRCashMovementUpdate(data.idMovement, data.idCash, data.idSale, data.date, data.movementType,
                                        data.amount, data.amountOpening, data.amountClosing, data.concept, data.userUpdated, PReturnCode, PReturnMessage);
             return(new ENResult(Convert.ToInt32(PReturnCode.Value), Convert.ToString(PReturnMessage.Value)));
         }
     }
     catch (Exception ex)
     {
         return(PUnexpectedError(ex));
     }
 }