/// <summary> /// Generar vista para el usuario consultor /// </summary> /// <param name="usr"></param> public void MostrarVistaConsultor(Usuario usr) { this.Visibility = Visibility.Hidden; MenuPrincipal menu = new MenuPrincipal(usr); menu.Title = "Consultor"; menu.Visibility = Visibility.Visible; menu.btnGrafico.Visibility = Visibility.Hidden; menu.btnPerfilUsuario.Visibility = Visibility.Hidden; menu.btnPerfiTransporte.Visibility = Visibility.Hidden; menu.btnVenta.Visibility = Visibility.Hidden; menu.btnVenta.Visibility = Visibility.Hidden; menu.btnNotificarEstadoVenta.Visibility = Visibility.Hidden; menu.btnSubastas.Visibility = Visibility.Hidden; menu.btnContratos.Visibility = Visibility.Hidden; }
/// <summary> /// Generar la vista para el usuario administrador /// </summary> /// <param name="usr"></param> public void MostrarVistaAdmin(Usuario usr) { this.Visibility = Visibility.Hidden; MenuPrincipal menu = new MenuPrincipal(usr); menu.Title = "Administrador"; menu.Visibility = Visibility.Visible; menu.btnReportes.Visibility = Visibility.Hidden; menu.btnPerfilUsuario.Visibility = Visibility.Visible; menu.btnVenta.Visibility = Visibility.Hidden; menu.btnNotificarEstadoVenta.Visibility = Visibility.Hidden; menu.btnSubastas.Visibility = Visibility.Hidden; menu.btnContratos.Visibility = Visibility.Visible; menu.imgEjecutivo.Visibility = Visibility.Hidden; menu.lbRolUsuario.Content = "Administrador"; menu.imgAdmin.Visibility = Visibility.Visible; }
public void MostrarVistaEjecutivo(Usuario usr) { this.Visibility = Visibility.Hidden; MenuPrincipal menu = new MenuPrincipal(usr); menu.Title = "Ejecutivo"; menu.Visibility = Visibility.Visible; menu.btnGrafico.Visibility = Visibility.Hidden; menu.btnPerfilUsuario.Visibility = Visibility.Hidden; menu.btnReportes.Visibility = Visibility.Visible; menu.btnVenta.Visibility = Visibility.Visible; menu.btnNotificarEstadoVenta.Visibility = Visibility.Visible; menu.btnSubastas.Visibility = Visibility.Visible; menu.btnContratos.Visibility = Visibility.Hidden; menu.frameMenu.Content = new ProcesoVenta(menu); menu.imgEjecutivo.Visibility = Visibility.Visible; menu.lbRolUsuario.Content = "Ejecutivo"; menu.imgAdmin.Visibility = Visibility.Hidden; }
public ControlarContratos(MenuPrincipal m) { InitializeComponent(); main = m; CargarTabla(); }