/// <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; }
/// <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; }
/// <summary> /// Sets the value of the <c><Status></c> element. /// </summary> /// <param name="val">A ReasonStatus object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The authorised status of the attendance code."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetStatus( ReasonStatus val ) { SetField( LearnerDTD.REASON_STATUS, val ); }
///<summary>Adds the value of the <c><Reason></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)); }
/// <summary> /// Sets the value of the <c><Status></c> element. /// </summary> /// <param name="val">A ReasonStatus object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The authorised status of the attendance code."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetStatus(ReasonStatus val) { SetField(LearnerDTD.REASON_STATUS, val); }