Example #1
0
 /// <summary>
 /// Sets the value of the <c>UnitOfMeasure</c> attribute.
 /// </summary>
 /// <param name="val">A DurationUnit object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies unit of measure in which amount of time is expressed."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetUnitOfMeasure( DurationUnit val )
 {
     SetField( ProgramsDTD.TIMEUNIT_UNITOFMEASURE, val );
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="unitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;TimeUnit&amp;gt; element</param>
 ///
 public TimeUnit( DurationUnit unitOfMeasure, decimal? value )
     : base(ProgramsDTD.TIMEUNIT)
 {
     this.SetUnitOfMeasure( unitOfMeasure );
     this.Value = value;
 }
 ///<summary>Sets the value of the <c>&lt;TotalServiceDuration&gt;</c> element.</summary>
 /// <param name="UnitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;TimeUnit&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setTotalServiceDuration</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>TotalServiceDuration</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetTotalServiceDuration( DurationUnit UnitOfMeasure, decimal? Value )
 {
     RemoveChild( ProgramsDTD.STUDENTPLACEMENT_TOTALSERVICEDURATION);
     AddChild( ProgramsDTD.STUDENTPLACEMENT_TOTALSERVICEDURATION, new TimeUnit( UnitOfMeasure, Value ) );
 }
Example #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="unitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;IndirectTime&amp;gt; element</param>
 ///
 public IndirectTime( DurationUnit unitOfMeasure, string value )
     : base(ProgramsDTD.INDIRECTTIME)
 {
     this.SetUnitOfMeasure( unitOfMeasure );
     this.Value = value;
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="unitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;TotalServiceDuration&amp;gt; element</param>
 ///
 public TotalServiceDuration( DurationUnit unitOfMeasure, string value )
     : base(ProgramsDTD.TOTALSERVICEDURATION)
 {
     this.SetUnitOfMeasure( unitOfMeasure );
     this.Value = value;
 }
 ///<summary>Sets the value of the <c>&lt;IndirectTime&gt;</c> element.</summary>
 /// <param name="UnitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;TimeUnit&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setIndirectTime</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>IndirectTime</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetIndirectTime( DurationUnit UnitOfMeasure, decimal? Value )
 {
     RemoveChild( ProgramsDTD.STUDENTPLACEMENT_INDIRECTTIME);
     AddChild( ProgramsDTD.STUDENTPLACEMENT_INDIRECTTIME, new TimeUnit( UnitOfMeasure, Value ) );
 }
 /// <summary>
 /// Sets the value of the <c>UnitOfMeasure</c> attribute.
 /// </summary>
 /// <param name="val">A DurationUnit object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies unit of measure in which amount of time is expressed."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetUnitOfMeasure( DurationUnit val )
 {
     SetField( ProgramsDTD.TOTALSERVICEDURATION_UNITOFMEASURE, val );
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="unitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;TotalServiceDuration&amp;gt; element</param>
 ///
 public TotalServiceDuration(DurationUnit unitOfMeasure, string value) : base(ProgramsDTD.TOTALSERVICEDURATION)
 {
     this.SetUnitOfMeasure(unitOfMeasure);
     this.Value = value;
 }
 /// <summary>
 /// Sets the value of the <c>UnitOfMeasure</c> attribute.
 /// </summary>
 /// <param name="val">A DurationUnit object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Identifies unit of measure in which amount of time is expressed."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetUnitOfMeasure(DurationUnit val)
 {
     SetField(ProgramsDTD.TOTALSERVICEDURATION_UNITOFMEASURE, val);
 }
Example #10
0
	/// <summary>
	/// Constructor that accepts values for all mandatory fields
	/// </summary>
	///<param name="unitOfMeasure">Identifies unit of measure in which amount of time is expressed.</param>
	///<param name="value">Gets or sets the content value of the &amp;lt;DirectTime&amp;gt; element</param>
	///
	public DirectTime( DurationUnit unitOfMeasure, string value ) : base( ProgramsDTD.DIRECTTIME )
	{
		this.SetUnitOfMeasure( unitOfMeasure );
		this.Value = value;
	}
Example #11
0
	/// <summary>
	/// Sets the value of the <c>UnitOfMeasure</c> attribute.
	/// </summary>
	/// <param name="val">A DurationUnit object</param>
	/// <remarks>
	/// <para>The SIF specification defines the meaning of this attribute as: "Identifies unit of measure in which amount of time is expressed."</para>
	/// <para>Version: 2.6</para>
	/// <para>Since: 2.0</para>
	/// </remarks>
	public void SetUnitOfMeasure( DurationUnit val )
	{
		SetField( ProgramsDTD.DIRECTTIME_UNITOFMEASURE, val );
	}