コード例 #1
0
ファイル: SalesAmount.cs プロジェクト: pgodwin/OpenADK-csharp
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Type of SalesAmount. This denotes the form of incoming funds for the sales done.</param>
 ///<param name="accountType">Type of account to which sales amounts apply.  This is set to NA when Type is set as Earned.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;SalesAmount&amp;gt; element</param>
 ///
 public SalesAmount( SalesAmountType type, AccountType accountType, decimal? value )
     : base(FoodDTD.SALESAMOUNT)
 {
     this.SetType( type );
     this.SetAccountType( accountType );
     this.Value = value;
 }
コード例 #2
0
 ///<summary>Adds the value of the <c>&lt;SalesAmount&gt;</c> element.</summary>
 /// <param name="Type">Type of SalesAmount. This denotes the form of incoming funds for the sales done.</param>
 /// <param name="AccountType">Type of account to which sales amounts apply.  This is set to NA when Type is set as Earned.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;SalesAmount&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setSalesAmount</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddSalesAmount</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddSalesAmount(SalesAmountType Type, AccountType AccountType, decimal?Value)
 {
     AddChild(FoodDTD.SALESAMOUNTS_SALESAMOUNT, new SalesAmount(Type, AccountType, Value));
 }
コード例 #3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Type of SalesAmount. This denotes the form of incoming funds for the sales done.</param>
 ///<param name="accountType">Type of account to which sales amounts apply.  This is set to NA when Type is set as Earned.</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;SalesAmount&amp;gt; element</param>
 ///
 public SalesAmount(SalesAmountType type, AccountType accountType, decimal?value) : base(FoodDTD.SALESAMOUNT)
 {
     this.SetType(type);
     this.SetAccountType(accountType);
     this.Value = value;
 }
コード例 #4
0
ファイル: SalesAmount.cs プロジェクト: pgodwin/OpenADK-csharp
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A SalesAmountType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Type of SalesAmount. This denotes the form of incoming funds for the sales done."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetType( SalesAmountType val )
 {
     SetField( FoodDTD.SALESAMOUNT_TYPE, val );
 }
コード例 #5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A SalesAmountType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Type of SalesAmount. This denotes the form of incoming funds for the sales done."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetType(SalesAmountType val)
 {
     SetField(FoodDTD.SALESAMOUNT_TYPE, val);
 }