示例#1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">The value of sale quantity</param>
 ///<param name="mealStatus">A MealStatus</param>
 ///<param name="saleUnit">Unit of Sale</param>
 ///<param name="chargeToChild">Charge to child per unit</param>
 ///
 public SaleQuantity(decimal?value, MealStatus mealStatus, string saleUnit, MonetaryAmount chargeToChild) : base(FoodDTD.SALEQUANTITY)
 {
     this.Value         = value;
     this.MealStatus    = mealStatus;
     this.SaleUnit      = saleUnit;
     this.ChargeToChild = chargeToChild;
 }
示例#2
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;
 }
示例#3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="severeNeed">
 ///         Severe need identifier for the rate. When SevereNeed is Yes then the rate shown is the combined rate.
 ///         For certain programs the severe need identifier does not apply.  In such cases the value NA should
 ///         be used.
 ///       </param>
 ///<param name="value">The rate value</param>
 ///<param name="mealStatus">This gives information about a student's meal status.</param>
 ///
 public Rate( YesNoNA severeNeed, string value, MealStatus mealStatus )
     : base(FoodDTD.RATE)
 {
     this.SetSevereNeed( severeNeed );
     this.Value = value;
     this.MealStatus = mealStatus;
 }
示例#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;
 }
示例#5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="value">The value of sale quantity</param>
 ///<param name="mealStatus">A MealStatus</param>
 ///<param name="saleUnit">Unit of Sale</param>
 ///<param name="chargeToChild">Charge to child per unit</param>
 ///
 public SaleQuantity( decimal? value, MealStatus mealStatus, string saleUnit, MonetaryAmount chargeToChild )
     : base(FoodDTD.SALEQUANTITY)
 {
     this.Value = value;
     this.MealStatus = mealStatus;
     this.SaleUnit = saleUnit;
     this.ChargeToChild = chargeToChild;
 }
示例#6
0
 ///<summary>Adds the value of the <c>&lt;SaleQuantity&gt;</c> element.</summary>
 /// <param name="Value">The value of sale quantity</param>
 /// <param name="MealStatus">A MealStatus</param>
 /// <param name="SaleUnit">Unit of Sale</param>
 /// <param name="ChargeToChild">Charge to child per unit</param>
 ///<remarks>
 /// <para>This form of <c>setSaleQuantity</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddSaleQuantity</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddSaleQuantity(decimal?Value, MealStatus MealStatus, string SaleUnit, MonetaryAmount ChargeToChild)
 {
     AddChild(FoodDTD.SALEQUANTITIES_SALEQUANTITY, new SaleQuantity(Value, MealStatus, SaleUnit, ChargeToChild));
 }
示例#7
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));
 }
示例#8
0
 ///<summary>Adds the value of the <c>&lt;Rate&gt;</c> element.</summary>
 /// <param name="SevereNeed">
 ///         Severe need identifier for the rate. When SevereNeed is Yes then the rate shown is the combined rate.
 ///         For certain programs the severe need identifier does not apply.  In such cases the value NA should
 ///         be used.
 ///       </param>
 /// <param name="Value">The rate value</param>
 /// <param name="MealStatus">This gives information about a student's meal status.</param>
 ///<remarks>
 /// <para>This form of <c>setRate</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddRate</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void AddRate(YesNoNA SevereNeed, string Value, MealStatus MealStatus)
 {
     AddChild(FoodDTD.RATES_RATE, new Rate(SevereNeed, Value, MealStatus));
 }
示例#9
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="severeNeed">
 ///         Severe need identifier for the rate. When SevereNeed is Yes then the rate shown is the combined rate.
 ///         For certain programs the severe need identifier does not apply.  In such cases the value NA should
 ///         be used.
 ///       </param>
 ///<param name="value">The rate value</param>
 ///<param name="mealStatus">This gives information about a student's meal status.</param>
 ///
 public Rate(YesNoNA severeNeed, string value, MealStatus mealStatus) : base(FoodDTD.RATE)
 {
     this.SetSevereNeed(severeNeed);
     this.Value      = value;
     this.MealStatus = mealStatus;
 }