/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">GUID that identifies this TimeTable object.</param> ///<param name="schoolYear">A SchoolYear</param> ///<param name="title">Unique Name of the proposed Time Table</param> ///<param name="daysPerCycle">Max Number of days per Time Table cycle</param> ///<param name="periodsPerDay">Max Number of periods per Time Table Day</param> ///<param name="timeTableDayList">A TimeTableDayList</param> /// public TimeTable( string refId, int? schoolYear, string title, int? daysPerCycle, int? periodsPerDay, TimeTableDay timeTableDayList ) : base(Adk.SifVersion, SchoolDTD.TIMETABLE) { this.RefId = refId; this.SchoolYear = schoolYear; this.Title = title; this.DaysPerCycle = daysPerCycle; this.PeriodsPerDay = periodsPerDay; this.TimeTableDayList = new TimeTableDayList( timeTableDayList ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">GUID that identifies this TimeTable object.</param> ///<param name="schoolYear">A SchoolYear</param> ///<param name="title">Unique Name of the proposed Time Table</param> ///<param name="daysPerCycle">Max Number of days per Time Table cycle</param> ///<param name="periodsPerDay">Max Number of periods per Time Table Day</param> ///<param name="timeTableDayList">A TimeTableDayList</param> /// public TimeTable(string refId, int?schoolYear, string title, int?daysPerCycle, int?periodsPerDay, TimeTableDay timeTableDayList) : base(Adk.SifVersion, SchoolDTD.TIMETABLE) { this.RefId = refId; this.SchoolYear = schoolYear; this.Title = title; this.DaysPerCycle = daysPerCycle; this.PeriodsPerDay = periodsPerDay; this.TimeTableDayList = new TimeTableDayList(timeTableDayList); }
///<summary>Sets the value of the <c><TimeTableDayList></c> element.</summary> /// <param name="TimeTableDay">A TimeTableDay</param> ///<remarks> /// <para>This form of <c>setTimeTableDayList</c> is provided as a convenience method /// that is functionally equivalent to the <c>TimeTableDayList</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetTimeTableDayList( TimeTableDay TimeTableDay ) { RemoveChild( SchoolDTD.TIMETABLE_TIMETABLEDAYLIST); AddChild( SchoolDTD.TIMETABLE_TIMETABLEDAYLIST, new TimeTableDayList( TimeTableDay ) ); }
///<summary>Sets the value of the <c><TimeTableDayList></c> element.</summary> /// <param name="TimeTableDay">A TimeTableDay</param> ///<remarks> /// <para>This form of <c>setTimeTableDayList</c> is provided as a convenience method /// that is functionally equivalent to the <c>TimeTableDayList</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetTimeTableDayList(TimeTableDay TimeTableDay) { RemoveChild(SchoolDTD.TIMETABLE_TIMETABLEDAYLIST); AddChild(SchoolDTD.TIMETABLE_TIMETABLEDAYLIST, new TimeTableDayList(TimeTableDay)); }