/// <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>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The unique identifier for a particular affiliation between a student and a LEA.</param>
 ///<param name="studentPersonalRefId">The SIF RefId of the StudentPersonal object to which this instance of StudentLEARelationship refers.</param>
 ///<param name="leaInfoRefId">The SIF RefId of the LEAInfo object to which this instance of StudentLEARelationship refers.</param>
 ///<param name="schoolYear">Contains the SIF school year to which this instance of StudentLEARelationship applies. StudentLEARelationship must not span multiple school years.</param>
 ///<param name="membershipType">The type of this affiliation as it relates to the LEA identified in LEAInfoRefId.</param>
 ///<param name="leaRelationshipType">An instance of the OrganizationRelationshipType common element that describes the details of the student's affiliation with the LEA.</param>
 ///<param name="entryDate">The date from when this affiliation is valid.</param>
 ///
 public StudentLEARelationship( string refId, string studentPersonalRefId, string leaInfoRefId, int? schoolYear, MembershipType membershipType, OrganizationRelationshipType leaRelationshipType, DateTime? entryDate )
     : base(Adk.SifVersion, CommonDTD.STUDENTLEARELATIONSHIP)
 {
     this.RefId = refId;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.LEAInfoRefId = leaInfoRefId;
     this.SchoolYear = schoolYear;
     this.SetMembershipType( membershipType );
     this.LEARelationshipType = leaRelationshipType;
     this.EntryDate = entryDate;
 }
 /// <summary>
 /// Sets the value of the <c>MembershipType</c> attribute.
 /// </summary>
 /// <param name="val">A MembershipType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The type of this enrollment as it relates to the school identified in SchoolInfoRefId."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetMembershipType( MembershipType val )
 {
     SetField( StudentDTD.STUDENTSCHOOLENROLLMENT_MEMBERSHIPTYPE, val );
 }
 ///<summary>Sets the value of the <c>&lt;StudentLEARelationship&gt;</c> element.</summary>
 /// <param name="RefId">The unique identifier for a particular affiliation between a student and a LEA.</param>
 /// <param name="StudentPersonalRefId">The SIF RefId of the StudentPersonal object to which this instance of StudentLEARelationship refers.</param>
 /// <param name="LeaInfoRefId">The SIF RefId of the LEAInfo object to which this instance of StudentLEARelationship refers.</param>
 /// <param name="SchoolYear">Contains the SIF school year to which this instance of StudentLEARelationship applies. StudentLEARelationship must not span multiple school years.</param>
 /// <param name="MembershipType">The type of this affiliation as it relates to the LEA identified in LEAInfoRefId.</param>
 /// <param name="LeaRelationshipType">An instance of the OrganizationRelationshipType common element that describes the details of the student's affiliation with the LEA.</param>
 /// <param name="EntryDate">The date from when this affiliation is valid.</param>
 ///<remarks>
 /// <para>This form of <c>setStudentLEARelationship</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>StudentLEARelationship</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetStudentLEARelationship( string RefId, string StudentPersonalRefId, string LeaInfoRefId, int? SchoolYear, MembershipType MembershipType, OrganizationRelationshipType LeaRelationshipType, DateTime? EntryDate )
 {
     RemoveChild( EtranscriptsDTD.STUDENTSCHOOLENROLLMENTHISTORY_STUDENTLEARELATIONSHIP);
     AddChild( EtranscriptsDTD.STUDENTSCHOOLENROLLMENTHISTORY_STUDENTLEARELATIONSHIP, new StudentLEARelationship( RefId, StudentPersonalRefId, LeaInfoRefId, SchoolYear, MembershipType, LeaRelationshipType, EntryDate ) );
 }
Пример #5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The unique identifier for a particular affiliation between a student and a LEA.</param>
 ///<param name="studentPersonalRefId">The SIF RefId of the StudentPersonal object to which this instance of StudentLEARelationship refers.</param>
 ///<param name="leaInfoRefId">The SIF RefId of the LEAInfo object to which this instance of StudentLEARelationship refers.</param>
 ///<param name="schoolYear">Contains the SIF school year to which this instance of StudentLEARelationship applies. StudentLEARelationship must not span multiple school years.</param>
 ///<param name="membershipType">The type of this affiliation as it relates to the LEA identified in LEAInfoRefId.</param>
 ///<param name="leaRelationshipType">An instance of the OrganizationRelationshipType common element that describes the details of the student's affiliation with the LEA.</param>
 ///<param name="entryDate">The date from when this affiliation is valid.</param>
 ///
 public StudentLEARelationship(string refId, string studentPersonalRefId, string leaInfoRefId, int?schoolYear, MembershipType membershipType, OrganizationRelationshipType leaRelationshipType, DateTime?entryDate) : base(Adk.SifVersion, CommonDTD.STUDENTLEARELATIONSHIP)
 {
     this.RefId = refId;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.LEAInfoRefId         = leaInfoRefId;
     this.SchoolYear           = schoolYear;
     this.SetMembershipType(membershipType);
     this.LEARelationshipType = leaRelationshipType;
     this.EntryDate           = entryDate;
 }
Пример #6
0
 /// <summary>
 /// Sets the value of the <c>&lt;MembershipType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MembershipType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The type of this affiliation as it relates to the LEA identified in LEAInfoRefId."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetMembershipType(MembershipType val)
 {
     SetField(CommonDTD.STUDENTLEARELATIONSHIP_MEMBERSHIPTYPE, val);
 }
 /// <summary>
 /// Sets the value of the <c>&lt;MembershipType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MembershipType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The type of this affiliation as it relates to the LEA identified in LEAInfoRefId."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetMembershipType( MembershipType val )
 {
     SetField( CommonDTD.STUDENTLEARELATIONSHIP_MEMBERSHIPTYPE, val );
 }
 /// <summary>
 /// Sets the value of the <c>&lt;MembershipType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MembershipType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "The type of this affiliation as it relates to the school identified."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetMembershipType( MembershipType val )
 {
     SetField( EtranscriptsDTD.STUDENTSCHOOLRELATIONSHIP_MEMBERSHIPTYPE, val );
 }