/// <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; }
/// <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; }
/// <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; }
///<summary>Sets the value of the <c><ContactInfo></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 ) ); }
///<summary>Sets the value of the <c><ContactInfo></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><ContactInfo></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 ) ); }
///<summary>Sets the value of the <c><PersonInfo></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 ) ); }
///<summary>Sets the value of the <c><OtherNames></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 ) ); }
/// <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; }
/// <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; }
///<summary>Sets the value of the <c><OtherNames></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><PersonInfo></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 ) ); }