PayslipItems Collection

Manages the maintenance of a collection of PayslipItem objects.
Property Description
Count Long - the number of items in the collection
FetchRs (Server, Connection, Criteria) ADO recordset - Returns a recordset containing records selected with the Criteria.
Find (PayItemId, CostCodeId) PayslipItem object - Returns the first payslip item in the collection which has the payitemid and costcodeid specified. If no item exists, a new empty item is returned..
GotCalcMethod (CalcMethod) Boolean - true if there is a payslip item in the collection with the specified calc method.
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.
Payslip (Payslip) Payslip object - crates a refererence to the payslip item's parent payslip object.

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
AddItem (Object) Inserts the object to the collection in the sequence of payitem priority. The key of the object is generated as the object database Id property concatonated with "K" to make it alphanumeric.
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.
ApplyEdit (Server, Connection, PayslipId, PayGroupId, PayeeId, PayDate) Saves all items in the collection to the database.
Clear Removes all objects from the collection.
LeaveItems (Server, Connection, Id, FromDate, ToDate) Loads into this collection, all the leave taken payslip items that have the specified leavetype id, and a start date on or after the from date and on or before the to date.
Load (Server, Connection) Loads all items in the database into this collection.
LoadNormal (Server, Connection, PayeeId, PeriodEnd, PayslipId) Loads all items for the normal payslip for the specified Payee id and period end date into this collection.
LoadPayDate (Server, Connection, PayType, PayDate, PayItemId) Loads all items for the specified pay type, pay date and pay item id into this collection.
Remove(Server, Connection, Index) Deletes the database record for the specified object. An error is generated if an object iis not found for the specified Index