/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="staffLocalId">A StaffLocalId</param>
 ///<param name="name">A Name</param>
 ///<param name="association">An Association</param>
 ///
 public TeachingGroupTeacher( string staffLocalId, Name name, string association )
     : base(LearningDTD.TEACHINGGROUPTEACHER)
 {
     this.StaffLocalId = staffLocalId;
     this.Name = name;
     this.Association = association;
 }
Пример #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">The GUID of this contact.</param>
 ///<param name="studentPersonalRefId">The GUID of the student whose contact this is.</param>
 ///<param name="name">The name of the contact.  Note: Type attribute value of 04 must be used here.</param>
 ///<param name="contactFlags">A ContactFlags</param>
 ///
 public StudentContact( string refId, string studentPersonalRefId, Name name, ContactFlags contactFlags )
     : base(Adk.SifVersion, StudentDTD.STUDENTCONTACT)
 {
     this.RefId = refId;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.Name = name;
     this.ContactFlags = contactFlags;
 }
Пример #3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="snapDate">The date the data snapshot was taken.        Some elements are provided/calculated as of the SnapDate, and some are provided as of the date the object is requested        (i.e., some can be historical and some will represent the last information available/last known value).        In a SIS the following elements are provided/calculated as of the SnapDate: Age, HomeEnrollment and all its child elements.        Other applications (e.g., data warehouses) may be able to provide values for other elements on various snap dates.</param>
 ///<param name="studentPersonalRefId">The ID (GUID) of the student to whom this information relates.</param>
 ///<param name="schoolYear">A SchoolYear</param>
 ///<param name="name">A Name</param>
 ///<param name="localId">A LocalId</param>
 ///<param name="homeEnrollment">An HomeEnrollment</param>
 ///
 public StudentSnapshot( DateTime? snapDate, string studentPersonalRefId, int? schoolYear, Name name, string localId, HomeEnrollment homeEnrollment )
     : base(Adk.SifVersion, StudentDTD.STUDENTSNAPSHOT)
 {
     this.SnapDate = snapDate;
     this.StudentPersonalRefId = studentPersonalRefId;
     this.SchoolYear = schoolYear;
     this.Name = name;
     this.LocalId = localId;
     this.HomeEnrollment = homeEnrollment;
 }
Пример #4
0
 ///<summary>Sets the value of the <c>&lt;ContactInfo&gt;</c> element.</summary>
 /// <param name="Name">A Name</param>
 ///<remarks>
 /// <para>This form of <c>setContactInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>ContactInfo</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetContactInfo( Name Name )
 {
     RemoveChild( StudentDTD.LEACONTACT_CONTACTINFO);
     AddChild( StudentDTD.LEACONTACT_CONTACTINFO, new ContactInfo( Name ) );
 }
Пример #5
0
 ///<summary>Sets the value of the <c>&lt;ContactInfo&gt;</c> element.</summary>
 /// <param name="Name">A Name</param>
 ///<remarks>
 /// <para>This form of <c>setContactInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>ContactInfo</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetContactInfo( Name Name )
 {
     RemoveChild( CommonDTD.SCHOOLCONTACT_CONTACTINFO);
     AddChild( CommonDTD.SCHOOLCONTACT_CONTACTINFO, new ContactInfo( Name ) );
 }
        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="studentLocalId">A StudentLocalId</param>
 ///<param name="name">A Name</param>
 ///
 public TeachingGroupStudent( string studentLocalId, Name name )
     : base(LearningDTD.TEACHINGGROUPSTUDENT)
 {
     this.StudentLocalId = studentLocalId;
     this.Name = name;
 }
 ///<summary>Sets the value of the <c>&lt;ContactInfo&gt;</c> element.</summary>
 /// <param name="Name">A Name</param>
 ///<remarks>
 /// <para>This form of <c>setContactInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>ContactInfo</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetContactInfo( Name Name )
 {
     RemoveChild( ReportingDTD.REPORTAUTHORITYINFO_CONTACTINFO);
     AddChild( ReportingDTD.REPORTAUTHORITYINFO_CONTACTINFO, new ContactInfo( Name ) );
 }
Пример #9
0
 ///<summary>Sets the value of the <c>&lt;PersonInfo&gt;</c> element.</summary>
 /// <param name="Name">The name of the person. Note: Type attribute value of LGL must be used here.</param>
 ///<remarks>
 /// <para>This form of <c>setPersonInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PersonInfo</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetPersonInfo( Name Name )
 {
     RemoveChild( StudentDTD.STUDENTSDTN_PERSONINFO);
     AddChild( StudentDTD.STUDENTSDTN_PERSONINFO, new PersonInfo( Name ) );
 }
Пример #10
0
 ///<summary>Sets the value of the <c>&lt;OtherNames&gt;</c> element.</summary>
 /// <param name="Name">A Name</param>
 ///<remarks>
 /// <para>This form of <c>setOtherNames</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>OtherNames</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetOtherNames( Name Name )
 {
     RemoveChild( StudentDTD.STUDENTCONTACT_OTHERNAMES);
     AddChild( StudentDTD.STUDENTCONTACT_OTHERNAMES, new OtherNames( Name ) );
 }
Пример #11
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="name">A Name</param>
 ///
 public ContactInfo( Name name )
     : base(CommonDTD.CONTACTINFO)
 {
     this.Name = name;
 }
Пример #12
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="name">The name of the person. Note: Type attribute value of LGL must be used here.</param>
 ///
 public PersonInfo( Name name )
     : base(CommonDTD.PERSONINFO)
 {
     this.Name = name;
 }
Пример #13
0
 ///<summary>Sets the value of the <c>&lt;OtherNames&gt;</c> element.</summary>
 /// <param name="Name">A Name</param>
 ///<remarks>
 /// <para>This form of <c>setOtherNames</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>OtherNames</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetOtherNames( Name Name )
 {
     RemoveChild( CommonDTD.PERSONINFO_OTHERNAMES);
     AddChild( CommonDTD.PERSONINFO_OTHERNAMES, new OtherNames( Name ) );
 }
 ///<summary>Sets the value of the <c>&lt;PersonInfo&gt;</c> element.</summary>
 /// <param name="Name">The name of the person. Note: Type attribute value of LGL must be used here.</param>
 ///<remarks>
 /// <para>This form of <c>setPersonInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PersonInfo</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetPersonInfo( Name Name )
 {
     RemoveChild( StudentDTD.SUMMARYENROLLMENTINFO_PERSONINFO);
     AddChild( StudentDTD.SUMMARYENROLLMENTINFO_PERSONINFO, new PersonInfo( Name ) );
 }