Ejemplo n.º 1
0
 /// <summary>
 /// Sets the value of the <c>&lt;Gender&gt;</c> element.
 /// </summary>
 /// <param name="val">A Gender object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Person's gender."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetGender( Gender val )
 {
     SetField( StudentDTD.STUDENTSNAPSHOT_GENDER, val );
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the value of the <c>&lt;Gender&gt;</c> element.
 /// </summary>
 /// <param name="val">A Gender object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetGender( Gender val )
 {
     SetField( EtranscriptsDTD.DEMOGRAPHICSDATA_GENDER, val );
 }
 /// <summary>
 /// Sets the value of the <c>&lt;Gender&gt;</c> element.
 /// </summary>
 /// <param name="val">A Gender object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Person's gender."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.2</para>
 /// </remarks>
 public void SetGender( Gender val )
 {
     SetField( AssessmentDTD.ASSESSMENTSTUDENTSNAPSHOT_GENDER, val );
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the value of the <c>&lt;Gender&gt;</c> element.
 /// </summary>
 /// <param name="val">A Gender object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Person's gender."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetGender( Gender val )
 {
     SetField( CommonDTD.DEMOGRAPHICS_GENDER, val );
 }
        private static StudentPersonal CreateStudent(
          String id,
          String lastName,
            String firstName,
            String street,
            String city,
            StatePrCode state,
            CountryCode country,
            String post,
            String phone,
            Gender gender,
            GradeLevelCode grade,
            RaceType race,
            String birthDateyyyyMMdd)
        {
            StudentPersonal student = new StudentPersonal();
             ;
             student.RefId = Adk.MakeGuid();
             student.LocalId = id;

             // Set the Name
             Name name = new Name(NameType.LEGAL, firstName, lastName);
             student.Name = name;

             Address addr = new Address();
             addr.SetType(AddressType.C0369_PERMANENT);
             addr.SetStreet(street);
             addr.City = city;
             addr.SetStateProvince(state);
             addr.PostalCode = post;
             addr.SetCountry(country);

             student.AddressList = new StudentAddressList(PickupOrDropoff.NA, "NA", addr);
             student.PhoneNumberList =
             new PhoneNumberList(new PhoneNumber(PhoneNumberType.PRIMARY, phone));

             Demographics dem = new Demographics();
             dem.RaceList = new RaceList(new Race("", race));
             dem.SetGender(gender);
             dem.BirthDate =
             DateTime.ParseExact
                 (birthDateyyyyMMdd, "yyyyMMdd", CultureInfo.InvariantCulture.DateTimeFormat);

             student.Demographics = dem;

             return student;
        }