Ejemplo n.º 1
0
        private void btn_ven_Click(object sender, EventArgs e)
        {
            FrmRegistroVentas RV = new FrmRegistroVentas();

            RV.Visible = true;
            Visible    = false;
        }
Ejemplo n.º 2
0
        private void btnVentas_Click(object sender, EventArgs e)
        {
            FrmRegistroVentas fm = new FrmRegistroVentas();

            fm.FormClosed += new FormClosedEventHandler(MostrarFormLogoAlCerrarForms);
            AbrirFormInPanel(fm);
        }
Ejemplo n.º 3
0
        private void button3_Click(object sender, EventArgs e)
        {
            Program.whoCallme = "Vender Cotizacion";
            Program.itbis     = Convert.ToDecimal(txtIgv.Text);
            Program.total     = Convert.ToDecimal(txttotal.Text);
            Program.ST        = Convert.ToDecimal(lblsubt.Text);
            Program.igv       = Convert.ToDecimal(lbligv.Text);

            if (txtidCli.Text != "")
            {
                Program.IdCliente          = Convert.ToInt32(txtidCli.Text);
                Program.DocumentoIdentidad = txtDocIdentidad.Text;
            }

            Program.datoscliente = txtDatos.Text;

            FrmRegistroVentas V = new FrmRegistroVentas();

            V.txtUsu.Text    = txtUsu.Text;
            V.txtidEmp.Text  = Convert.ToString(Program.IdEmpleadoLogueado);
            V.lblLogo.Text   = lblLogo.Text;
            V.lblDir.Text    = lblDir.Text;
            V.lblTel1.Text   = lblTel1.Text;
            V.lblTel2.Text   = lblTel2.Text;
            V.lblCorreo.Text = lblCorreo.Text;
            V.lblrnc.Text    = lblrnc.Text;
            V.Show();

            Program.abiertosecundarias = false;
            Program.abierto            = false;

            this.Close();
        }
Ejemplo n.º 4
0
        private void button8_Click(object sender, EventArgs e)
        {
            Program.openpanel = 0;
            panel1.Size       = new System.Drawing.Size(61, 606);
            button7.Text      = ">>";
            if (Program.abierto == false)
            {
                FrmRegistroVentas V = new FrmRegistroVentas();
                V.txtUsu.Text    = lblUsuario.Text;
                V.txtidEmp.Text  = Convert.ToString(Program.IdEmpleadoLogueado);
                V.lblLogo.Text   = lblLogo.Text;
                V.lblDir.Text    = lblDir.Text;
                V.lblTel1.Text   = lblTel1.Text;
                V.lblTel2.Text   = lblTel2.Text;
                V.lblCorreo.Text = lblCorreo.Text;
                V.lblrnc.Text    = lblrnc.Text;

                if (Program.CargoEmpleadoLogueado != "Administrador")
                {
                    V.txtPVenta.Enabled     = false;
                    V.txtIgv.Enabled        = false;
                    V.txtDivisor.Enabled    = false;
                    V.txtPorcentaje.Enabled = false;
                }

                Program.abierto = true;
                panel3.Hide();
                V.Show();
            }
        }
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            FrmRegistroVentas v = new FrmRegistroVentas();

            v.MdiParent = this;
            v.Show();
        }
Ejemplo n.º 6
0
        private void label2_Click(object sender, EventArgs e)
        {
            Program.abierto            = false;
            Program.abiertosecundarias = false;
            FrmRegistroVentas V = new FrmRegistroVentas();

            V.txtidEmp.Text = Convert.ToString(Program.IdEmpleadoLogueado);
            this.Close();
        }
Ejemplo n.º 7
0
        private void btnC_Click(object sender, EventArgs e)
        {
            FrmRegistroVentas venta = new FrmRegistroVentas();

            venta.txttotal.Text = Program.total + "";
            venta.lbligv.Text   = Program.igv + "";
            venta.lblsubt.Text  = Program.ST + "";
            this.Hide();
        }
Ejemplo n.º 8
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            Program.abiertosecundarias = false;
            Program.abierto            = false;
            seleccion_data();
            FrmRegistroVentas V = new FrmRegistroVentas();

            V.btnSalir.Visible = false;
            this.Close();
        }
Ejemplo n.º 9
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            FrmMenuPrincipal  menu = new FrmMenuPrincipal();
            FrmRegistroVentas V    = new FrmRegistroVentas();

            V.txtUsu.Text    = menu.lblUsuario.Text;
            V.txtidEmp.Text  = Convert.ToString(Program.IdEmpleadoLogueado);
            V.lblLogo.Text   = menu.lblLogo.Text;
            V.lblDir.Text    = menu.lblDir.Text;
            V.lblTel1.Text   = menu.lblTel1.Text;
            V.lblTel2.Text   = menu.lblTel2.Text;
            V.lblCorreo.Text = menu.lblCorreo.Text;
            V.lblrnc.Text    = menu.lblrnc.Text;
            V.Show();
            Hide();
        }
        private void btnVentas_Click(object sender, EventArgs e)
        {
            //FrmRegistroVentas V = new FrmRegistroVentas();
            //V.Show();
            //ESTO ES PARA AVITAR QUE UNA VENTANA SE DUPLIQUE, SI YA ESTA ABIERTA LA TRAE AL FRENTE.
            Form frm = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is FrmRegistroVentas);

            if (frm != null)
            {
                //si la instancia existe la pongo en primer plano
                frm.BringToFront();
                return;
            }
            //sino existe la instancia se crea una nueva
            frm = new FrmRegistroVentas();
            frm.Show();
        }
Ejemplo n.º 11
0
        private void btnVentas_Click(object sender, EventArgs e)
        {
            FrmRegistroVentas V = new FrmRegistroVentas();

            V.Show();
        }