/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="accountType">Classification of budgetary account code summary</param> ///<param name="fundType">Is the account a general or special account code designation?</param> ///<param name="function">Function break in account code for summarization.</param> ///<param name="amount">Summarized amount.</param> /// public AnnualItem(AccountClass accountType, FundType fundType, string function, MonetaryAmount amount) : base(HrfinDTD.ANNUALITEM) { this.SetAccountType(accountType); this.SetFundType(fundType); this.Function = function; this.Amount = amount; }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="accountType">Classification of budgetary account code summary</param> ///<param name="fundType">Is the account a general or special account code designation?</param> ///<param name="function">Function break in account code for summarization.</param> ///<param name="amount">Summarized amount.</param> /// public AnnualItem( AccountClass accountType, FundType fundType, string function, MonetaryAmount amount ) : base(HrfinDTD.ANNUALITEM) { this.SetAccountType( accountType ); this.SetFundType( fundType ); this.Function = function; this.Amount = amount; }
/// <summary> /// Sets the value of the <c><FundType></c> element. /// </summary> /// <param name="val">A FundType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Is the account a general or special account code designation?"</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetFundType( FundType val ) { SetField( HrfinDTD.ANNUALITEM_FUNDTYPE, val ); }
///<summary>Adds the value of the <c><AnnualItem></c> element.</summary> /// <param name="AccountType">Classification of budgetary account code summary</param> /// <param name="FundType">Is the account a general or special account code designation?</param> /// <param name="Function">Function break in account code for summarization.</param> /// <param name="Amount">Summarized amount.</param> ///<remarks> /// <para>This form of <c>setAnnualItem</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAnnualItem</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddAnnualItem(AccountClass AccountType, FundType FundType, string Function, MonetaryAmount Amount) { AddChild(HrfinDTD.ANNUALITEMS_ANNUALITEM, new AnnualItem(AccountType, FundType, Function, Amount)); }
/// <summary> /// Sets the value of the <c><FundType></c> element. /// </summary> /// <param name="val">A FundType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Is the account a general or special account code designation?"</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetFundType(FundType val) { SetField(HrfinDTD.ANNUALITEM_FUNDTYPE, val); }