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);
            }
        }
Пример #2
0
        private void _vista_VistaCargandosePorPrimeraVez(object sender, EventArgs e)
        {
            try
            {
                _vista.Clientes = ClienteServicio.ObtenerClientes();
                _vista.Permisos =
                    SeguridadServicio.ObtenerPermisosDeSeguridad(new SeguridadArgumento
                {
                    Seguridad = new Seguridad {
                        PARENT = "POLIZAS_EXPIRADAS", CATEGORY = "SCREEN_SECURITY", LOGIN = InteraccionConUsuarioServicio.ObtenerUsuario()
                    }
                });

                foreach (var cliente in _vista.Clientes)
                {
                    cliente.IS_SELECTED = true;
                }
            }
            catch (Exception ex)
            {
                InteraccionConUsuarioServicio.MensajeErrorDialogo(ex.Message);
            }
        }