Beispiel #1
0
        private LichGiangDay[][] _QuanTheBanDau;                  // thời khóa biểu

        public LapThoiKhoaBieuService(UnitOfWork unitOfWork)
        {
            _UnitOfWork               = unitOfWork;
            _GiaoVienService          = new GiaoVienService(_UnitOfWork);
            _TKBRepository            = unitOfWork.Repository <LichGiangDay>();
            _CTLichGiangDayRepository = unitOfWork.Repository <CT_LichGiangDay>();
            _GiaoVienRepository       = unitOfWork.Repository <GiaoVien>();
            _GiaoVienMonHocRepository = unitOfWork.Repository <GiaoVienMonHoc>();
            _MonHocRepository         = unitOfWork.Repository <MonHoc>();
            _LopHocRepository         = unitOfWork.Repository <LopHoc>();
            _NamHocRepository         = unitOfWork.Repository <NamHoc>();
            _HocKyRepository          = unitOfWork.Repository <HocKy>();
            _PhongHocRepository       = unitOfWork.Repository <PhongHoc>();
        }
Beispiel #2
0
        public LapThoiKhoaBieuService(List <GiaoVien> ListGiaoVien, List <MonHoc> ListMonHoc, List <LopHoc> ListLop, List <LichGiangDay> ListGiangDay, UnitOfWork unitOfWork)
        {
            _GiaoVienService = new GiaoVienService(unitOfWork);
            _MonHocService   = new MonHocService(unitOfWork);
            _TKBRepository   = unitOfWork.Repository <LichGiangDay>();

            this._ListGiaoVien   = ListGiaoVien;
            this._ListLop        = ListLop;
            this._ListMonHoc     = ListMonHoc;
            _ListGiaoVienTheoMon = TaoDanhSachGiaoVienTheoMon();

            // khoi tao ctr hoc cho khoi
            _ListChuongTrinhHoc = new List <ChuongTrinhHocService>();
            _ListChuongTrinhHoc.Add(TinhSoTietHocTrongTuan(KHOI.KHOI_6, _ListMonHoc));
            _ListChuongTrinhHoc.Add(TinhSoTietHocTrongTuan(KHOI.KHOI_7, _ListMonHoc));
            _ListChuongTrinhHoc.Add(TinhSoTietHocTrongTuan(KHOI.KHOI_8, _ListMonHoc));
            _ListChuongTrinhHoc.Add(TinhSoTietHocTrongTuan(KHOI.KHOI_9, _ListMonHoc));
        }