private void UC_SinhVien_MonHoc_DKHP_Load(object sender, EventArgs e)
        {
            #region SinhVien
            dgv_SV.DataSource = BUS_sv.LoadDL();
            DTO_sv.CMB        = cbMaNganh;
            BUS_sv.LayDLVaoComboboxMaNganh(DTO_sv.CMB);
            DTO_sv.CMB = cmbMaLop;
            BUS_sv.LayDLVaoComboboxMaLop(DTO_sv.CMB);
            DisEnable_SV();
            dtp_NgaySinh.Value = DateTime.Now;
            #endregion

            #region Monhoc
            dgvMonhoc.DataSource = BUS_mh.LoadDLMonHoc();
            DTO_mh.CMB           = cmbMaKhoa_MH;
            BUS_mh.LoadDLVaoCombobox_cmbMaKhoa_MH(DTO_mh.CMB);
            DisEnable_MH();
            #endregion

            #region DK môn học


            dgvDangkyMH.DataSource = BUS_dkmh.LoadDL_DKMonHoc();
            DisEnable_DKMH();
            #endregion
        }
Esempio n. 2
0
 private void frmBaoCaoMonHoc_Load(object sender, EventArgs e)
 {
     DTO_MonHoc.CMB = cmbKhoa;
     BUS_MonHoc.LoadDLVaoCombobox_cmbMaKhoa_MH(DTO_MonHoc.CMB = cmbKhoa);
     //BUS_MonHoc.TimKiemMH();
     dgvMonHoc.DataSource = BUS_MonHoc.LoadDLMonHoc();
 }