예제 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Type of fine assessed to this patron and item.  A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine.</param>
 ///<param name="assessed">The date and time that this fine was assessed to the patron.</param>
 ///<param name="amount">The current balance of the fine expressed as a positive number. </param>
 ///
 public FineInfo( FineType type, DateTime? assessed, MonetaryAmount amount )
     : base(LibraryDTD.FINEINFO)
 {
     this.SetType( type );
     this.Assessed = assessed;
     this.Amount = amount;
 }
예제 #2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A FineType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Type of fine assessed to this patron and item.  A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( FineType val )
 {
     SetField( LibraryDTD.FINEINFO_TYPE, val );
 }
예제 #3
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A FineType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Type of fine assessed to this patron and item.  A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(FineType val)
 {
     SetField(LibraryDTD.FINEINFO_TYPE, val);
 }
예제 #4
0
 ///<summary>Adds the value of the <c>&lt;FineInfo&gt;</c> element.</summary>
 /// <param name="Type">Type of fine assessed to this patron and item.  A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine.</param>
 /// <param name="Assessed">The date and time that this fine was assessed to the patron.</param>
 /// <param name="Amount">The current balance of the fine expressed as a positive number. </param>
 ///<remarks>
 /// <para>This form of <c>setFineInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddFineInfo</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddFineInfo(FineType Type, DateTime?Assessed, MonetaryAmount Amount)
 {
     AddChild(LibraryDTD.FINEINFOLIST_FINEINFO, new FineInfo(Type, Assessed, Amount));
 }
예제 #5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Type of fine assessed to this patron and item.  A corresponding ItemInfo is required for all FineInfo types except "Other" and "Refund" where it is permissible to omit the ItemInfo element if there isn't an item associated with the fine.</param>
 ///<param name="assessed">The date and time that this fine was assessed to the patron.</param>
 ///<param name="amount">The current balance of the fine expressed as a positive number. </param>
 ///
 public FineInfo(FineType type, DateTime?assessed, MonetaryAmount amount) : base(LibraryDTD.FINEINFO)
 {
     this.SetType(type);
     this.Assessed = assessed;
     this.Amount   = amount;
 }