Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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();
 }
Exemplo n.º 5
0
 private void formThayDoiCa_Load(object sender, EventArgs e)
 {
     CapNhatDataGird();
     maCa = MaTuDong.MaTD(caTable, "MAX(maca)", 1);
 }
Exemplo n.º 6
0
 private void formDichVu_Load(object sender, EventArgs e)
 {
     CapNhatDataGrid();
     MaDV = MaTuDong.MaTD(dichVu, "max(madv)", 2);
 }