/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">Transaction GUID for this purchasing activity. The application that owns this object and is responsible for generating this unique ID.</param> ///<param name="formType">Type of purchasing document.</param> ///<param name="formNumber">Requisition or PO number.</param> ///<param name="purchasingItems">Contains information about the item being purchased</param> /// public Purchasing( string refId, FormType formType, string formNumber, PurchasingItems purchasingItems ) : base(Adk.SifVersion, HrfinDTD.PURCHASING) { this.RefId = refId; this.SetFormType( formType ); this.FormNumber = formNumber; this.PurchasingItems = purchasingItems; }
/// <summary> /// Sets the value of the <c><FormType></c> element. /// </summary> /// <param name="val">A FormType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "Type of purchasing document."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetFormType( FormType val ) { SetField( HrfinDTD.PURCHASING_FORMTYPE, val ); }