Class PM_Department_Bus

Properties

LOCAL cMainTable$="PM_Department"  

Main table name

LOCAL cIsSysDB=isFALSE  

Is the main table a system table?

PROPERTY DepartmentNoLen   * Read Only *

Length of the Department Number field

PROPERTY IntegratePR$   * Read Only *

P/M Setup option 'Integrate Payroll'

Methods

FUNCTION CanDelete(deptNo$)  

Determines if a department can be deleted

ParameterDescription
key$ [input, string] department number
Returns [boolean] retSUCCESS(1) if department has no employees and can be deleted, otherwise retFAILURE(0)
FUNCTION Delete(key$)  
FUNCTION Delete(key$, forceDelete)  

Deletes a department

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

Sets key in current record

ParameterDescription
key$ [input, string] department number
Returns [boolean] retSUCCESS(1) or retFAILURE(0)
FUNCTION SynchClear()  

Synchronization Function to clear the contents of the department table

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

Synchronization Function to copy department records from the Payroll Department table to the Production Management Department table param deptNo$ {optional}[string, input] department number to copy from payroll

Returns Always returns retSUCCESS(1)

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_Account_Val

ClassOverrideAccount(), ClassValidateAccount(), ResetAccountIndex()

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()