private void dataListado_DoubleClick(object sender, EventArgs e) { frmVenta form = frmVenta.GetInstancia(); string par1, par2, par3, par4; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["idarticulo"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["nombre"].Value); par3 = Convert.ToString(this.dataListado.CurrentRow.Cells["precioVenta"].Value); par4 = Convert.ToString(this.dataListado.CurrentRow.Cells["stock"].Value); form.setArticulo(par1, par2, par3, par4); this.Hide(); }
private void DtgvListado_DoubleClick(object sender, EventArgs e) { frmVenta form = frmVenta.GetInstancia(); string parametro1, parametro2; decimal parametro3, parametro4; //precio_compra precio_venta int parametro5; //cantidad DateTime parametro6; //fecha_vencimiento parametro1 = Convert.ToString(this.dtgvListado.CurrentRow.Cells["iddetalle_ingreso"].Value); parametro2 = Convert.ToString(this.dtgvListado.CurrentRow.Cells["nombre"].Value); parametro3 = Convert.ToDecimal(this.dtgvListado.CurrentRow.Cells["precio_compra"].Value); parametro4 = Convert.ToDecimal(this.dtgvListado.CurrentRow.Cells["precio_venta"].Value); parametro5 = Convert.ToInt32(this.dtgvListado.CurrentRow.Cells["stock_actual"].Value); parametro6 = Convert.ToDateTime(this.dtgvListado.CurrentRow.Cells["fecha_vencimiento"].Value); form.setArticulo(parametro1, parametro2, parametro3, parametro4, parametro5, parametro6); this.Hide(); }
private void dataListado_DoubleClick(object sender, EventArgs e) { frmVenta form = frmVenta.GetInstancia(); String par1, par2; decimal par3, par4; int par5; // DateTime par6; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["iddetalle_ingreso"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["nombre"].Value); par3 = Convert.ToDecimal(this.dataListado.CurrentRow.Cells["precio_compra"].Value); par4 = Convert.ToDecimal(this.dataListado.CurrentRow.Cells["precio_venta"].Value); par5 = Convert.ToInt32(this.dataListado.CurrentRow.Cells["stock_actual"].Value); // par6 = Convert.ToDateTime(this.dataListado.CurrentRow.Cells["fecha_vencimiento"].Value); form.setArticulo(par1, par2, par3, par4, par5);// par6); this.Hide(); }
private void dataListado_DoubleClick(object sender, EventArgs e) { frmVenta form = frmVenta.GetInstancia(); string par1, par2; decimal par3, par4; int par5; DateTime par6; par1 = Convert.ToString(this.dataListado.CurrentRow.Cells["IdDetalleIngreso"].Value); par2 = Convert.ToString(this.dataListado.CurrentRow.Cells["Nombre"].Value); par3 = Convert.ToDecimal(this.dataListado.CurrentRow.Cells["PrecioCompra"].Value); par4 = Convert.ToDecimal(this.dataListado.CurrentRow.Cells["PrecioVenta"].Value); par5 = Convert.ToInt32(this.dataListado.CurrentRow.Cells["StockActual"].Value); par6 = Convert.ToDateTime(this.dataListado.CurrentRow.Cells["FechaVencimiento"].Value); form.setArticulo(par1, par2, par3, par4, par5, par6); this.Hide(); }