Share via


JmgEmployee::validateRegistrationWorker Method

This method validates whether the specified worker is a registration worker.

Syntax

client server public static boolean validateRegistrationWorker(
    JmgWorkerRecId _worker, 
   [boolean _activeRegistrationWorkersOnly, 
    JmgProfileDate _activeFromDate, 
    boolean _timecardWorkersOnly])

Run On

Called

Parameters

  • _activeRegistrationWorkersOnly
    Type: boolean
    true if the specified worker must be an active registration workers; otherwise, the default value is false.
  • _timecardWorkersOnly
    Type: boolean
    true if the specified worker must be able to use the electronic timecard; otherwise, the default value is false.

Return Value

Type: boolean
true if the specified worker is a registration worker; otherwise, false.

Remarks

A worker is considered a registration worker if a record exists in the JmgEmployee table for the worker. A worker is considered an active registration worker 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. A worker is considered an electronic timecard worker if the UseTimecard field on the JmgEmployee record is set to NoYes::Yes.

See Also

Reference

JmgEmployee Table