コード例 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="personRefId">It is important to note that using the same GUID a person may have a LearnerPersonal record, a WorkforcePersonal record, and a ContactPersonal record all at the same time.  This same picture is applicable regardless of the associated object type(s).</param>
 ///<param name="sifRefObjectList">A list of one or more "personal" object type codes representing objects that can be requested for this person using the specified PersonRefId.</param>
 ///<param name="schoolYear">School year for which this enrolment is applicable, expressed as the four-digit year in which the school year ends (e.g. 2007 for the 2006/07 school year).</param>
 ///<param name="pictureSource">This element defines the picture. If the Type attribute is URL, this is the location of the picture in [JPEG] format; if Type is JPEG, this is the [JPEG] image data encoded using the Base64 Content-Transfer-Encoding defined in Section 6.8 of [RFC 2045]. CBDS: 100019</param>
 ///
 public PersonPicture(string personRefId, SIF_RefObject sifRefObjectList, int?schoolYear, PictureSource pictureSource) : base(Adk.SifVersion, SchoolDTD.PERSONPICTURE)
 {
     this.PersonRefId       = personRefId;
     this.SIF_RefObjectList = new SIF_RefObjectList(sifRefObjectList);
     this.SchoolYear        = schoolYear;
     this.PictureSource     = pictureSource;
 }
コード例 #2
0
 ///<summary>Sets the value of the <c>&lt;SIF_RefObjectList&gt;</c> element.</summary>
 /// <param name="SifRefObject">The name of the "personal" object that this picture represents. Values: LearnerPersonal, WorkforcePersonal, ContactPersonal</param>
 ///<remarks>
 /// <para>This form of <c>setSIF_RefObjectList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>SIF_RefObjectList</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetSIF_RefObjectList(SIF_RefObject SifRefObject)
 {
     RemoveChild(SchoolDTD.PERSONPICTURE_SIF_REFOBJECTLIST);
     AddChild(SchoolDTD.PERSONPICTURE_SIF_REFOBJECTLIST, new SIF_RefObjectList(SifRefObject));
 }
コード例 #3
0
 /// <summary>
 /// Sets the value of the <c>SIF_RefObject</c> attribute.
 /// </summary>
 /// <param name="val">A SIF_RefObject object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The name of the object referenced."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetSIF_RefObject(SIF_RefObject val)
 {
     SetField(StudentDTD.HOMEROOM_SIF_REFOBJECT, val);
 }
コード例 #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="sifRefObject">The name of the object referenced.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;Homeroom&amp;gt; element</param>
 ///
 public Homeroom(SIF_RefObject sifRefObject, string value) : base(StudentDTD.HOMEROOM)
 {
     this.SetSIF_RefObject(sifRefObject);
     this.Value = value;
 }
コード例 #5
0
 ///<summary>Sets the value of the <c>&lt;Homeroom&gt;</c> element.</summary>
 /// <param name="SifRefObject">The name of the object referenced.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Homeroom&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setHomeroom</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Homeroom</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetHomeroom(SIF_RefObject SifRefObject, string Value)
 {
     RemoveChild(StudentDTD.HOMEENROLLMENT_HOMEROOM);
     AddChild(StudentDTD.HOMEENROLLMENT_HOMEROOM, new Homeroom(SifRefObject, Value));
 }