Beispiel #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The type of hold being referenced.</param>
 ///<param name="datePlaced">The date that the patron placed the hold.</param>
 ///
 public HoldInfo( HoldStatus type, DateTime? datePlaced )
     : base(LibraryDTD.HOLDINFO)
 {
     this.SetType( type );
     this.DatePlaced = datePlaced;
 }
Beispiel #2
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A HoldStatus object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The type of hold being referenced."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType( HoldStatus val )
 {
     SetField( LibraryDTD.HOLDINFO_TYPE, val );
 }
Beispiel #3
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The type of hold being referenced.</param>
 ///<param name="datePlaced">The date that the patron placed the hold.</param>
 ///
 public HoldInfo(HoldStatus type, DateTime?datePlaced) : base(LibraryDTD.HOLDINFO)
 {
     this.SetType(type);
     this.DatePlaced = datePlaced;
 }
Beispiel #4
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A HoldStatus object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The type of hold being referenced."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void SetType(HoldStatus val)
 {
     SetField(LibraryDTD.HOLDINFO_TYPE, val);
 }
Beispiel #5
0
 ///<summary>Adds the value of the <c>&lt;HoldInfo&gt;</c> element.</summary>
 /// <param name="Type">The type of hold being referenced.</param>
 /// <param name="DatePlaced">The date that the patron placed the hold.</param>
 ///<remarks>
 /// <para>This form of <c>setHoldInfo</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddHoldInfo</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.1</para>
 /// </remarks>
 public void AddHoldInfo(HoldStatus Type, DateTime?DatePlaced)
 {
     AddChild(LibraryDTD.HOLDINFOLIST_HOLDINFO, new HoldInfo(Type, DatePlaced));
 }