/// <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><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.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetEarnedStatus( YesNoNA Type ) { RemoveChild( FoodDTD.STAFFMEAL_EARNEDSTATUS); AddChild( FoodDTD.STAFFMEAL_EARNEDSTATUS, new EarnedStatus( Type ) ); }
/// <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> /// 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.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetSevereNeed( YesNoNA val ) { SetField( FoodDTD.RATE_SEVERENEED, val ); }
/// <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.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType( YesNoNA val ) { SetField( FoodDTD.EARNEDSTATUS_TYPE, val ); }