private void côngNợPhảiTrảToolStripMenuItem_Click(object sender, EventArgs e) { Phieutragop1 frm = new Phieutragop1(); frm.THEM = true; frm.MAPTG = demtragop.ToString(); frm.ShowDialog(); Tragop(); }
private void tsbthem_Click_1(object sender, EventArgs e) { Phieutragop1 frm = new Phieutragop1(); frm.THEM = true; frm.MAPTG = DEMTG2.ToString(); frm.LAISUAT = "0"; frm.ShowDialog(); LoadDataphieu(); }
private void tsbsua_Click(object sender, EventArgs e) { Phieutragop1 frm = new Phieutragop1(); frm.THEM = false; if (DEMTG1 == 0) { MessageBox.Show("Bạn chưa chọn phiếu trả góp để cập nhật thông tin mới.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MAPTG") != null) { frm.MAPTG = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MAPTG").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MANV") != null) { frm.MANV = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MANV").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MAKH") != null) { frm.MAKH = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MAKH").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MAMH") != null) { frm.MAMH = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "MAMH").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "CMND") != null) { frm.CMND = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "CMND").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "NGAYLAP") != null) { frm.NGAYLAP = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "NGAYLAP").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "TONGTIEN") != null) { frm.TONGTIEN = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "TONGTIEN").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "LAISUAT") != null) { frm.LAISUAT = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "LAISUAT").ToString(); } if (gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "HANTRA") != null) { frm.HANTRA = gvPhieutragop.GetRowCellValue(gvPhieutragop.FocusedRowHandle, "HANTRA").ToString(); } frm.ShowDialog(); } LoadDataphieu(); }