/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Type of the reimbursing agency. Values: Federal, State, Local, Other</param> ///<param name="name">The name of the reimbursing agency. This element is to be used when the Type is set as Other.</param> ///<param name="rates">A Rates</param> /// public Agency( AgencyTypeCode type, string name, Rates rates ) : base(FoodDTD.AGENCY) { this.SetType( type ); this.Name = name; this.Rates = rates; }
///<summary>Adds the value of the <c><Agency></c> element.</summary> /// <param name="Type">Type of the reimbursing agency. Values: Federal, State, Local, Other</param> /// <param name="Name">The name of the reimbursing agency. This element is to be used when the Type is set as Other.</param> /// <param name="Rates">A Rates</param> ///<remarks> /// <para>This form of <c>setAgency</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAgency</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void AddAgency(AgencyTypeCode Type, string Name, Rates Rates) { AddChild(FoodDTD.AGENCIES_AGENCY, new Agency(Type, Name, Rates)); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AgencyTypeCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Type of the reimbursing agency. Values: Federal, State, Local, Other"</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType(AgencyTypeCode val) { SetField(FoodDTD.AGENCY_TYPE, val); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AgencyTypeCode object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Type of the reimbursing agency. Values: Federal, State, Local, Other"</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType( AgencyTypeCode val ) { SetField( FoodDTD.AGENCY_TYPE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Type of the reimbursing agency. Values: Federal, State, Local, Other</param> ///<param name="name">The name of the reimbursing agency. This element is to be used when the Type is set as Other.</param> ///<param name="rates">A Rates</param> /// public Agency(AgencyTypeCode type, string name, Rates rates) : base(FoodDTD.AGENCY) { this.SetType(type); this.Name = name; this.Rates = rates; }