Example #1
0
 public List<GastoEntity> ListarGastoPaginado(Parametro pLista)
 {
     List<GastoEntity> lstGastoEntity = new List<GastoEntity>();
     try
     {
         oGastoData = new GastoData();
         lstGastoEntity = oGastoData.ListarPaginado(pLista);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return lstGastoEntity;
 }
Example #2
0
 /* Gastos */
 public GastoEntity BuscarGasto(int pID)
 {
     GastoEntity objGastoEntity = null;
     try
     {
         oGastoData = new GastoData();
         if (pID > 0)
             objGastoEntity = oGastoData.Buscar(pID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return objGastoEntity;
 }
Example #3
0
 public ReturnValor RegistrarGasto(GastoEntity objPlantillaDetaEntity)
 {
     try
     {
         //using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
         //{
         oGastoData = new GastoData();
         oReturnValor.Exitosa = oGastoData.Registrar(objPlantillaDetaEntity);
         if (oReturnValor.Exitosa)
         {
             oReturnValor.Message = HelpMessages.Evento_NEW;
             //tx.Complete();
         }
         //}
     }
     catch (Exception ex)
     {
         oReturnValor = HelpException.mTraerMensaje(ex);
     }
     return oReturnValor;
 }
Example #4
0
 public ReturnValor EliminarGasto(Parametro objParametro)
 {
     try
     {
         //using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
         //{
         oGastoData = new GastoData();
         oReturnValor.Exitosa = oGastoData.Eliminar(objParametro);
         if (oReturnValor.Exitosa)
         {
             oReturnValor.Message = HelpMessages.Evento_DELETE;
             //tx.Complete();
         }
         //}
     }
     catch (Exception ex)
     {
         oReturnValor = HelpException.mTraerMensaje(ex);
     }
     return oReturnValor;
 }