Пример #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The GUID of the staff member.</param>
 ///<param name="localId">A LocalId</param>
 ///<param name="personInfo">A PersonInfo</param>
 ///
 public StaffPersonal( string refId, string localId, PersonInfo personInfo )
     : base(Adk.SifVersion, StudentDTD.STAFFPERSONAL)
 {
     this.RefId = refId;
     this.LocalId = localId;
     this.PersonInfo = personInfo;
 }
Пример #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The GUID that uniquely identifies this SDTN Object.</param>
 ///<param name="snapDate">The date that this object was sent.</param>
 ///<param name="studentPersonalRefId">The RefId of the StudentPersonal object at the sending school.</param>
 ///<param name="personInfo">A PersonInfo</param>
 ///<param name="schoolInfoRefId">GUID that identifies the school that provided the SDTN.</param>
 ///<param name="schoolName">Name of school/campus.</param>
 ///
 public StudentSDTN( string refId, DateTime? snapDate, string studentPersonalRefId, PersonInfo personInfo, string schoolInfoRefId, string schoolName )
     : base(Adk.SifVersion, StudentDTD.STUDENTSDTN)
 {
     this.RefId = refId;
     this.SnapDate = snapDate;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.PersonInfo = personInfo;
     this.SchoolInfoRefId = schoolInfoRefId;
     this.SchoolName = schoolName;
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The ID (GUID) that uniquely identifies the enrollment.</param>
 ///<param name="schoolYear">A SchoolYear</param>
 ///<param name="parentObjectRefId">A ParentObjectRefId</param>
 ///<param name="localId">A LocalId</param>
 ///<param name="personInfo">A PersonInfo</param>
 ///<param name="schoolEnrollmentList">A SchoolEnrollmentList</param>
 ///
 public SummaryEnrollmentInfo( string refId, int? schoolYear, ParentObjectRefId parentObjectRefId, string localId, PersonInfo personInfo, SchoolEnrollment schoolEnrollmentList )
     : base(Adk.SifVersion, StudentDTD.SUMMARYENROLLMENTINFO)
 {
     this.RefId = refId;
     this.SchoolYear = schoolYear;
     this.ParentObjectRefId = parentObjectRefId;
     this.LocalId = localId;
     this.PersonInfo = personInfo;
     this.SchoolEnrollmentList =  new SchoolEnrollmentList( schoolEnrollmentList );
 }
        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>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The ID (GUID) that uniquely identifies the instance of the object.</param>
 ///<param name="personInfo">A PersonInfo</param>
 ///
 public StudentContactPersonal( string refId, PersonInfo personInfo )
     : base(Adk.SifVersion, StudentDTD.STUDENTCONTACTPERSONAL)
 {
     this.RefId = refId;
     this.PersonInfo = personInfo;
 }