private void LoadData() { if (ktButton == 1 || ktButton == 2 || ktButton == 3) { this.cbbChonNamHoc.DataSource = hpBUS.getNamHoc(); this.cbbChonNamHoc.DisplayMember = "NamHoc"; this.cbbChonNamHoc.ValueMember = "NamHoc"; this.cbbChonHocKy.DataSource = hpBUS.getHocKy(); this.cbbChonHocKy.DisplayMember = "HocKy"; this.cbbChonHocKy.ValueMember = "HocKy"; } else { if (ktButton == 4) { this.dgcTimKiem.DataSource = svBUS.getDSSVCanhBaoHV(); } else { if (ktButton == 5) { this.dgcTimKiem.DataSource = svBUS.getSVThieuDiemCTXH(); } else { this.dgcTimKiem.DataSource = svBUS.getSVNoHocPhi(); } } this.btnReLoad.Enabled = true; this.btnIn.Enabled = true; } }
private void LoadData() { this.cbbNamHoc.DataSource = hpBUS.getNamHoc(); this.cbbNamHoc.DisplayMember = "NamHoc"; this.cbbHocKy.DataSource = hpBUS.getHocKy(); this.cbbHocKy.DisplayMember = "HocKy"; }