//############################################CLASS SubjectSchedule EVENTS####################################################### //event is raised when the class is loaded protected virtual void ClassLoad(object sender, EventArgs e) { if (_scheduleManager.MustOpenSchoolYearSemester()) { RemoteClient.ProcStatic.ShowErrorDialog("Please open another school year / semester before creating a new subject schedule.", "Error Creating A Subject Schedule"); _hasErrors = true; this.Close(); } _schedInfo = new CommonExchange.ScheduleInformation(); this.cboYearSemester.Enabled = this.tabSchedule.Enabled = false; this.dgvMarkDeleted.DataSource = this.dgvScheduleDetails.DataSource = _scheduleManager.ScheduleDetailsTableFormat; RemoteClient.ProcStatic.SetDataGridViewColumns(dgvScheduleDetails, false); RemoteClient.ProcStatic.SetDataGridViewColumns(dgvMarkDeleted, false); _schedInfo.IsTeamTeaching = false; this.SetAddDetailsTeamTeachingControls(); if (RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessOfficeUser(_userInfo)) { this.txtAdditionalSlots.Visible = this.lblSlots.Visible = true; } else { this.txtAdditionalSlots.Visible = this.lblSlots.Visible = false; } }//---------------------------
//############################################CLASS SubjectScheduleDetails EVENTS####################################################### //event is raised when the class is loaded protected virtual void ClassLoad(object sender, EventArgs e) { if (_scheduleManager.MustOpenSchoolYearSemester()) { RemoteClient.ProcStatic.ShowErrorDialog("Please open another school year / semester before creating a new subject schedule.", "Error Creating A Subject Schedule"); _hasErrors = true; this.Close(); } _schedDetailsInfo = new CommonExchange.ScheduleInformationDetails(); lblSysIdSubject.Text = _schedInfo.SubjectInfo.SubjectSysId; lblSubjectCodeDescription.Text = _schedInfo.SubjectInfo.SubjectCode + " - " + _schedInfo.SubjectInfo.DescriptiveTitle; lblSubjectDepartment.Text = _schedInfo.SubjectInfo.DepartmentInfo.DepartmentName; lblUnitsLabHours.Text = _scheduleManager.GetSubjectUnitsHours(_schedInfo.SubjectInfo.LectureUnits, _schedInfo.SubjectInfo.LabUnits, _schedInfo.SubjectInfo.NoHours); _schedDetailsInfo.ScheduleInfo.SubjectInfo.SubjectCode = _schedInfo.SubjectInfo.SubjectCode; _schedDetailsInfo.ScheduleInfo.SubjectInfo.DescriptiveTitle = _schedInfo.SubjectInfo.DescriptiveTitle; _schedDetailsInfo.NoHours = this.hrmHours.SelectedHourMinute; _schedDetailsInfo.ScheduleInfo.ScheduleSysId = _schedInfo.ScheduleSysId; //if (_schedInfo.SubjectInfo.CourseGroupInfo.IsSemestral) //{ // this.optUnits.Enabled = this.optUnits.Checked = true; // this.txtLecture.Enabled = true; // this.txtLaboratory.Enabled = true; //} //else //{ // this.optHours.Enabled = this.optHours.Checked = true; // this.hrmHours.Enabled = true; //} optTBA.Checked = true; }//------------------------