///<summary>Sets the value of the <c><GradeLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setGradeLevel</c> is provided as a convenience method /// that is functionally equivalent to the <c>GradeLevel</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.6</para> /// </remarks> public void SetGradeLevel( YearLevelCode Code ) { RemoveChild( Sif3assessmentDTD.SIF3HOMEENROLLMENT_GRADELEVEL); AddChild( Sif3assessmentDTD.SIF3HOMEENROLLMENT_GRADELEVEL, new YearLevel( Code ) ); }
private static StudentPersonal CreateStudent( String id, String lastName, String firstName, String street, String city, String state, CountryCode country, String post, String phone, Sex gender, YearLevelCode grade, String birthDateyyyyMMdd ) { StudentPersonal student = new StudentPersonal(); ; student.RefId = Adk.MakeGuid(); student.LocalId = id; PersonInfo stupersonal = new PersonInfo(); student.PersonInfo = stupersonal; // Set the Name Name name = new Name( NameType.LEGAL ); name.FamilyName = lastName; name.GivenName = firstName; stupersonal.Name = name; Address addr = new Address(); addr.SetType( AddressType.C0765_PHYSICAL_LOCATION ); addr.SetStreet( street ); addr.City = city; addr.StateProvince = state; addr.PostalCode = post; addr.Country = country.ToString(); stupersonal.AddressList = new AddressList( addr ); stupersonal.PhoneNumberList = new PhoneNumberList( new PhoneNumber( PhoneNumberType.PRIMARY, phone ) ); Demographics dem = new Demographics(); dem.SetSex( gender ); dem.BirthDate = DateTime.ParseExact ( birthDateyyyyMMdd, "yyyyMMdd", CultureInfo.InvariantCulture.DateTimeFormat ); stupersonal.Demographics = dem; return student; }
///<summary>Sets the value of the <c><StudentYearLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setStudentYearLevel</c> is provided as a convenience method /// that is functionally equivalent to the <c>StudentYearLevel</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.4</para> /// </remarks> public void SetStudentYearLevel( YearLevelCode Code ) { RemoveChild( AssessmentDTD.ASSESSMENTREGISTRATION_STUDENTYEARLEVEL); AddChild( AssessmentDTD.ASSESSMENTREGISTRATION_STUDENTYEARLEVEL, new YearLevel( Code ) ); }
///<summary>Sets the value of the <c><YearLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setYearLevel</c> is provided as a convenience method /// that is functionally equivalent to the <c>YearLevel</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.4</para> /// </remarks> public void SetYearLevel( YearLevelCode Code ) { RemoveChild( LearningDTD.STANDARDIDENTIFIER_YEARLEVEL); AddChild( LearningDTD.STANDARDIDENTIFIER_YEARLEVEL, new YearLevel( Code ) ); }
///<summary>Sets the value of the <c><YearLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setYearLevel</c> is provided as a convenience method /// that is functionally equivalent to the <c>YearLevel</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetYearLevel( YearLevelCode Code ) { RemoveChild( StudentDTD.STUDENTSCHOOLENROLLMENT_YEARLEVEL); AddChild( StudentDTD.STUDENTSCHOOLENROLLMENT_YEARLEVEL, new YearLevel( Code ) ); }
/// <summary> /// Sets the value of the <c><Code></c> element. /// </summary> /// <param name="val">A YearLevelCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Code representing the year level."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetCode( YearLevelCode val ) { SetField( CommonDTD.YEARLEVEL_CODE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Code representing the year level.</param> /// public YearLevel( YearLevelCode code ) : base(CommonDTD.YEARLEVEL) { this.SetCode( code ); }
///<summary>Sets the value of the <c><YearLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setYearLevel</c> is provided as a convenience method /// that is functionally equivalent to the <c>YearLevel</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetYearLevel( YearLevelCode Code ) { RemoveChild( StudentDTD.MOSTRECENT_YEARLEVEL); AddChild( StudentDTD.MOSTRECENT_YEARLEVEL, new YearLevel( Code ) ); }
///<summary>Sets the value of the <c><StudentGradeLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setStudentGradeLevel</c> is provided as a convenience method /// that is functionally equivalent to the <c>StudentGradeLevel</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.6</para> /// </remarks> public void SetStudentGradeLevel( YearLevelCode Code ) { RemoveChild( Sif3assessmentDTD.SIF3ASSESSMENTREGISTRATION_STUDENTGRADELEVEL); AddChild( Sif3assessmentDTD.SIF3ASSESSMENTREGISTRATION_STUDENTGRADELEVEL, new YearLevel( Code ) ); }
///<summary>Adds the value of the <c><YearLevel></c> element.</summary> /// <param name="Code">Code representing the year level.</param> ///<remarks> /// <para>This form of <c>setYearLevel</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddYearLevel</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddYearLevel(YearLevelCode Code) { AddChild(CommonDTD.YEARLEVELS_YEARLEVEL, new YearLevel(Code)); }
/// <summary> /// Sets the value of the <c><Code></c> element. /// </summary> /// <param name="val">A YearLevelCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Code representing the year level."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetCode(YearLevelCode val) { SetField(CommonDTD.YEARLEVEL_CODE, val); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Code representing the year level.</param> /// public YearLevel(YearLevelCode code) : base(CommonDTD.YEARLEVEL) { this.SetCode(code); }