JmgEmployee::lookupRegistrationWorker Method
Performs a lookup of the workers that are created as registration workers.
Syntax
client server public static void lookupRegistrationWorker(
FormControl _formControl,
[boolean _activeRegistrationWorkersOnly,
JmgProfileDate _activeFromDate,
boolean _timecardWorkersOnly])
Run On
Called
Parameters
- _formControl
Type: FormControl Class
The form control for which the lookup is performed.
- _activeRegistrationWorkersOnly
Type: boolean
A Boolean value that indicates whether only active registration workers are to be displayed in the lookup; optional.
- _activeFromDate
Type: JmgProfileDate Extended Data Type
The date for which to check whether the worker is active as a registration worker; optional.
- _timecardWorkersOnly
Type: boolean
A Boolean value that indicates whether only registration workers who are allowed to use the electronic timecard should be displayed; optional.
Remarks
The lookup is based on the lookup that is provided by the HcmWorkerLookup class.
A worker is included in the lookup if a record exists in the JmgEmployee table for the worker.
If the _activeRegistrationWorkersOnly parameter is set, a worker is included on the lookup if the Active field on the JmgEmployee record is set to NoYes::Yes, and if the ActiveFrom field on the JmgEmployee record is a date before the specified _activeFromDate parameter.
If the _timecardWorkersOnly parameter is set, a worker is included in the lookup if the UseTimecard field on the JmgEmployee record is set to NoYes::Yes.