示例#1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Type of pay</param>
 ///<param name="amount">Pay amount.</param>
 ///<param name="percentage">Percentage of pay this represents.</param>
 ///
 public PayRate( PayRateType type, MonetaryAmount amount, decimal? percentage )
     : base(HrfinDTD.PAYRATE)
 {
     this.SetType( type );
     this.Amount = amount;
     this.Percentage = percentage;
 }
示例#2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PayRateType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Type of pay"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetType( PayRateType val )
 {
     SetField( HrfinDTD.PAYRATE_TYPE, val );
 }
示例#3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Type of pay</param>
 ///<param name="amount">Pay amount.</param>
 ///<param name="percentage">Percentage of pay this represents.</param>
 ///
 public PayRate(PayRateType type, MonetaryAmount amount, decimal?percentage) : base(HrfinDTD.PAYRATE)
 {
     this.SetType(type);
     this.Amount     = amount;
     this.Percentage = percentage;
 }
示例#4
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PayRateType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Type of pay"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetType(PayRateType val)
 {
     SetField(HrfinDTD.PAYRATE_TYPE, val);
 }
示例#5
0
 ///<summary>Adds the value of the <c>&lt;PayRate&gt;</c> element.</summary>
 /// <param name="Type">Type of pay</param>
 /// <param name="Amount">Pay amount.</param>
 /// <param name="Percentage">Percentage of pay this represents.</param>
 ///<remarks>
 /// <para>This form of <c>setPayRate</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPayRate</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddPayRate(PayRateType Type, MonetaryAmount Amount, decimal?Percentage)
 {
     AddChild(HrfinDTD.PAYRATES_PAYRATE, new PayRate(Type, Amount, Percentage));
 }