Esempio n. 1
0
        private void limpiar_form() //hacemos esto para refrescar el datagridview
        {
            Form compraOferta = new ComprarOferta.Ofertas(sesion_username);

            compraOferta.Show();
            this.Close();
        }
Esempio n. 2
0
        //---------------------------CARGAR COMBOBOX CLIENTES-----------------------------

        private void btn_seleccionar_Click(object sender, EventArgs e)
        {
            if (cmb_clientes.Text == "")
            {
                MessageBox.Show("Debe elegir un cliente", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                Form oferta = new ComprarOferta.Ofertas(cmb_clientes.Text);
                oferta.Show();
                this.Hide();
            }
        }
Esempio n. 3
0
        private void bt_ejecutar_Click(object sender, EventArgs e)
        {
            int indice = comboBox_funciones.SelectedIndex;

            if (indice != -1)
            {
                if (this.verificar_funcion_por_rol(comboBox_funciones.SelectedItem.ToString()))
                {
                    return;
                }

                switch (comboBox_funciones.SelectedItem.ToString())
                {
                case "ABM Roles":
                    Form menu_rol = new MenuAdmin.ABMRoles();
                    menu_rol.Show();
                    break;

                case "ABM Clientes":
                    Form formulario = new MenuAdmin.ABMClientes();
                    formulario.Show();
                    break;

                case "ABM Proveedores":
                    Form formulario2 = new MenuAdmin.ABMProveedores();
                    formulario2.Show();
                    break;

                case "Listado Estadistico":
                    Form listado = new ListadoEstadistico.ListadoEstadistico();
                    this.Hide();
                    listado.Show();
                    break;

                case "Comprar Oferta":
                    Form ComprarOferta;
                    if (sesion.verificar_rol_administrador())
                    {
                        ComprarOferta = new ComprarOferta.ElegirCliente();
                    }
                    else
                    {
                        ComprarOferta = new ComprarOferta.Ofertas();
                    }
                    ComprarOferta.Show();
                    this.Hide();
                    break;

                case "Cargar Credito":
                    Form credito = new CragaCredito.CargaDeCredito();
                    credito.Show();
                    break;

                case "Confeccion y Publicacion de Ofertas":
                    this.Hide();
                    Form carga_oferta = new CrearOferta.CargaOferta();
                    carga_oferta.Show();
                    break;

                case "Entrega/Consumo de Oferta":
                    this.Hide();
                    Form entrega_ConsumoOferta = new Entrega_ConsumoOferta.ListadoCupones();
                    entrega_ConsumoOferta.Show();
                    break;

                case "Facturar a Proveedor":
                    this.Hide();
                    Form facturarProveedor = new Facturar.FacturarProveedor();
                    facturarProveedor.Show();
                    break;
                }
                this.Hide();
            }
            else
            {
                MessageBox.Show("Elija una acción a realizar");
            }
        }
Esempio n. 4
0
 private void ComprarBtn_Click(object sender, EventArgs e)
 {
     ComprarOferta.Ofertas comprar = new ComprarOferta.Ofertas(UsuarioTB.Text.ToString());
     comprar.ShowDialog();
 }