Beispiel #1
0
 /// <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 );
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 ///<summary>Sets the value of the <c>&lt;TimeTableDayList&gt;</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 ) );
 }
Beispiel #4
0
 ///<summary>Sets the value of the <c>&lt;TimeTableDayList&gt;</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));
 }