Пример #1
0
 ///<summary>Sets the value of the <c>&lt;Customer&gt;</c> element.</summary>
 /// <param name="SifRefId">GUID of the SIF customer type.</param>
 /// <param name="SifRefObject">SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included.</param>
 ///<remarks>
 /// <para>This form of <c>setCustomer</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Customer</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetCustomer(string SifRefId, CustomerObjectName SifRefObject)
 {
     RemoveChild(FoodDTD.FOODSERVICETRANSACTION_CUSTOMER);
     AddChild(FoodDTD.FOODSERVICETRANSACTION_CUSTOMER, new Customer(SifRefId, SifRefObject));
 }
Пример #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="sifRefId">GUID of the SIF customer type.</param>
 ///<param name="sifRefObject">SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included.</param>
 ///
 public Customer( string sifRefId, CustomerObjectName sifRefObject )
     : base(FoodDTD.CUSTOMER)
 {
     this.SIF_RefId = sifRefId;
     this.SetSIF_RefObject( sifRefObject );
 }
Пример #3
0
 /// <summary>
 /// Sets the value of the <c>SIF_RefObject</c> attribute.
 /// </summary>
 /// <param name="val">A CustomerObjectName object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included."</para>
 /// <para>This attribute is known by more than one tag name depending on the version of SIF in use. 
 /// The ADK will use the tag names shown below when parsing and rendering attributes of this kind.</para>
 /// <list type="table"><listheader><term>Version</term><description>Tag</description></listheader>;
 /// <item><term>2.0 (and greater)</term><description>&lt;SIF_RefObject&gt;</description></item>
 /// </list>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetSIF_RefObject( CustomerObjectName val )
 {
     SetField( FoodDTD.CUSTOMER_SIF_REFOBJECT, val );
 }
 ///<summary>Sets the value of the <c>&lt;Customer&gt;</c> element.</summary>
 /// <param name="SifRefId">GUID of the SIF customer type.</param>
 /// <param name="SifRefObject">SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included.</param>
 ///<remarks>
 /// <para>This form of <c>setCustomer</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>Customer</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetCustomer( string SifRefId, CustomerObjectName SifRefObject )
 {
     RemoveChild( FoodDTD.FOODSERVICETRANSACTION_CUSTOMER);
     AddChild( FoodDTD.FOODSERVICETRANSACTION_CUSTOMER, new Customer( SifRefId, SifRefObject ) );
 }
Пример #5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="sifRefId">GUID of the SIF customer type.</param>
 ///<param name="sifRefObject">SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included.</param>
 ///
 public Customer(string sifRefId, CustomerObjectName sifRefObject) : base(FoodDTD.CUSTOMER)
 {
     this.SIF_RefId = sifRefId;
     this.SetSIF_RefObject(sifRefObject);
 }
Пример #6
0
 /// <summary>
 /// Sets the value of the <c>SIF_RefObject</c> attribute.
 /// </summary>
 /// <param name="val">A CustomerObjectName object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "SIF customer type. If the type is StaffPersonalRefId then EarnedStatus is included. If the type is StudentPersonalRefId, then MealStatus in included."</para>
 /// <para>This attribute is known by more than one tag name depending on the version of SIF in use.
 /// The ADK will use the tag names shown below when parsing and rendering attributes of this kind.</para>
 /// <list type="table"><listheader><term>Version</term><description>Tag</description></listheader>;
 /// <item><term>2.0 (and greater)</term><description>&lt;SIF_RefObject&gt;</description></item>
 /// </list>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetSIF_RefObject(CustomerObjectName val)
 {
     SetField(FoodDTD.CUSTOMER_SIF_REFOBJECT, val);
 }