コード例 #1
0
        public void Load_LichDay()
        {
            List <LichDay> ttLichDay = new List <LichDay>();

            ttLichDay = ld_bll.ThongTinLichDay();
            dgbThoiKhoaBieu.DataSource            = ttLichDay;
            dgbThoiKhoaBieu.Columns[0].HeaderText = "Mã";
            dgbThoiKhoaBieu.Columns[1].HeaderText = "Mã Lớp";
            dgbThoiKhoaBieu.Columns[2].HeaderText = "Mã Giáo Viên";
            dgbThoiKhoaBieu.Columns[3].HeaderText = "Thứ";
            dgbThoiKhoaBieu.Columns[4].HeaderText = "Mã Môn Học";
            dgbThoiKhoaBieu.Columns[5].HeaderText = "Mã Học Kỳ";
            dgbThoiKhoaBieu.Columns[6].HeaderText = "Năm Học";
            dgbThoiKhoaBieu.Columns[7].HeaderText = "Tiết Bắt Đầu";
            dgbThoiKhoaBieu.Columns[8].HeaderText = "Tiết Kết Thúc";
            dgbThoiKhoaBieu.AllowUserToAddRows    = false;
            dgbThoiKhoaBieu.EditMode = DataGridViewEditMode.EditProgrammatically;

            Binding_LichDay();
            load_cboMaLop();
            load_cboMaGV();
            load_cboMaMH();
            load_cboMaHK();


            load_cboMaGV();
        }
コード例 #2
0
        public void load_cboMaHK()
        {
            LichDay_BLL    hk_bll = new LichDay_BLL();
            List <LichDay> dsHK   = new List <LichDay>();

            dsHK = hk_bll.ThongTinLichDay();
            foreach (var item in dsHK)
            {
                string hienthi = item.MaHocKy;
                cbMalop_TKB.Items.Add(hienthi);
            }
        }
コード例 #3
0
        public void load_cboMaMH()
        {
            LichDay_BLL    ld_bll = new LichDay_BLL();
            List <LichDay> dsLD   = new List <LichDay>();

            dsLD = ld_bll.ThongTinLichDay();
            foreach (var item in dsLD)
            {
                string hienthi = item.MaMonHoc;
                cbMaMonhoc_TKB.Items.Add(hienthi);
            }
        }