/// <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><StudentLEARelationship></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 ) ); }
/// <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; }