private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e) { try { _vista.Operadores = UsuarioServicio.ObtenerUsuariosTipoBodegaAsignadosCD(InteraccionConUsuarioServicio.ObtenerCentroDistribucion()); _vista.TiposDeRecepcion = ConfiguracionServicio.ObtenerConfiguracionesGrupoYTipo(new Entidades.Configuracion { PARAM_TYPE = "SISTEMA", PARAM_GROUP = "TYPE_RECEPTION" }); _vista.Prioridad = ConfiguracionServicio.ObtenerConfiguracionesGrupoYTipo(new Entidades.Configuracion { PARAM_TYPE = "SISTEMA", PARAM_GROUP = "PRIORITY" }); _vista.FuenteExterna = FuenteExternaServicio.ObtenerFuentesExternas(); _vista.Usuario = InteraccionConUsuarioServicio.ObtenerUsuario(); _vista.ParametrosDeSistema = ParametroServicio.ObtenerParametro(new ConsultaArgumento { GrupoParametro = Enums.GetStringValue(GrupoParametro.Sistema), IdParametro = Enums.GetStringValue(IdParametro.TipoDeClienteMovilDe3Pl) }); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }
private void _vista_UsuarioDeseaObtenerClientes(object sender, Argumentos.DocumentoRecepcionERPArgumento e) { try { _vista.FuenteExterna = FuenteExternaServicio.ObtenerFuentesExternas(); } catch (Exception ex) { InteraccionConUsuarioServicio.Mensaje(ex.Message); } }