/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="financialAccountAccountingPeriodLocationInfoRefId">Account.</param> ///<param name="type">Values: Debit, Credit</param> ///<param name="value">Gets or sets the content value of the &lt;FTAmount&gt; element</param> /// public FTAmount( string financialAccountAccountingPeriodLocationInfoRefId, FTAmountType type, decimal? value ) : base(HrfinDTD.FTAMOUNT) { this.FinancialAccountAccountingPeriodLocationInfoRefId = financialAccountAccountingPeriodLocationInfoRefId; this.SetType( type ); this.Value = value; }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="financialAccountAccountingPeriodLocationInfoRefId">Account.</param> ///<param name="type">Values: Debit, Credit</param> ///<param name="value">Gets or sets the content value of the &lt;FTAmount&gt; element</param> /// public FTAmount(string financialAccountAccountingPeriodLocationInfoRefId, FTAmountType type, decimal?value) : base(HrfinDTD.FTAMOUNT) { this.FinancialAccountAccountingPeriodLocationInfoRefId = financialAccountAccountingPeriodLocationInfoRefId; this.SetType(type); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A FTAmountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Values: Debit, Credit"</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType(FTAmountType val) { SetField(HrfinDTD.FTAMOUNT_TYPE, val); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A FTAmountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Values: Debit, Credit"</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType( FTAmountType val ) { SetField( HrfinDTD.FTAMOUNT_TYPE, val ); }
///<summary>Adds the value of the <c><Amount></c> element.</summary> /// <param name="FinancialAccountAccountingPeriodLocationInfoRefId">Account.</param> /// <param name="Type">Values: Debit, Credit</param> /// <param name="Value">Gets or sets the content value of the &lt;FTAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setAmount</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAmount</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddAmount(string FinancialAccountAccountingPeriodLocationInfoRefId, FTAmountType Type, decimal?Value) { AddChild(HrfinDTD.FTAMOUNTS_AMOUNT, new FTAmount(FinancialAccountAccountingPeriodLocationInfoRefId, Type, Value)); }