PayeeRates Collection

Manages the maintenance of a collection of PayeeRate objects.
Property Description
Count Long - the number of items in the collection
Find(Index) Object - reference to the first object in the collection, with an effective date less than or equal to the date in Index. A reference to a new empty object is returned if no objects exist with an earlier effective date.
IsDirty Boolean - true if any of the objects in the collection have been edited and not yet saved.
Item(Index) Object - reference to a specific object in the collection, referenced by Index. If Index is numeric, it is the sequential number of the item in the collection, otherwise it is the alphanumeric key of an item. An error is generated if the item referenced by Index does not exist.

The collection methods provide the means to add and delete objects from the collection, and load a complete collection from the database tables.

Method Description
Add(Object) Adds the object to the collection. The key of the object is generated as the object database Id property concatonated with "K" to make it alphanumeric.
Clear Removes all objects from the collection.
FetchRS(Server, Connection, Criteria) returns an ADO recordset containing the payee rate details records that match the Criteria string.
Load(Server, Connection, PayeeId) Loads all leave detail items for the specified PayeeId in the database into this collection.
LoadRS(rsPayeePropertiesl) Loads all payee rate items in the recordset passed into this collection.
Remove(Index) Flags the specified object for deletion. An error is generated if an object is not found for the specified Index