예제 #1
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 private void formThemSanh_Load(object sender, EventArgs e)
 {
     sanhTable = objKetNoi.DocDuLieu("select * from sanh,loai");
     masanh    = MaTuDong.MaTD(sanhTable, "max(masanh)", 2);
     CapNhatVaoComboboxLoaiSanh();
 }
예제 #5
0
 private void formThayDoiCa_Load(object sender, EventArgs e)
 {
     CapNhatDataGird();
     maCa = MaTuDong.MaTD(caTable, "MAX(maca)", 1);
 }
예제 #6
0
 private void formDichVu_Load(object sender, EventArgs e)
 {
     CapNhatDataGrid();
     MaDV = MaTuDong.MaTD(dichVu, "max(madv)", 2);
 }