Пример #1
0
        public Course(string courseCode, string courseTitle, int duration, bool isDoubleSeating, bool isCnblPaper)
        {
            MaintainFacultyControl mFacultyControl = new MaintainFacultyControl();

            this.courseCode      = courseCode;
            this.courseTitle     = courseTitle;
            this.duration        = duration;
            this.isDoubleSeating = isDoubleSeating;
            this.isCnblPaper     = isCnblPaper;
            this.faculty         = mFacultyControl.searchFacultyByCourseCode(courseCode);
            mFacultyControl.shutDown();
        }
Пример #2
0
        public Examination(string timeslotID, string venueID, string courseCode, string programmeCode, char paperType, char examType, int year, int sitFrom, int sitTo)
        {
            MaintainFacultyControl mFacultyControl = new MaintainFacultyControl();

            this.timeslotID    = timeslotID;
            this.venueID       = venueID;
            this.courseCode    = courseCode;
            this.programmeCode = programmeCode;
            this.paperType     = paperType;
            this.examType      = examType;
            this.year          = year;
            this.sitFrom       = sitFrom;
            this.sitTo         = sitTo;
            this.faculty       = mFacultyControl.searchFacultyByCourseCode(CourseCode);
            mFacultyControl.shutDown();
        }