private void SuaCay_Load(object sender, EventArgs e) { cayBus = new CayCanhBUS(); ViTriBus = new ViTriBUS(); LoaiCayBus = new LoaiCayBUS(); TinhTrangBus = new TinhTrangBUS(); thamso = new ThamSoBUS(); tsDTO = thamso.selectThamSo(); TenCaytb.ReadOnly = true; }
//Bao cáo tình trạng cây cảnh private void TTCayCanh_Load(object sender, EventArgs e) { TTBus = new BCTinhTrangBUS(); cayBus = new CayCanhBUS(); loaiBus = new LoaiCayBUS(); tinhTrangBus = new TinhTrangBUS(); listTinhTrang = tinhTrangBus.selectTT(); listloaiCay = loaiBus.selectLoaiCay(); listCay = cayBus.select(); }
private void QuanLyCayCanh_Load(object sender, EventArgs e) { vtBus = new ViTriBUS(); loaiBus = new LoaiCayBUS(); cayBus = new CayCanhBUS(); tinhtrangBus = new TinhTrangBUS(); listtinhtrang = tinhtrangBus.selectTT(); listloai = loaiBus.selectLoaiCay(); listVT = vtBus.selectVT(); loadData_Vao_GridView(); }
private void ThemCay_Load(object sender, EventArgs e) { thamso = new ThamSoBUS(); cayBus = new CayCanhBUS(); ViTriBus = new ViTriBUS(); LoaiCayBus = new LoaiCayBUS(); TinhTrangBus = new TinhTrangBUS(); tsDTO = thamso.selectThamSo(); loadViTriVao_Combobox(); loadLoaiCayVao_Combobox(); loadTinhTrangVao_Combobox(); }