///<summary>Sets the value of the <c><Customer></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)); }
/// <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 ); }
/// <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><SIF_RefObject></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><Customer></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 ) ); }
/// <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); }
/// <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><SIF_RefObject></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); }