private void btnComprobante_Click_1(object sender, EventArgs e) { FrmReporteFactura frm = new FrmReporteFactura(); frm.IdVenta = Convert.ToInt32(this.dataListado.CurrentRow.Cells["idventa"].Value); frm.ShowDialog(); }
private void pVoucher_Click(object sender, EventArgs e) { FrmReporteFactura frm = new FrmReporteFactura(); frm.Cod_venta = Convert.ToInt32(this.dataListado.CurrentRow.Cells["cod_venta"].Value); frm.ShowDialog(); }
private void btnImprimir_Click(object sender, EventArgs e) { FrmReporteFactura Factura = new FrmReporteFactura(); Factura.IdVenta = Convert.ToInt32(DataListado.CurrentRow.Cells[0].Value); Factura.ShowDialog(); }
private void btnComprobante_Click(object sender, EventArgs e) { if (Convert.ToString(this.dataListado.CurrentRow.Cells["tipo_comprobante"].Value).Equals("TICKET")) { Reportes.FrmComprobanteTicket frm = new Reportes.FrmComprobanteTicket(); frm.Idventa = Convert.ToInt32(this.dataListado.CurrentRow.Cells["idventa"].Value); frm.ShowDialog(); } else { FrmReporteFactura frm = new FrmReporteFactura(); frm.Idventa = Convert.ToInt32(this.dataListado.CurrentRow.Cells["idventa"].Value); frm.ShowDialog(); } }