예제 #1
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            FrmMenuCompra frmCompra = (FrmMenuCompra)Owner;

            frmCompra.txtIdProveedor.Text     = Convert.ToString(grilla[0, grilla.CurrentRow.Index].Value);
            frmCompra.txtNombreProveedor.Text = Convert.ToString(grilla[1, grilla.CurrentRow.Index].Value);
            frmCompra.txtCodigoProducto.Focus();
            this.Close();
        }
예제 #2
0
        private void bunifuThinButton21_Click(object sender, EventArgs e)
        {
            FrmMenuCompra frmCompra = (FrmMenuCompra)Owner;
            modSesion     modSesion = new modSesion();

            frmCompra.lblCodigo.Text         = Convert.ToString(grilla[0, grilla.CurrentRow.Index].Value);
            frmCompra.lblDescricion.Text     = Convert.ToString(grilla[2, grilla.CurrentRow.Index].Value);
            frmCompra.txtCosto.Text          = Convert.ToString(modSesion.mascaraCosto(grilla[3, grilla.CurrentRow.Index].Value));
            frmCompra.txtCostoMedio.Text     = Convert.ToString(modSesion.mascaraCosto(grilla[4, grilla.CurrentRow.Index].Value));
            frmCompra.txtCostoReal.Text      = Convert.ToString(modSesion.mascaraCosto(grilla[3, grilla.CurrentRow.Index].Value));
            frmCompra.txtStock.Text          = Convert.ToString(modSesion.mascaraCantidad(grilla[5, grilla.CurrentRow.Index].Value));
            frmCompra.txtCodigoProducto.Text = Convert.ToString(grilla[0, grilla.CurrentRow.Index].Value);

            this.Close();
        }