private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e)
        {
            try
            {
                _vista.CentrosDeDistribucion = ConfiguracionServicio.ObtenerCentrosDeDistribucionPorLogin(new Entidades.Configuracion
                {
                    LOGIN = InteraccionConUsuarioServicio.ObtenerUsuario()
                });

                _vista.ListaDeSeguridad =
                    SeguridadServicio.ObtenerPermisosDeSeguridad(new SeguridadArgumento
                {
                    Seguridad =
                        new Seguridad
                    {
                        PARENT   = Enums.GetStringValue(Tipos.PadreDePrivilegio.SolicitudDeTraslado),
                        CATEGORY = Enums.GetStringValue(Tipos.CategorigaDePrivilegio.Seguridad),
                        LOGIN    = InteraccionConUsuarioServicio.ObtenerUsuario()
                    }
                });
            }
            catch (Exception ex)
            {
                InteraccionConUsuarioServicio.Mensaje(ex.Message);
            }
        }
Esempio n. 2
0
 private void _vista_UsuarioDeseaRefrescarCentrosDeDistribucionDestino(object sender, EventArgs e)
 {
     _vista.CentrosDeDistribucionDestino = ConfiguracionServicio.ObtenerCentrosDeDistribucionPorLogin(new Entidades.Configuracion {
         LOGIN = InteraccionConUsuarioServicio.ObtenerUsuario()
     });
 }