private void btnThemPhieu_Click(object sender, EventArgs e) { frm_PhieuXuatTraNCC frm = new frm_PhieuXuatTraNCC(); if (frm.ShowDialog() == DialogResult.OK) { liDM = XuatNoiBoDataProvider.GetListXuatNoiBo(); grcDanhSach.DataSource = liDM; } }
private void btnMoPhieu_Click(object sender, EventArgs e) { if (grvDanhSach.FocusedRowHandle < 0) { return; } ChungTuXuatNoiBoInfor item = (ChungTuXuatNoiBoInfor)grvDanhSach.GetRow(grvDanhSach.FocusedRowHandle); frm_PhieuXuatTraNCC frm = new frm_PhieuXuatTraNCC(item.IdChungTu, item.SoChungTu, item.NgayLap.ToString(), item.SoChungTuGoc, item.IdChungTuGoc, item.TrangThai, item.GhiChu, item.HoTen, item.DongBo, item.IdPhongBan, item.IdChiPhi, item.IdNhaCC, item.IdLyDo, item.SoPO, item.SoRE, item.TenDoiTuong); if (frm.ShowDialog() == DialogResult.OK) { liDM = XuatNoiBoDataProvider.GetListXuatNoiBo(); grcDanhSach.DataSource = liDM; } }