Beispiel #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="workforcePersonalRefId">The REFID of the member of Staff</param>
 ///<param name="participationTypes">A ParticipationTypes</param>
 ///
 public Employee( string workforcePersonalRefId, ParticipationType participationTypes )
     : base(LearnerDTD.EMPLOYEE)
 {
     this.WorkforcePersonalRefId = workforcePersonalRefId;
     this.ParticipationTypes =  new ParticipationTypes( participationTypes );
 }
Beispiel #2
0
 ///<summary>Sets the value of the <c>&lt;ParticipationTypes&gt;</c> element.</summary>
 /// <param name="ParticipationType">The capacity of Involvement</param>
 ///<remarks>
 /// <para>This form of <c>setParticipationTypes</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>ParticipationTypes</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetParticipationTypes(ParticipationType ParticipationType)
 {
     RemoveChild(LearnerDTD.LEARNER_PARTICIPATIONTYPES);
     AddChild(LearnerDTD.LEARNER_PARTICIPATIONTYPES, new ParticipationTypes(ParticipationType));
 }
Beispiel #3
0
 ///<summary>Sets the value of the <c>&lt;ParticipationTypes&gt;</c> element.</summary>
 /// <param name="ParticipationType">The capacity of Involvement</param>
 ///<remarks>
 /// <para>This form of <c>setParticipationTypes</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>ParticipationTypes</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetParticipationTypes( ParticipationType ParticipationType )
 {
     RemoveChild( LearnerDTD.EMPLOYEE_PARTICIPATIONTYPES);
     AddChild( LearnerDTD.EMPLOYEE_PARTICIPATIONTYPES, new ParticipationTypes( ParticipationType ) );
 }
Beispiel #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="learnerPersonalRefId">The REFID of the learner</param>
 ///<param name="participationTypes">A ParticipationTypes</param>
 ///
 public Learner(string learnerPersonalRefId, ParticipationType participationTypes) : base(LearnerDTD.LEARNER)
 {
     this.LearnerPersonalRefId = learnerPersonalRefId;
     this.ParticipationTypes   = new ParticipationTypes(participationTypes);
 }
Beispiel #5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="learnerPersonalRefId">The REFID of the learner</param>
 ///<param name="participationTypes">A ParticipationTypes</param>
 ///
 public Learner( string learnerPersonalRefId, ParticipationType participationTypes )
     : base(LearnerDTD.LEARNER)
 {
     this.LearnerPersonalRefId = learnerPersonalRefId;
     this.ParticipationTypes =  new ParticipationTypes( participationTypes );
 }
Beispiel #6
0
 ///<summary>Adds the value of the <c>&lt;Learner&gt;</c> element.</summary>
 /// <param name="LearnerPersonalRefId">The REFID of the learner</param>
 /// <param name="ParticipationTypes">A ParticipationTypes</param>
 ///<remarks>
 /// <para>This form of <c>setLearner</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddLearner</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void AddLearner(string LearnerPersonalRefId, ParticipationType ParticipationTypes)
 {
     AddChild(LearnerDTD.LEARNERS_LEARNER, new Learner(LearnerPersonalRefId, ParticipationTypes));
 }
Beispiel #7
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="workforcePersonalRefId">The REFID of the member of Staff</param>
 ///<param name="participationTypes">A ParticipationTypes</param>
 ///
 public Employee(string workforcePersonalRefId, ParticipationType participationTypes) : base(LearnerDTD.EMPLOYEE)
 {
     this.WorkforcePersonalRefId = workforcePersonalRefId;
     this.ParticipationTypes     = new ParticipationTypes(participationTypes);
 }
Beispiel #8
0
 ///<summary>Adds the value of the <c>&lt;Employee&gt;</c> element.</summary>
 /// <param name="WorkforcePersonalRefId">The REFID of the member of Staff</param>
 /// <param name="ParticipationTypes">A ParticipationTypes</param>
 ///<remarks>
 /// <para>This form of <c>setEmployee</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddEmployee</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void AddEmployee(string WorkforcePersonalRefId, ParticipationType ParticipationTypes)
 {
     AddChild(LearnerDTD.EMPLOYEES_EMPLOYEE, new Employee(WorkforcePersonalRefId, ParticipationTypes));
 }