コード例 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID that identifies this item's portion</param>
 ///<param name="foodserviceItemUnitRefId">GUID that identifies related item portion</param>
 ///<param name="itemPortionQuantity">Quantity of item portion (number of units)</param>
 ///<param name="itemPortionType">Type of item unit</param>
 ///
 public FoodserviceItemPortion( string refId, string foodserviceItemUnitRefId, decimal? itemPortionQuantity, ItemPortionTypeValue itemPortionType )
     : base(Adk.SifVersion, FoodDTD.FOODSERVICEITEMPORTION)
 {
     this.RefId = refId;
     this.FoodserviceItemUnitRefId = foodserviceItemUnitRefId;
     this.ItemPortionQuantity = itemPortionQuantity;
     this.SetItemPortionType( itemPortionType );
 }
コード例 #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="refId">GUID that identifies this item's portion</param>
 ///<param name="foodserviceItemUnitRefId">GUID that identifies related item portion</param>
 ///<param name="itemPortionQuantity">Quantity of item portion (number of units)</param>
 ///<param name="itemPortionType">Type of item unit</param>
 ///
 public FoodserviceItemPortion(string refId, string foodserviceItemUnitRefId, decimal?itemPortionQuantity, ItemPortionTypeValue itemPortionType) : base(Adk.SifVersion, FoodDTD.FOODSERVICEITEMPORTION)
 {
     this.RefId = refId;
     this.FoodserviceItemUnitRefId = foodserviceItemUnitRefId;
     this.ItemPortionQuantity      = itemPortionQuantity;
     this.SetItemPortionType(itemPortionType);
 }
コード例 #3
0
 /// <summary>
 /// Sets the value of the <c>&lt;ItemPortionType&gt;</c> element.
 /// </summary>
 /// <param name="val">A ItemPortionTypeValue object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Type of item unit"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetItemPortionType(ItemPortionTypeValue val)
 {
     SetField(FoodDTD.FOODSERVICEITEMPORTION_ITEMPORTIONTYPE, val);
 }
コード例 #4
0
 /// <summary>
 /// Sets the value of the <c>&lt;ItemPortionType&gt;</c> element.
 /// </summary>
 /// <param name="val">A ItemPortionTypeValue object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "Type of item unit"</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetItemPortionType( ItemPortionTypeValue val )
 {
     SetField( FoodDTD.FOODSERVICEITEMPORTION_ITEMPORTIONTYPE, val );
 }