예제 #1
0
        private void tsventas_Click(object sender, EventArgs e)
        {
            Frmventa Form = Frmventa.Getinstancia();

            Form.MdiParent = this;
            Form.Show();
        }
예제 #2
0
 public static Frmventa Getinstancia()
 {
     if (_Instancia == null)
     {
         _Instancia = new Frmventa();
     }
     return(_Instancia);
 }
예제 #3
0
        private void Datagridcliente_DoubleClick(object sender, EventArgs e)
        {
            Frmventa From = Frmventa.Getinstancia();
            string   par1, par2;

            par1 = Convert.ToString(this.Datagridcliente.CurrentRow.Cells["idcliente"].Value);
            par2 = Convert.ToString(this.Datagridcliente.CurrentRow.Cells["Apellidos"].Value
                                    + " " + Convert.ToString(this.Datagridcliente.CurrentRow.Cells["Nombre"].Value));
            From.setCliente(par1, par2);
            this.Hide();
        }
예제 #4
0
        private void Datagridcliente_DoubleClick(object sender, EventArgs e)
        {
            Frmventa Form = Frmventa.Getinstancia();
            string   par1, par2;
            decimal  par3, par4;
            int      par5; DateTime par6;

            par1 = Convert.ToString(this.Datagridcliente.CurrentRow.Cells["iddetalle_ingreso"].Value);
            par2 = Convert.ToString(this.Datagridcliente.CurrentRow.Cells["nombre"].Value);
            par3 = Convert.ToDecimal(this.Datagridcliente.CurrentRow.Cells["Precio_compra"].Value);
            par4 = Convert.ToDecimal(this.Datagridcliente.CurrentRow.Cells["precio_venta"].Value);
            par5 = Convert.ToInt32(this.Datagridcliente.CurrentRow.Cells["Stock_actual"].Value);
            par6 = Convert.ToDateTime(this.Datagridcliente.CurrentRow.Cells["fecha_ingreso"].Value);
            Form.setArticulo(par1, par2, par3, par4, par5, par6);
            this.Hide();
        }
예제 #5
0
 private void Frmventa_FormClosing(object sender, FormClosingEventArgs e)
 {
     _Instancia = null;
 }