/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The ID (GUID) that uniquely identifies a particular enrollment.</param>
 ///<param name="studentPersonalRefId">The ID (GUID) of the student to whom this information is linked.</param>
 ///<param name="schoolInfoRefId">The ID (GUID) of the school to which this enrollment applies.</param>
 ///<param name="membershipType">The type of this enrollment as it relates to the school identified in SchoolInfoRefId.</param>
 ///<param name="timeFrame">The timeframe of the enrollment based on the SIF_Date in the SIF_Header of the message. For events, it is determined as of the date the event is generated. For requests and responses, it is calculated based on the date of the request.</param>
 ///
 public StudentSchoolEnrollment( string refId, string studentPersonalRefId, string schoolInfoRefId, MembershipType membershipType, TimeFrame timeFrame )
     : base(Adk.SifVersion, StudentDTD.STUDENTSCHOOLENROLLMENT)
 {
     this.RefId = refId;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.SchoolInfoRefId = schoolInfoRefId;
     this.SetMembershipType( membershipType );
     this.SetTimeFrame( timeFrame );
 }
 /// <summary>
 /// Sets the value of the <c>TimeFrame</c> attribute.
 /// </summary>
 /// <param name="val">A TimeFrame object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The timeframe of the enrollment based on the SIF_Date in the SIF_Header of the message. For events, it is determined as of the date the event is generated. For requests and responses, it is calculated based on the date of the request."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetTimeFrame( TimeFrame val )
 {
     SetField( StudentDTD.STUDENTSCHOOLENROLLMENT_TIMEFRAME, val );
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The ID (GUID) that uniquely identifies a particular enrollment.</param>
 ///<param name="studentPersonalRefId">The ID (GUID) of the student to whom this information is linked.</param>
 ///<param name="schoolInfoRefId">The ID (GUID) of the school to which this enrollment applies.</param>
 ///<param name="membershipType">The type of this enrollment as it relates to the school identified in SchoolInfoRefId.</param>
 ///<param name="timeFrame">The timeframe of the enrollment based on the SIF_Date in the SIF_Header of the message. For events, it is determined as of the date the event is generated. For requests and responses, it is calculated based on the date of the request.</param>
 ///
 public StudentSchoolEnrollment(string refId, string studentPersonalRefId, string schoolInfoRefId, MembershipType membershipType, TimeFrame timeFrame) : base(Adk.SifVersion, StudentDTD.STUDENTSCHOOLENROLLMENT)
 {
     this.RefId = refId;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.SchoolInfoRefId      = schoolInfoRefId;
     this.SetMembershipType(membershipType);
     this.SetTimeFrame(timeFrame);
 }
 /// <summary>
 /// Sets the value of the <c>TimeFrame</c> attribute.
 /// </summary>
 /// <param name="val">A TimeFrame object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The timeframe of the enrollment based on the SIF_Date in the SIF_Header of the message. For events, it is determined as of the date the event is generated. For requests and responses, it is calculated based on the date of the request."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetTimeFrame(TimeFrame val)
 {
     SetField(StudentDTD.STUDENTSCHOOLENROLLMENT_TIMEFRAME, val);
 }