Class PM_LaborCrew_svc

Inherits

SY_Service

Properties

LOCAL cMainTable$="PM_LaborCrewHeader"  

[string] Main table for class

LOCAL cIsSysDB=isFALSE  

[boolean] value denoting whether the main table is a system table

Methods

FUNCTION ValidateCrewEmployees(crew$)  
FUNCTION ValidateCrewEmployees(crew$, removeDtl)  

Function validates that all the employees on a particular crew code are still on file in the employee table. Also, counts the employees.

ParameterDescription
crew$ [input, string] Crew code to verify that employees exist
removeDtl [input, boolean] {optional} Flag to indicate to remove any offending employee records in the labor detail.
Returns [boolean]
ValueDescription
retSUCCESS(1) crew code exists and all the employees are on file
reFAILURE(0) Either the crew code is missing or one or more of the employees on the crew are not on file or crew has no employees.

Properties inherited from: SY_Service

BOF, CurrentBrowseIndex$, CurrentIndex$, EOF, SecurityAccess

Methods inherited from: SY_Service

BindVariable(), CheckMainTable(), Clear(), Find(), FindById(), GetChildHandle(), GetChildKeyReference$(), GetColumns$(), GetDataSources$(), GetDataSourcesAddl$(), GetJson$(), GetKey$(), GetKeyColumns$(), GetKeyPadded$(), GetPartialRecord(), GetRecord(), GetRecordCount(), GetRecordEx(), GetResultSets(), GetTable$(), GetTablePath$(), GetValue(), GetValues(), IsValid(), MoveFirst(), MoveLast(), MoveNext(), MovePrevious(), ReadAdditional(), SetBrowseFilter(), SetBrowseIndex(), SetCacheMode(), SetIndex(), SetKeyValue(), SetParentColumns(), SetParentHandle(), SetUIHandle(), PERFORM ClearEditRcd(), FormatJson$(), GetAddlDataSources(), GetDateColumns$(), InitChildCollection(), MoveFirstLast(), MoveNextPrevious(), OpenMainTable(), ParseKeyDef(), PrepareKeyDef(), ReadRec(), ResolveColumnList$(), SetControls(), SetCurrentKey(), UseKeyColl()