Beispiel #1
0
 public List <O_LISTAR_ASIENTO_COMPLETO> ListarAsientoCompleto(string strCredencial, O_LISTAR_ASIENTO_COMPLETO oListarAsientoCompleto,
                                                               ref string strMensajeError)
 {
     using (var ctx = new EntidadesSisReservas())
     {
         try
         {
             var objListado =
                 ctx.PGET_LISTADOS_P_LISTAR_ASIENTO_COMPLETO(strCredencial,
                                                             oListarAsientoCompleto.ID_ASIENTO_RUTA,
                                                             oListarAsientoCompleto.ID_RUTA,
                                                             oListarAsientoCompleto.ID_ESTADO_ASIENTO,
                                                             oListarAsientoCompleto.ASIENTO_RUTA,
                                                             oListarAsientoCompleto.AUD_ESTADO,
                                                             oListarAsientoCompleto.FECHA_REGISTRO,
                                                             oListarAsientoCompleto.ID_ASIENTO,
                                                             oListarAsientoCompleto.ESTADO_ASIENTO,
                                                             oListarAsientoCompleto.NUMERO,
                                                             oListarAsientoCompleto.TIPO_ASIENTO,
                                                             oListarAsientoCompleto.ID_TIPO_ASIENTO
                                                             ).ToList();
             return(objListado);
         }
         catch (Exception ex)
         {
             strMensajeError = "Error 200: " + ex.Message + "-" + ex.InnerException;
             return(null);
         }
     }
 }
Beispiel #2
0
 public List <O_LISTAR_ASIENTO_COMPLETO> ListarAsientoCompleto(string strCredencial, O_LISTAR_ASIENTO_COMPLETO oListarAsientoCompleto,
                                                               ref string strMensajeError)
 {
     try
     {
         var objListado =
             _repositorioReportes.ListarAsientoCompleto(strCredencial, oListarAsientoCompleto, ref strMensajeError);
         return(objListado);
     }
     catch (Exception ex)
     {
         strMensajeError = "AplicacionServicio Layer " + System.Reflection.MethodBase.GetCurrentMethod().Name +
                           "Error 300:" + ex.Message + '-' + ex.InnerException;
         return(null);
     }
 }
 public List <O_LISTAR_ASIENTO_COMPLETO> ListarAsientoCompleto(string strCredencial, O_LISTAR_ASIENTO_COMPLETO oListarAsientoCompleto,
                                                               ref string strMensajeError)
 {
     try
     {
         var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionReportes>();
         return(_servicio.ListarAsientoCompleto(strCredencial, oListarAsientoCompleto, ref strMensajeError).ToList());
     }
     catch (Exception e)
     {
         strMensajeError += e.Message + " error 500: " + e.InnerException;
         return(null);
     }
 }