///<summary>Sets the value of the <c><JobFunction></c> element.</summary> /// <param name="Code">Code representing the type of job function.</param> ///<remarks> /// <para>This form of <c>setJobFunction</c> is provided as a convenience method /// that is functionally equivalent to the <c>JobFunction</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetJobFunction( JobFunctionCode Code ) { RemoveChild( ProfdevDTD.EMPLASSIGNMENT_JOBFUNCTION); AddChild( ProfdevDTD.EMPLASSIGNMENT_JOBFUNCTION, new JobFunction( Code ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="code">Code representing the type of job function.</param> /// public JobFunction( JobFunctionCode code ) : base(CommonDTD.JOBFUNCTION) { this.SetCode( code ); }
///<summary>Sets the value of the <c><JobFunction></c> element.</summary> /// <param name="Code">Code representing the type of job function.</param> ///<remarks> /// <para>This form of <c>setJobFunction</c> is provided as a convenience method /// that is functionally equivalent to the <c>JobFunction</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetJobFunction( JobFunctionCode Code ) { RemoveChild( HrfinDTD.TIMEWORKED_JOBFUNCTION); AddChild( HrfinDTD.TIMEWORKED_JOBFUNCTION, new JobFunction( Code ) ); }
/// <summary> /// Sets the value of the <c>Code</c> attribute. /// </summary> /// <param name="val">A JobFunctionCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Code representing the type of job function."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetCode( JobFunctionCode val ) { SetField( CommonDTD.JOBFUNCTION_CODE, val ); }
///<summary>Sets the value of the <c><JobFunction></c> element.</summary> /// <param name="Code">Code representing the type of job function.</param> ///<remarks> /// <para>This form of <c>setJobFunction</c> is provided as a convenience method /// that is functionally equivalent to the <c>JobFunction</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetJobFunction( JobFunctionCode Code ) { RemoveChild( StudentDTD.STAFFASSIGNMENT_JOBFUNCTION); AddChild( StudentDTD.STAFFASSIGNMENT_JOBFUNCTION, new JobFunction( Code ) ); }