///<summary>Sets the value of the <c><EarnedStatus></c> element.</summary> /// <param name="Type">Earned status type.</param> ///<remarks> /// <para>This form of <c>setEarnedStatus</c> is provided as a convenience method /// that is functionally equivalent to the <c>EarnedStatus</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetEarnedStatus(YesNoNA Type) { RemoveChild(FoodDTD.COUNT_EARNEDSTATUS); AddChild(FoodDTD.COUNT_EARNEDSTATUS, new EarnedStatus(Type)); }
///<summary>Adds the value of the <c><Rate></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)); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A YesNoNA object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Earned status type."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType(YesNoNA val) { SetField(FoodDTD.EARNEDSTATUS_TYPE, val); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Earned status type.</param> /// public EarnedStatus(YesNoNA type) : base(FoodDTD.EARNEDSTATUS) { this.SetType(type); }
/// <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; }
/// <summary> /// Sets the value of the <c>SevereNeed</c> attribute. /// </summary> /// <param name="val">A YesNoNA object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: " /// 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. /// "</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetSevereNeed(YesNoNA val) { SetField(FoodDTD.RATE_SEVERENEED, val); }