示例#1
0
        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;
            }
        }
示例#2
0
        private void LoadData()
        {
            this.cbbNamHoc.DataSource    = hpBUS.getNamHoc();
            this.cbbNamHoc.DisplayMember = "NamHoc";

            this.cbbHocKy.DataSource    = hpBUS.getHocKy();
            this.cbbHocKy.DisplayMember = "HocKy";
        }