public ReturnValor EliminarPlantillaDeta(Parametro objParametro)
 {
     try
     {
         //using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
         //{
         oPlantillaDetaData = new PlantillaDetaData();
         oReturnValor.Exitosa = oPlantillaDetaData.Eliminar(objParametro);
         if (oReturnValor.Exitosa)
         {
             oReturnValor.Message = HelpMessages.Evento_DELETE;
             //tx.Complete();
         }
         //}
     }
     catch (Exception ex)
     {
         oReturnValor = HelpException.mTraerMensaje(ex);
     }
     return oReturnValor;
 }
 public ReturnValor ActualizarPlantillaDeta(PlantillaDetaEntity objPlantillaDetaEntity)
 {
     try
     {
         //using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
         //{
         oPlantillaDetaData = new PlantillaDetaData();
         oReturnValor.Exitosa = oPlantillaDetaData.Actualizar(objPlantillaDetaEntity);
         if (oReturnValor.Exitosa)
         {
             oReturnValor.Message = HelpMessages.Evento_EDIT;
             //tx.Complete();
         }
         //}
     }
     catch (Exception ex)
     {
         oReturnValor = HelpException.mTraerMensaje(ex);
     }
     return oReturnValor;
 }
 public List<PlantillaDetaEntity> ListarPlantillaDetallePorEjecutarPaginado(Parametro pLista)
 {
     List<PlantillaDetaEntity> lstPlantillaDetaEntity = new List<PlantillaDetaEntity>();
     try
     {
         oPlantillaDetaData = new PlantillaDetaData();
         lstPlantillaDetaEntity = oPlantillaDetaData.ListarPorEjecutarPaginado(pLista);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return lstPlantillaDetaEntity;
 }
 public ReturnValor RegistrarPlantillaDetaPorReferencia(List<PlantillaDetaEntity> lstPlantillaDetaEntity)
 {
     try
     {
         //using (TransactionScope tx = new TransactionScope(TransactionScopeOption.Required))
         //{
         oPlantillaDetaData = new PlantillaDetaData();
         oReturnValor.Exitosa = oPlantillaDetaData.RegistrarPorReferencia(lstPlantillaDetaEntity);
         if (oReturnValor.Exitosa)
         {
             oReturnValor.Message = HelpMessages.Evento_EDIT;
             //tx.Complete();
         }
         //}
     }
     catch (Exception ex)
     {
         oReturnValor = HelpException.mTraerMensaje(ex);
     }
     return oReturnValor;
 }
 public PlantillaDetaEntity BuscarPlantillaDetalle(int pID)
 {
     PlantillaDetaEntity objPlantillaDetaEntity = null;
     try
     {
         oPlantillaDetaData = new PlantillaDetaData();
         if (pID > 0)
             objPlantillaDetaEntity = oPlantillaDetaData.Buscar(pID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return objPlantillaDetaEntity;
 }