private void frmBC_TongKetHocKy_Load(object sender, EventArgs e)
 {
     CboUtil.SetDataSource(comboBoxEditNamHoc,
                           _namHocBUS.LayDTNamHoc(),
                           "MaNamHoc", "TenNamHoc", 0);
     CboUtil.SetDataSource(comboBoxEditHocKy,
                           _hocKyBUS.LayDT_HocKy(),
                           "MaHocKy", "TenHocKy", 0);
     CboUtil.SetDataSource(comboBoxEditKhoiLop,
                           _khoiBUS.LayDT_Khoi(),
                           "MaKhoi", "TenKhoi", 0);
 }
        private void frmBangDiemMonHoc_Load(object sender, EventArgs e)
        {
            treeListLopHoc.ParentFieldName  = "MaKhoi";
            treeListLopHoc.PreviewFieldName = "TenKhoi";
            treeListLopHoc.DataSource       = _khoiBUS.LayDT_Khoi();

            CboUtil.SetDataSource(comboBoxEditNamHoc,
                                  _namHocBUS.LayDTNamHoc(),
                                  "MaNamHoc", "TenNamHoc", 0);
            CboUtil.SetDataSource(comboBoxEditHocKy,
                                  _hocKyBUS.LayDT_HocKy(),
                                  "MaHocKy", "TenHocKy", 0);

            CapNhatListLop();
        }
Пример #3
0
        private void frmBC_TongKetMon_Load(object sender, EventArgs e)
        {
            CboUtil.SetDataSource(comboBoxEditNamHoc,
                                  _namHocBUS.LayDTNamHoc(),
                                  "MaNamHoc", "TenNamHoc", 0);
            CboUtil.SetDataSource(comboBoxEditHocKy,
                                  _hocKyBUS.LayDT_HocKy(),
                                  "MaHocKy", "TenHocKy", 0);
            CboUtil.SetDataSource(comboBoxEditKhoiLop,
                                  _khoiBUS.LayDT_Khoi(),
                                  "MaKhoi", "TenKhoi", 0);

            treeMonHoc.ParentFieldName  = "MaMonHoc";
            treeMonHoc.PreviewFieldName = "TenMonHoc";
            treeMonHoc.DataSource       = _monHocBUS.LayDT_DanhSach_MonHoc();
        }