private void button_Aceptar_Click(object sender, EventArgs e)
 {
     if (comboBox_funcionalidades.SelectedIndex == 0)
     {
         this.Hide();
         ABM_Rol.Form_Base form_base = new ABM_Rol.Form_Base();
         form_base.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 1)
     {
         this.Hide();
         Abm_Cliente.Form_Base form_base = new Abm_Cliente.Form_Base();
         form_base.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 2)
     {
         this.Hide();
         Abm_Empresa.Form_Base form_base = new Abm_Empresa.Form_Base();
         form_base.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 3)
     {
     }
     if (comboBox_funcionalidades.SelectedIndex == 4)
     {
         this.Hide();
         Abm_Visibilidad.Form_Base form_base = new Abm_Visibilidad.Form_Base();
         form_base.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 5)
     {
         this.Hide();
         Listado_Estadistico.ListadoEstadistico listado = new Listado_Estadistico.ListadoEstadistico();
         listado.Show();
     }
     if (comboBox_funcionalidades.SelectedIndex == 6)
     {
         this.Hide();
         FrbaCommerce.ModificarContraseña mod = new FrbaCommerce.ModificarContraseña();
         mod.Show();
     }
 }
Пример #2
0
 private void estadistica_Click(object sender, EventArgs e)
 {
     FrbaCrucero.Listado_Estadistico.ListadoEstadistico estadistica = new Listado_Estadistico.ListadoEstadistico();
     estadistica.Show();
 }
 private void HandlerFuncionalidad(string funcionalidad)
 {
     switch (funcionalidad)
     {
         case "ABM ROL":
             this.Hide();
             ABM_de_Rol.HomeRol rol = new ABM_de_Rol.HomeRol();
             rol.Show();
             break;
         case "ABM USUARIO":
             this.Hide();
             ABM_de_Usuario.HomeUsuario usuario = new ABM_de_Usuario.HomeUsuario();
             usuario.Show();
             break;
         case "ABM CLIENTE":
             this.Hide();
             ABM_de_Cliente.HomeCliente cliente = new ABM_de_Cliente.HomeCliente();
             cliente.Show();
             break;
         case "ABM HOTEL":
             this.Hide();
             ABM_de_Hotel.HomeHotel hotel = new FrbaHotel.ABM_de_Hotel.HomeHotel();
             hotel.Show();
             break;
         case "ABM HABITACION":
             this.Hide();
             ABM_de_Habitacion.HomeHabitacion habitacion = new ABM_de_Habitacion.HomeHabitacion();
             habitacion.Show();
             break;
         case "ABM REGIMEN":
             this.Hide();
             Regimen.HomeRegimen regimen = new Regimen.HomeRegimen();
             regimen.Show();
             break;
         case "GENERAR/MODIFICAR RESERVA":
             this.Hide();
             Generar_Modificar_Reserva.HomeReserva reserva = new Generar_Modificar_Reserva.HomeReserva();
             reserva.Show();
             break;
         case "BAJA RESERVA":
             this.Hide();
             Cancelar_Reserva.Cancelacion cance = new Cancelar_Reserva.Cancelacion();
             cance.Show();
             break;
         case "REGISTRAR ESTADIA":
             this.Hide();
             Registrar_Estadia.HomeEstadia estadia = new Registrar_Estadia.HomeEstadia();
             estadia.Show();
             break;
         case "REGISTRAR CONSUMIBLES":
             this.Hide();
             Registrar_Consumible.RegistrarConsumibles consu = new Registrar_Consumible.RegistrarConsumibles();
             consu.Show();
             break;
         case "LISTADO ESTADISTICO":
             this.Hide();
             Listado_Estadistico.ListadoEstadistico listado = new Listado_Estadistico.ListadoEstadistico();
             listado.Show();
             break;
         default:
             MessageBox.Show("error inesperado");
             Application.Exit();
             break;
     }
 }
 private void continuar_Click(object sender, EventArgs e)
 {
     if (cbFuncionalidades.SelectedIndex == -1)
     {
         MessageBox.Show("Debe seleccionar una funcionalidad.", "Error");
     }
     else
     {
         itemComboBox seleccion = cbFuncionalidades.SelectedItem as itemComboBox;
         switch (seleccion.ID_Funcionalidad)
         {
             case -2:
                 CambiarPassword formPass = new CambiarPassword();
                 formPass.Show();
                 break;
             case 1:
                 Abm_Cliente.ABMClientes form1 = new Abm_Cliente.ABMClientes();
                 this.Hide();
                 form1.Show();
                 break;
             case 2:
                 Abm_Empresa.ABMEmpresas form2 = new Abm_Empresa.ABMEmpresas();
                 this.Hide();
                 form2.Show();
                 break;
             case 3:
                 ABM_Rol.AbmRolForm form3 = new ABM_Rol.AbmRolForm();
                 this.Hide();
                 form3.Show();
                 break;
             case 4:
                 Abm_Rubro.ABMRubro form4 = new Abm_Rubro.ABMRubro();
                 this.Hide();
                 form4.Show();
                 break;
             case 5:
                 Abm_Visibilidad.ABMVisibilidad form5 = new Abm_Visibilidad.ABMVisibilidad();
                 this.Hide();
                 form5.Show();
                 break;
             case 6:
                 Generar_Publicacion.GenerarPubliForm form6 = new Generar_Publicacion.GenerarPubliForm();
                 this.Hide();
                 form6.Show();
                 break;
             case 7:
                 Editar_Publicacion.EditarPubliForm form7 = new Editar_Publicacion.EditarPubliForm();
                 this.Hide();
                 form7.Show();
                 break;
             case 8:
                 Gestion_de_Preguntas.GestionPreguntas form8 = new Gestion_de_Preguntas.GestionPreguntas();
                 this.Hide();
                 form8.Show();
                 break;
             case 9:
                 Comprar_Ofertar.ComprarOfertar form9 = new Comprar_Ofertar.ComprarOfertar();
                 this.Hide();
                 form9.Show();
                 break;
             case 10:
                 Calificar_Vendedor.CalificarVendedor form10 = new Calificar_Vendedor.CalificarVendedor();
                 this.Hide();
                 form10.Show();
                 break;
             case 11:
                 Historial_Cliente.Historial form11 = new Historial_Cliente.Historial();
                 this.Hide();
                 form11.Show();
                 break;
             case 12:
                 Facturar_Publicaciones.Facturar form12 = new Facturar_Publicaciones.Facturar();
                 this.Hide();
                 form12.Show();
                 break;
             case 13:
                 Listado_Estadistico.ListadoEstadistico form13 = new Listado_Estadistico.ListadoEstadistico();
                 this.Hide();
                 form13.Show();
                 break;
         }
     }
 }
        private void HandlerFuncionalidad(string funcionalidad)
        {
            switch (funcionalidad)
            {
            case "ABM ROL":
                this.Hide();
                ABM_de_Rol.HomeRol rol = new ABM_de_Rol.HomeRol();
                rol.Show();
                break;

            case "ABM USUARIO":
                this.Hide();
                ABM_de_Usuario.HomeUsuario usuario = new ABM_de_Usuario.HomeUsuario();
                usuario.Show();
                break;

            case "ABM CLIENTE":
                this.Hide();
                ABM_de_Cliente.HomeCliente cliente = new ABM_de_Cliente.HomeCliente();
                cliente.Show();
                break;

            case "ABM HOTEL":
                this.Hide();
                ABM_de_Hotel.HomeHotel hotel = new FrbaHotel.ABM_de_Hotel.HomeHotel();
                hotel.Show();
                break;

            case "ABM HABITACION":
                this.Hide();
                ABM_de_Habitacion.HomeHabitacion habitacion = new ABM_de_Habitacion.HomeHabitacion();
                habitacion.Show();
                break;

            case "ABM REGIMEN":
                this.Hide();
                Regimen.HomeRegimen regimen = new Regimen.HomeRegimen();
                regimen.Show();
                break;

            case "GENERAR/MODIFICAR RESERVA":
                this.Hide();
                Generar_Modificar_Reserva.HomeReserva reserva = new Generar_Modificar_Reserva.HomeReserva();
                reserva.Show();
                break;

            case "BAJA RESERVA":
                this.Hide();
                Cancelar_Reserva.Cancelacion cance = new Cancelar_Reserva.Cancelacion();
                cance.Show();
                break;

            case "REGISTRAR ESTADIA":
                this.Hide();
                Registrar_Estadia.HomeEstadia estadia = new Registrar_Estadia.HomeEstadia();
                estadia.Show();
                break;

            case "REGISTRAR CONSUMIBLES":
                this.Hide();
                Registrar_Consumible.RegistrarConsumibles consu = new Registrar_Consumible.RegistrarConsumibles();
                consu.Show();
                break;

            case "LISTADO ESTADISTICO":
                this.Hide();
                Listado_Estadistico.ListadoEstadistico listado = new Listado_Estadistico.ListadoEstadistico();
                listado.Show();
                break;

            default:
                MessageBox.Show("error inesperado");
                Application.Exit();
                break;
            }
        }