private void grdInventario_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string idmovimiento, correlativo, total, serie; idmovimiento = grdInventario.Rows[e.RowIndex].Cells[6].Value.ToString(); correlativo = grdInventario.Rows[e.RowIndex].Cells[1].Value.ToString(); total = grdInventario.Rows[e.RowIndex].Cells[2].Value.ToString(); serie = grdInventario.Rows[e.RowIndex].Cells[7].Value.ToString(); factura_proveedores_BO fact = new factura_proveedores_BO(); factura_proveedores_Entity fac = new factura_proveedores_Entity(); fac.id_bodega = Convert.ToInt32(lblBodega.Text.ToString()); fac.id_proveedor = Convert.ToInt32(lblProveedor.Text.ToString()); fac.id_estado_factura = 3; ingresoInventario frm = new ingresoInventario(); fac.id_movimiento = Convert.ToInt32(idmovimiento); frm.grdInventario.DataSource = fact.detalleFactura(fac); frm.cmbBodega.SelectedValue = lblBodega.Text.ToString(); frm.cmbProveedor.SelectedValue = lblProveedor.Text.ToString(); frm.cmbTipoMovimiento.SelectedValue = lbltipomov.Text.ToString(); frm.txtDocRef.Text = grdInventario.Rows[e.RowIndex].Cells[0].Value.ToString(); frm.txtcorr.Text = correlativo; frm.txtbodega.Text = lblBodega.Text; frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(mostrarMenu.ActiveForm); }
private void movimientosAlInventarioToolStripMenuItem_Click(object sender, EventArgs e) { ingresoInventario temp = new ingresoInventario(); //temp.WindowState = FormWindowState.Maximized; temp.MdiParent = this; temp.Show(); }
private void movimientosAlInventarioToolStripMenuItem1_Click(object sender, EventArgs e) { Globales.Usuario.RegistrarBitácora(Globales.Conexion, "Bitacora", "Movimientos de Inventario"); ingresoInventario temp = new ingresoInventario(); //temp.WindowState = FormWindowState.Maximized; temp.MdiParent = this; temp.Show(); }
private void grdInventario_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string oc; clsMovimientosInventario_BO movimientos = new clsMovimientosInventario_BO(); clsMovimientosInventario_Entity fac = new clsMovimientosInventario_Entity(); fac.strIdBodega = (lblBodega.Text.ToString()); fac.strIdMovimiento = grdInventario.Rows[e.RowIndex].Cells[3].Value.ToString(); ingresoInventario frm = new ingresoInventario(); frm.grdInventario.DataSource = movimientos.detalleEgreso(fac); frm.cmbBodega.SelectedValue = lblBodega.Text.ToString(); frm.cmbProveedor.SelectedValue = lblProveedor.Text.ToString(); frm.txtDocRef.Text = grdInventario.Rows[e.RowIndex].Cells[3].Value.ToString(); frm.txtbodega.Text = lblBodega.Text; // frm.txtTotal.Text = grdInventario.Rows[e.RowIndex].Cells[2].Value.ToString(); frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(mostrarMenu.ActiveForm); }
private void grdInventario_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { string oc; factura_proveedores_BO fact = new factura_proveedores_BO(); factura_proveedores_Entity fac = new factura_proveedores_Entity(); fac.id_bodega = Convert.ToInt32(lblBodega.Text.ToString()); fac.id_proveedor = Convert.ToInt32(lblProveedor.Text.ToString()); fac.id_estado_factura = 3; oc = grdInventario.Rows[e.RowIndex].Cells[0].Value.ToString(); ingresoInventario frm = new ingresoInventario(); fac.strOC = oc; frm.grdInventario.DataSource = fact.detalleOC(fac); frm.cmbBodega.SelectedValue = lblBodega.Text.ToString(); frm.cmbProveedor.SelectedValue = lblProveedor.Text.ToString(); frm.txtDocRef.Text = grdInventario.Rows[e.RowIndex].Cells[0].Value.ToString(); frm.txtbodega.Text = lblBodega.Text; frm.txtTotal.Text = grdInventario.Rows[e.RowIndex].Cells[2].Value.ToString(); frm.StartPosition = FormStartPosition.CenterParent; frm.ShowDialog(mostrarMenu.ActiveForm); }