Exemplo n.º 1
0
        /// <summary>
        /// load source cac mon hoc len combobox tab-page bang diem mon hic
        /// </summary>
        void LoadMonHoc_BangDiemMonHoc()
        {
            List <MonHoc> listMonHoc = monhoc.GetListMonHoc();

            //load source cac mon hoc len combobox tab-page bang diem mon hic
            List <string> listMaMH = new List <string>();

            // listMaMH.Add("Chọn tất cả.");
            foreach (MonHoc mon in listMonHoc)
            {
                listMaMH.Add(mon.MaMonHoc);
            }
            cbDanhSachMonHoc.DataSource = listMaMH;
        }
Exemplo n.º 2
0
        private void ThemSuaCTDT_Load(object sender, EventArgs e)
        {
            KhoiLopBLL     KLbll  = new KhoiLopBLL();
            List <KhoiLop> listKL = new List <KhoiLop>();

            listKL = KLbll.GetListKhoiLop();
            List <string> listStrKL = new List <string>();

            foreach (KhoiLop kl in listKL)
            {
                listStrKL.Add(kl.MaKhoiLop);
            }
            cbMaKL.DataSource = listStrKL;


            MonHocBLL     MHbll  = new MonHocBLL();
            List <MonHoc> listMH = new List <MonHoc>();

            listMH = MHbll.GetListMonHoc();
            List <string> listStrMH = new List <string>();

            foreach (MonHoc mh in listMH)
            {
                listStrMH.Add(mh.MaMonHoc);
            }

            cbMaMH.DataSource = listStrMH;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Load danh sach mon hoc lem combobox bao cao mon hoc
        /// </summary>
        void LoadDanhSachMonHoc()
        {
            MonHocBLL     monhocbll        = new MonHocBLL();
            List <MonHoc> DanhSachMonHoc   = monhocbll.GetListMonHoc();
            List <string> DanhSachMaMonHoc = new List <string>();

            foreach (MonHoc monhoc in DanhSachMonHoc)
            {
                DanhSachMaMonHoc.Add(monhoc.MaMonHoc);
            }

            cbMonHoc_BCMH.DataSource = DanhSachMaMonHoc;
        }
Exemplo n.º 4
0
        void LoadComboboxMaMonHoc_CTDT()
        {
            List <string> listMaMonHoc_CTDT = new List <string>();
            MonHocBLL     mh      = new MonHocBLL();
            List <MonHoc> listMon = mh.GetListMonHoc();

            foreach (MonHoc mon in listMon)
            {
                listMaMonHoc_CTDT.Add(mon.MaMonHoc);
            }

            cbMaMonHoc_CTDT.DataSource = listMaMonHoc_CTDT;
        }