private void frmLapDSLop_Load(object sender, EventArgs e)
 {
     CboUtil.SetDataSource(comboBoxEditNamHoc,
                           _namHocBUS.LayDTNamHoc(),
                           "MaNamHoc", "TenNamHoc", 0);
     CboUtil.SetDataSource(comboBoxEditKhoi,
                           _khoiBUS.LayDT_Khoi(),
                           "MaKhoi", "TenKhoi", 0);
     CboUtil.SetDataSource(comboBoxEditGVCN,
                           _giaoVienBUS.LayDT_DanhSachGiaoVien(),
                           "MaGiaoVien", "TenGiaoVien", 0);
 }
 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();
        }
Ejemplo n.º 4
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();
        }
Ejemplo n.º 5
0
        private void frmSearchHocSinh_Load(object sender, EventArgs e)
        {
            checkEditHoTen.Checked    = true;
            checkEditTatCaNam.Checked = true;
            CboUtil.SetDataSource(comboBoxEditNamHoc,
                                  _namHocBUS.LayDTNamHoc(),
                                  "MaNamHoc", "TenNamHoc", 0);
            treeListSearch.ParentFieldName  = "MaKhoi";
            treeListSearch.PreviewFieldName = "TenKhoi";
            treeListSearch.DataSource       = _khoiBUS.LayDT_Khoi();

            textBoxTenHocSinh.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            textBoxTenHocSinh.AutoCompleteSource       = AutoCompleteSource.CustomSource;
            textBoxTenHocSinh.AutoCompleteCustomSource = Tao_Data_AutoComplete_Cbo_TenHocSinh();

            CapNhatListLop();
            // Disable controls search
            DisableControls(false);
        }
 private bool _KiemTraKhoiLop_ChuyenLop(string maNamHoc)
 {
     return(_khoiBUS.LayDT_Khoi(maNamHoc).Rows.Count > 0);
 }
Ejemplo n.º 7
0
 private void frmHocSinh_Load(object sender, EventArgs e)
 {
     CboUtil.SetDataSource(comboBoxEditNamHoc, _namHocBUS.LayDTNamHoc(), "MaNamHoc", "TenNamHoc", 0);
     CboUtil.SetDataSource(comboBoxEditKhoi, _khoiBUS.LayDT_Khoi(),
                           "MaKhoi", "TenKhoi", 0);
 }