Example #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="code">The attendance code. CBDS: 100232, 190110</param>
 ///<param name="type">The attendance code type.</param>
 ///<param name="status">The authorised status of the attendance code.</param>
 ///<param name="total">The total number of sessions attributed to this reason between StartDate and EndDate for the specified reason. CBDS: 100233</param>
 ///
 public Reason(AttendanceCodes code, ReasonType type, ReasonStatus status, int?total) : base(LearnerDTD.REASON)
 {
     this.SetCode(code);
     this.SetType(type);
     this.SetStatus(status);
     this.Total = total;
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="code">The attendance code. CBDS: 100232, 190110</param>
 ///<param name="type">The attendance code type.</param>
 ///<param name="status">The authorised status of the attendance code.</param>
 ///<param name="total">The total number of sessions attributed to this reason between StartDate and EndDate for the specified reason. CBDS: 100233</param>
 ///
 public Reason( AttendanceCodes code, ReasonType type, ReasonStatus status, int? total )
     : base(LearnerDTD.REASON)
 {
     this.SetCode( code );
     this.SetType( type );
     this.SetStatus( status );
     this.Total = total;
 }
Example #3
0
 /// <summary>
 /// Sets the value of the <c>&lt;Code&gt;</c> element.
 /// </summary>
 /// <param name="val">A AttendanceCodes object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The attendance code. CBDS: 100232, 190110"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetCode( AttendanceCodes val )
 {
     SetField( LearnerDTD.REASON_CODE, val );
 }
Example #4
0
 ///<summary>Adds the value of the <c>&lt;Reason&gt;</c> element.</summary>
 /// <param name="Code">The attendance code. CBDS: 100232, 190110</param>
 /// <param name="Type">The attendance code type.</param>
 /// <param name="Status">The authorised status of the attendance code.</param>
 /// <param name="Total">The total number of sessions attributed to this reason between StartDate and EndDate for the specified reason. CBDS: 100233</param>
 ///<remarks>
 /// <para>This form of <c>setReason</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddReason</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddReason(AttendanceCodes Code, ReasonType Type, ReasonStatus Status, int?Total)
 {
     AddChild(LearnerDTD.REASONSLIST_REASON, new Reason(Code, Type, Status, Total));
 }
Example #5
0
 /// <summary>
 /// Sets the value of the <c>&lt;Code&gt;</c> element.
 /// </summary>
 /// <param name="val">A AttendanceCodes object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The attendance code. CBDS: 100232, 190110"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetCode(AttendanceCodes val)
 {
     SetField(LearnerDTD.REASON_CODE, val);
 }