Пример #1
0
 ///<summary>Sets the value of the <c>&lt;GradeLevel&gt;</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>&lt;StudentYearLevel&gt;</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 ) );
 }
Пример #4
0
 ///<summary>Sets the value of the <c>&lt;YearLevel&gt;</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>&lt;YearLevel&gt;</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 ) );
 }
Пример #6
0
 /// <summary>
 /// Sets the value of the <c>&lt;Code&gt;</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 );
 }
Пример #7
0
 /// <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 );
 }
Пример #8
0
 ///<summary>Sets the value of the <c>&lt;YearLevel&gt;</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>&lt;StudentGradeLevel&gt;</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 ) );
 }
Пример #10
0
 ///<summary>Adds the value of the <c>&lt;YearLevel&gt;</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));
 }
Пример #11
0
 /// <summary>
 /// Sets the value of the <c>&lt;Code&gt;</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);
 }
Пример #12
0
 /// <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);
 }