Beispiel #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">The price value</param>
 ///<param name="mealStatus">This gives information about a student's meal status.</param>
 ///<param name="mealType">This gives information about a meal type</param>
 ///<param name="gradeLevels">Refer to section 5.1.12 GradeLevels.</param>
 ///
 public Price(decimal?value, MealStatus mealStatus, MealTypes mealType, GradeLevels gradeLevels) : base(FoodDTD.PRICE)
 {
     this.Value      = value;
     this.MealStatus = mealStatus;
     this.SetMealType(mealType);
     this.GradeLevels = gradeLevels;
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="foodserviceItemPortionRefId">Item portion amount</param>
 ///<param name="earned">Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase".</param>
 ///<param name="mealType">A MealType</param>
 ///<param name="value">A Value</param>
 ///
 public PurchaseQuantity(string foodserviceItemPortionRefId, YesNo earned, MealTypes mealType, decimal?value) : base(FoodDTD.PURCHASEQUANTITY)
 {
     this.FoodserviceItemPortionRefId = foodserviceItemPortionRefId;
     this.SetEarned(earned);
     this.SetMealType(mealType);
     this.Value = value;
 }
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="foodserviceItemPortionRefId">Item portion amount</param>
 ///<param name="earned">Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase".</param>
 ///<param name="mealType">A MealType</param>
 ///<param name="value">A Value</param>
 ///
 public PurchaseQuantity( string foodserviceItemPortionRefId, YesNo earned, MealTypes mealType, decimal? value )
     : base(FoodDTD.PURCHASEQUANTITY)
 {
     this.FoodserviceItemPortionRefId = foodserviceItemPortionRefId;
     this.SetEarned( earned );
     this.SetMealType( mealType );
     this.Value = value;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">The price value</param>
 ///<param name="mealStatus">This gives information about a student's meal status.</param>
 ///<param name="mealType">This gives information about a meal type</param>
 ///<param name="gradeLevels">Refer to section 5.1.12 GradeLevels.</param>
 ///
 public Price( decimal? value, MealStatus mealStatus, MealTypes mealType, GradeLevels gradeLevels )
     : base(FoodDTD.PRICE)
 {
     this.Value = value;
     this.MealStatus = mealStatus;
     this.SetMealType( mealType );
     this.GradeLevels = gradeLevels;
 }
Beispiel #5
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MealTypes object</param>
 /// <remarks>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetMealType( MealTypes val )
 {
     SetField( FoodDTD.ITEMQUANTITY_MEALTYPE, val );
 }
Beispiel #6
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MealTypes object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetMealType(MealTypes val)
 {
     SetField(FoodDTD.ITEMQUANTITY_MEALTYPE, val);
 }
Beispiel #7
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MealTypes object</param>
 /// <remarks>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetMealType(MealTypes val)
 {
     SetField(FoodDTD.COUNT_MEALTYPE, val);
 }
Beispiel #8
0
 ///<summary>Adds the value of the <c>&lt;Price&gt;</c> element.</summary>
 /// <param name="Value">The price value</param>
 /// <param name="MealStatus">This gives information about a student's meal status.</param>
 /// <param name="MealType">This gives information about a meal type</param>
 /// <param name="GradeLevels">Refer to section 5.1.12 GradeLevels.</param>
 ///<remarks>
 /// <para>This form of <c>setPrice</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPrice</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddPrice(decimal?Value, MealStatus MealStatus, MealTypes MealType, GradeLevels GradeLevels)
 {
     AddChild(FoodDTD.PRICES_PRICE, new Price(Value, MealStatus, MealType, GradeLevels));
 }
Beispiel #9
0
 /// <summary>
 /// Sets the value of the <c>&lt;MealType&gt;</c> element.
 /// </summary>
 /// <param name="val">A MealTypes object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this element as: "This gives information about a meal type"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetMealType( MealTypes val )
 {
     SetField( FoodDTD.PRICE_MEALTYPE, val );
 }
Beispiel #10
0
 ///<summary>Adds the value of the <c>&lt;PurchaseQuantity&gt;</c> element.</summary>
 /// <param name="FoodserviceItemPortionRefId">Item portion amount</param>
 /// <param name="Earned">Identifies whether the item being purchased is earned i.e., at no cost to the buyer. It is used when FoodserviceTransaction object's TransactionType element has the value "Purchase".</param>
 /// <param name="MealType">A MealType</param>
 /// <param name="Value">A Value</param>
 ///<remarks>
 /// <para>This form of <c>setPurchaseQuantity</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPurchaseQuantity</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddPurchaseQuantity(string FoodserviceItemPortionRefId, YesNo Earned, MealTypes MealType, decimal?Value)
 {
     AddChild(FoodDTD.PURCHASEQUANTITIES_PURCHASEQUANTITY, new PurchaseQuantity(FoodserviceItemPortionRefId, Earned, MealType, Value));
 }