This returns the next n dates on which the run allocated to the charge, is sheduled to service bins.
o.getnextndatesforroute( tcChargeID , tnServices, tddate, tcCursor)
Return Value
The number of dates found
Parameters
tcChargeID
The charge id for which the next N operating dates for the assigned routes are required.
tnServices
The number of operating dates required
tddate
The date from which to retrieve these dates
tcCursor
The name of the internal cursor to store the results
Remarks
This function returns the next n dates that a charge can be assigned to. This method
is different to GetNextNServices in that it does not return only the scheduled service
dates but all the dates that the run that this charge is assigned to operates. Hence
the charge may be an every fortnight service however if the route that it's assigned
to runs every day then this method will return dates for every day. Hence this
method is useful for working out when you could schedule this charge if they wanted
a ring in service.
The structure of the list returned is as follows;
ChargeID c(10) - Charge ID of scheduled Charge
route_num c(5) - Route number assigned
date Date - Date of service
Example
o.GetNextNDatesForRoute("CH234234",12,{01/07/2003},"scheduled")
The above would;
1. Retrive the next 12 service dates for routes that service the charge "CH234234"
as of the 01/07/2003
2. Place this list in the internal cursor "Scheduled"
3. Place the list in the collection o.oRows
See also:
Class rp_charges