private void pagos_btn_Click(object sender, EventArgs e) { PagosCuentasPagarForm form = new PagosCuentasPagarForm(); form.ShowDialog(); ObtenerDetallesVehiculo(); }
private void cuentasPagar_dtg_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (cuentasPagar_dtg.Rows.Count > 0) { Program.GidCP = Convert.ToInt32(cuentasPagar_dtg.CurrentRow.Cells[10].Value); Program.Gtransaccion = cuentasPagar_dtg.CurrentRow.Cells[2].Value.ToString(); Program.GidVehiculo = Convert.ToInt32(cuentasPagar_dtg.CurrentRow.Cells[0].Value); Program.GnumeroFactura = cuentasPagar_dtg.CurrentRow.Cells[3].Value.ToString(); PagosCuentasPagarForm frm = new PagosCuentasPagarForm(); frm.ShowDialog(); LlenarDtgCuentasPagar(); CalcularTotal(); } }
private void verDetalles_btn_Click(object sender, EventArgs e) { if (cuentasPagar_dtg.Rows.Count > 0) { Program.GnuevaCP = Convert.ToBoolean(cuentasPagar_dtg.CurrentRow.Cells[11].Value); Program.GidCP = Convert.ToInt32(cuentasPagar_dtg.CurrentRow.Cells[10].Value); Program.Gtransaccion = cuentasPagar_dtg.CurrentRow.Cells[2].Value.ToString(); Program.GidVehiculo = Convert.ToInt32(cuentasPagar_dtg.CurrentRow.Cells[0].Value); Program.GnumeroFactura = cuentasPagar_dtg.CurrentRow.Cells[3].Value.ToString(); PagosCuentasPagarForm frm = new PagosCuentasPagarForm(); frm.ShowDialog(); LlenarDtgCuentasPagar(); CalcularTotal(); } }