Esempio n. 1
0
        void llenarCiudad()
        {
            try
            {
                var strMensajeError = "";
                var oListarCiudad   = new O_CIUDAD();

                var lstCiudad = servicioReportes.ListarCiudad(strCredencial, oListarCiudad, ref strMensajeError);

                var lstCiudades = (from ciudad in lstCiudad
                                   orderby ciudad.CIUDAD
                                   select new
                {
                    idCiudad = ciudad.ID_CIUDAD,
                    ciudad = ciudad.CIUDAD
                }

                                   );
                dgvCiudad.ItemsSource = lstCiudades.ToList();
                //dgvCiudad.DataBind();
            }
            catch (Exception e)
            {
                throw new Exception("Error 600: " + e.Message);
            }
        }
 public List <O_CIUDAD> ListarCiudad(string strCredencial, O_CIUDAD oCiudad, ref string strMensajeError)
 {
     try
     {
         var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionReportes>();
         return(_servicio.ListarCiudad(strCredencial, oCiudad, ref strMensajeError).ToList());
     }
     catch (Exception e)
     {
         strMensajeError += e.Message + " error 500: " + e.InnerException;
         return(null);
     }
 }
Esempio n. 3
0
 public List <O_CIUDAD> ListarCiudad(string strCredencial, O_CIUDAD oCiudad, ref string strMensajeError)
 {
     try
     {
         var objListado =
             _repositorioReportes.ListarCiudad(strCredencial, oCiudad, ref strMensajeError);
         return(objListado);
     }
     catch (Exception ex)
     {
         strMensajeError = "AplicacionServicio Layer " + System.Reflection.MethodBase.GetCurrentMethod().Name +
                           "Error 300:" + ex.Message + '-' + ex.InnerException;
         return(null);
     }
 }
Esempio n. 4
0
 public List <O_CIUDAD> ListarCiudad(string strCredencial, O_CIUDAD oCiudad, ref string strMensajeError)
 {
     using (var ctx = new EntidadesSisReservas())
     {
         try
         {
             var objListado =
                 ctx.PGET_LISTADOS_P_LISTAR_CIUDAD(strCredencial,
                                                   oCiudad.ID_CIUDAD,
                                                   oCiudad.CIUDAD,
                                                   oCiudad.AUD_ESTADO
                                                   ).ToList();
             return(objListado);
         }
         catch (Exception ex)
         {
             strMensajeError = "Error 200: " + ex.Message + "-" + ex.InnerException;
             return(null);
         }
     }
 }