private void formPhieuDatTiec_Load(object sender, EventArgs e) { CapNhatDuLieuVaoComboboxTenDichVu(); CapNhatDuLieuVaoComboboxMonAn(); CapNhatDuLieuVaoDataGridView(); CapNhatDuLieuVaoDataGridView1(); CapNhatDataDatTiec(); ComboboxMS(); comboboxCa(); pdtTable = objKetNoi.DocDuLieu("select matiec from dattiec "); maPDT = MaTuDong.MaTD(pdtTable, "max(matiec)", 1); }
private void formDanhMucMonAn_Load(object sender, EventArgs e) { CapNhatDataGridView(); maMA = MaTuDong.MaTD(monAnTable, "MAX(mama)", 2); }
private void formHDThem_Load_1(object sender, EventArgs e) { dtpkNgayTT.Value = DateTime.Now.Date; hdTable = objKetNoi.DocDuLieu("select mahd from hoadon"); maHD = MaTuDong.MaTD(hdTable, "max(mahd)", 2); }
private void formThemSanh_Load(object sender, EventArgs e) { sanhTable = objKetNoi.DocDuLieu("select * from sanh,loai"); masanh = MaTuDong.MaTD(sanhTable, "max(masanh)", 2); CapNhatVaoComboboxLoaiSanh(); }
private void formThayDoiCa_Load(object sender, EventArgs e) { CapNhatDataGird(); maCa = MaTuDong.MaTD(caTable, "MAX(maca)", 1); }
private void formDichVu_Load(object sender, EventArgs e) { CapNhatDataGrid(); MaDV = MaTuDong.MaTD(dichVu, "max(madv)", 2); }