Class PM_Employee_bus

Properties

LOCAL cMainTable$="PM_Employee"  

[string] Main table name

LOCAL cIsSysDB=isFALSE  

[boolean] Flag to indicate whether the main table is a system table

LOCAL cPrimaryIndex$="kEMPLOYEE"  

[string] alternate key to use

PROPERTY IntegratePR$   * Read Only *

P/M setup option 'Integrate with Payroll'

PROPERTY PMDataEntryInProcess   * Read Only *

[boolean] Flag to indicate whether production management labor entry is in process

Methods

FUNCTION CheckEmployeeInDataEntry(empKey$, where$)  

Checks if employee exists in labor crew or labor entry

ParameterDescription
empKey$ [input, string] employee key
where$ [output, string] where is the employee found
Returns [boolean] retSUCCESS(1) if employee is found, retFAILURE(0) if employee is not found
FUNCTION ConfirmDelete()  

Verifies employee is not active and can be deleted

Returns [boolean] retSUCCESS(1) if employee can be deleted, retFAILURE(0) if employee is in use
FUNCTION Delete(key$)  
FUNCTION Delete(key$, forceDelete)  

Deletes employee record

ParameterDescription
key$ [input, string] employee number to delete
forceDelete {optional} [input, boolean] if true, delete employee ignoring the Integrate Payroll setup option
Returns [boolean] retSUCCESS(1) if employee is successfully deleted, retFAILURE(0) if employee cannot be deleted
FUNCTION SetCurrentKey(key$)  

Sets key in current record

ParameterDescription
key$ [input, string] department number + employee number or employee key depending on index used
Returns [boolean] retSUCCESS(1) or retFAILURE(0)
FUNCTION SynchClear()  

Synchronization Function to clear the contents of the employee table.

Returns Always returns retSUCCESS(1)
FUNCTION SynchData()  
FUNCTION SynchData(empKey$)  

Synchronization Function to copy employee records from the Payroll Employee table to the Production Management Employee table. The employee table in Production Management only has a subset of fields from Payroll. param empKey$ {optional}[string, input] employee key to copy from payroll

Returns Always returns retSUCCESS(1)
FUNCTION ValidateGroupPMChangeInPR()  

Validates fields belonging to the PMChangeInPR validation group. Disallows change if PM is integrated to PR.

Returns [boolean] retSUCCESS(1) or retFAILURE(0)

Properties inherited from: CI_MFGEarningsCode_val

cEarningMustExistInPayroll, cEarningPayrollIntegrated, EarningMustExistInPayroll

Properties inherited from: SY_Maint

cActionWrite, cActionDelete, cActivityLogFilePrefix$, DocDateWarnDisplayed, DocDateWarnStatus, EditState, RecordChanged, FirstFailure$, DocumentTotal, ReadOnlyReason$, UDTValidation$, ViewOnly, CurrentPrecision, DocDateWarnForceOff, DocDateWarnObject, ScriptObject, ImportTest, SkipNullCheck$, AFSRequiredFields$

Methods inherited from: CI_Country_val

ClassValidateCountry()

Methods inherited from: CI_MFGDepartment_val

ClassValidateMFG_Department()

Methods inherited from: CI_MFGEarningsCode_val

ClassValidateMFG_EarningsCode(), ValidateEarningInPayroll()

Methods inherited from: CI_State_val

ClassValidateState()

Methods inherited from: CI_ZipCode_val

ClassValidateZIPCode()

Methods inherited from: PM_EmployeeBrowse

MoveFirst(), MoveLast(), MoveNext(), MovePrevious()

Methods inherited from: SY_FunctionHook

PostTableRead(), PreNextRecord(), PreTableWrite()

Methods inherited from: SY_Maint

ChangedRecordCompare(), ChangedRecordInfo(), Clear(), ClearRecord(), ConfirmDelete(), CopyFrom(), ExportToCSV(), GetColumnInfo(), GetColumnProperties$(), GetDefaults(), GetOrigRecord$(), GetPropertyValue(), GetValidationGroups$(), ResetDocDateWarnState(), SetCopyKeyValue(), SetDocDateWarnDisplayed(), SetDocDateWarnOff(), SetKey(), SetKeyValue(), SetPartialRecord(), SetRecord(), SetToReadOnly(), SetValue(), SetValues(), Write(), ActivityLogCreateFile(), ActivityLogPrepare(), ActivityLogSetMessage$(), ActivityLogWrite(), CallScript(), CheckForAdvancedFieldSettings(), CheckForScripts(), CheckNullRequiredField(), PERFORM ChildValidate(), ClassValidateDate(), ClassValidateTelephoneNo(), ClearSetFiles(), ColInfoInitAll(), ColInfoInitDefaults(), CommitRow(), GetPropertyCommon(), InitColInfo(), InitScriptEngine(), InitSearchForUpdate(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), PreWriteScripts(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()