private void QUANLYSIEUTHI_Load(object sender, EventArgs e) { VALUE_CHANGE(); CTHD = new DATA.CHITIETHOADONDATA(); KH = new DATA.KHACHHANGDATA(); NV = new DATA.NHANVIENDATA(); HD = new DATA.HOADONDATA(); HH = new DATA.HANGHOADATA(); db_NS = new DataTable(); db_CTHD = new DataTable(); db_HD = new DataTable(); db_HH = new DataTable(); db_KH = new DataTable(); db_NV = new DataTable(); list_CTHD = new List <string>(); list_HD = new List <string>(); list_HH = new List <string>(); list_KH = new List <string>(); list_NV = new List <string>(); ID_DELETE = new List <string>(); db_HD = HD.SHOWDATA(); db_HH = HH.SHOWDATA(); db_KH = KH.SHOWDATA(); db_NV = NV.SHOWDATA(); DGV_HD.DataSource = db_HD; DGV_HH.DataSource = db_HH; DGV_KH.DataSource = db_KH; DGV_NV.DataSource = db_NV; }
private void QUANLYSIEUTHI_Load(object sender, EventArgs e) { VALUE_CHANGE(); CTHD = new DATA.CHITIETHOADONDATA(); KH = new DATA.KHACHHANGDATA(); NV = new DATA.NHANVIENDATA(); HD = new DATA.HOADONDATA(); HH = new DATA.HANGHOADATA(); db_NS = new DataTable(); db_CTHD = new DataTable(); db_HD = new DataTable(); db_HH = new DataTable(); db_KH = new DataTable(); db_NV = new DataTable(); list_CTHD = new List<string>(); list_HD = new List<string>(); list_HH = new List<string>(); list_KH = new List<string>(); list_NV = new List<string>(); ID_DELETE = new List<string>(); db_HD = HD.SHOWDATA(); db_HH = HH.SHOWDATA(); db_KH = KH.SHOWDATA(); db_NV = NV.SHOWDATA(); DGV_HD.DataSource = db_HD; DGV_HH.DataSource = db_HH; DGV_KH.DataSource = db_KH; DGV_NV.DataSource = db_NV; }