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();
        }
Пример #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();
        }
        private void frmQuyDinhDauNam_Load(object sender, EventArgs e)
        {
            CboUtil.SetDataSource(comboBoxEditNamHoc, _namHocBUS.LayDTNamHoc(),
                                  "MaNamHoc", "TenNamHoc", 0);
            QuyDinhDTO quyDinh = _quyDinhBUS.LayDS_QuyDinh();

            textEdittenTruong.Text   = quyDinh.TenTruong;
            textEditDiaChi.Text      = quyDinh.DiaChiTruong;
            spinEditSoLuongLop.Value = quyDinh.SoLuongLop;
            spinEditSiSoToiDa.Value  = quyDinh.SiSoCanTren;
            spinEditDoTuoiDen.Value  = quyDinh.TuoiCanTren;
            spinEditDoTuoiTu.Value   = quyDinh.TuoiCanDuoi;
            spinEditDiemDat.Value    = Convert.ToDecimal(quyDinh.DiemChuan);
            dateEditNgayAD.EditValue = quyDinh.NgayApDung;
            CboUtil.SelectedItem(comboBoxEditNamHoc, quyDinh.MaNamHoc);
        }
Пример #6
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);
        }
Пример #7
0
 private void _Load_Lai_GridView()
 {
     gridControlNamHoc.DataSource = _namHocBUS.LayDTNamHoc();
     _Disable_Control(editing: false);
 }
Пример #8
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);
 }