/// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="foodserviceItemPortionRefId">Item portion amount</param>
 ///<param name="menuCategory">A MenuCategory</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;MenuPlanQuantity&amp;gt; element</param>
 ///
 public MenuPlanQuantity( string foodserviceItemPortionRefId, MenuCategories menuCategory, string value )
     : base(FoodDTD.MENUPLANQUANTITY)
 {
     this.FoodserviceItemPortionRefId = foodserviceItemPortionRefId;
     this.SetMenuCategory( menuCategory );
     this.Value = value;
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="foodserviceItemPortionRefId">Item portion amount</param>
 ///<param name="menuCategory">A MenuCategory</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;MenuPlanQuantity&amp;gt; element</param>
 ///
 public MenuPlanQuantity(string foodserviceItemPortionRefId, MenuCategories menuCategory, string value) : base(FoodDTD.MENUPLANQUANTITY)
 {
     this.FoodserviceItemPortionRefId = foodserviceItemPortionRefId;
     this.SetMenuCategory(menuCategory);
     this.Value = value;
 }
 /// <summary>
 /// Sets the value of the <c>MenuCategory</c> attribute.
 /// </summary>
 /// <param name="val">A MenuCategories object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetMenuCategory(MenuCategories val)
 {
     SetField(FoodDTD.MENUPLANQUANTITY_MENUCATEGORY, val);
 }
Example #4
0
 ///<summary>Adds the value of the <c>&lt;MenuPlanQuantity&gt;</c> element.</summary>
 /// <param name="FoodserviceItemPortionRefId">Item portion amount</param>
 /// <param name="MenuCategory">A MenuCategory</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;MenuPlanQuantity&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setMenuPlanQuantity</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddMenuPlanQuantity</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddMenuPlanQuantity(string FoodserviceItemPortionRefId, MenuCategories MenuCategory, string Value)
 {
     AddChild(FoodDTD.MENUPLANQUANTITIES_MENUPLANQUANTITY, new MenuPlanQuantity(FoodserviceItemPortionRefId, MenuCategory, Value));
 }
 /// <summary>
 /// Sets the value of the <c>MenuCategory</c> attribute.
 /// </summary>
 /// <param name="val">A MenuCategories object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetMenuCategory( MenuCategories val )
 {
     SetField( FoodDTD.MENUPLANQUANTITY_MENUCATEGORY, val );
 }