/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The ID (GUID) of this exclusion.</param>
 ///<param name="learnerPersonalRefId">The ID (GUID) of the excluded learner.</param>
 ///<param name="category">Exclusion category. CBDS: 100087</param>
 ///<param name="reason">Reason for exclusion. CBDS: 100088</param>
 ///<param name="startDate">Date exclusion takes effect irrespective of any review or appeal. Normally this will not be the same as Date of Leaving (exitDate) and it should be noted that the learner will remain on the schools's roll for a period after this start date. CBDS: 100089, 100090</param>
 ///<param name="startSession">Session to begin exclusion, starting with 1 for the first session of the day. In most cases there are two sessions per day but this is not always the case.  Validation: Number between 1 and 10. CBDS: 100091</param>
 ///
 public LearnerExclusion( string refId, string learnerPersonalRefId, ExclusionCategory category, ExclusionReason reason, DateTime? startDate, int? startSession )
     : base(Adk.SifVersion, LearnerDTD.LEARNEREXCLUSION)
 {
     this.RefId = refId;
     this.LearnerPersonalRefId = learnerPersonalRefId;
     this.SetCategory( category );
     this.SetReason( reason );
     this.StartDate = startDate;
     this.StartSession = startSession;
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The ID (GUID) of this exclusion.</param>
 ///<param name="learnerPersonalRefId">The ID (GUID) of the excluded learner.</param>
 ///<param name="category">Exclusion category. CBDS: 100087</param>
 ///<param name="reason">Reason for exclusion. CBDS: 100088</param>
 ///<param name="startDate">Date exclusion takes effect irrespective of any review or appeal. Normally this will not be the same as Date of Leaving (exitDate) and it should be noted that the learner will remain on the schools's roll for a period after this start date. CBDS: 100089, 100090</param>
 ///<param name="startSession">Session to begin exclusion, starting with 1 for the first session of the day. In most cases there are two sessions per day but this is not always the case.  Validation: Number between 1 and 10. CBDS: 100091</param>
 ///
 public LearnerExclusion(string refId, string learnerPersonalRefId, ExclusionCategory category, ExclusionReason reason, DateTime?startDate, int?startSession) : base(Adk.SifVersion, LearnerDTD.LEARNEREXCLUSION)
 {
     this.RefId = refId;
     this.LearnerPersonalRefId = learnerPersonalRefId;
     this.SetCategory(category);
     this.SetReason(reason);
     this.StartDate    = startDate;
     this.StartSession = startSession;
 }
 /// <summary>
 /// Sets the value of the <c>&lt;Reason&gt;</c> element.
 /// </summary>
 /// <param name="val">A ExclusionReason object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Reason for exclusion. CBDS: 100088"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetReason( ExclusionReason val )
 {
     SetField( LearnerDTD.LEARNEREXCLUSION_REASON, val );
 }
Example #4
0
 /// <summary>
 /// Sets the value of the <c>&lt;Reason&gt;</c> element.
 /// </summary>
 /// <param name="val">A ExclusionReason object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Reason for exclusion. CBDS: 100088"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetReason(ExclusionReason val)
 {
     SetField(LearnerDTD.LEARNEREXCLUSION_REASON, val);
 }