Class JC_CostCodeDetail_bus

Properties

LOCAL cMainTable$="JC_CostCodeDetail"  

Table maintained by business object

LOCAL cIsSysDB=isFALSE  
System file identifier
PROPERTY HeaderKey$   * Read Only *
Header key value
PROPERTY RateMask$   * Read Only *
Bill rate mask
PROPERTY PriceMask$   * Read Only *
Price mask

Methods

FUNCTION ActivateRow(type$, isActive)  

Logic to execute when checkbox active is pressed

ParameterDescription
type$ [input, string] cost type to activate
isActive [input, numeric] 1 for active, 0 for inactive
Returns [boolean] always true
FUNCTION CheckActive(key$)  

Logic to check if cost type is active

ParameterDescription
key$ [input, string] key value
Returns [boolean] True if active, false if not active
FUNCTION GetCostTypeList(value$, costTypeList$, costTypeDescList$)  

Logic to get the activated cost type list

ParameterDescription
value$ [input, string] value of cost code
costTypeList$ [output, string] list of activated cost types
costTypeDescList$ [output, string] list of cost type descriptions
Returns [boolean] always true
FUNCTION LoadPhantomRecords()  

Logic to execute when loading all cost types into memory channels

Returns [boolean] always true
FUNCTION LoadPhantomRecords(overWriteRecords)  

Logic to execute when loading all cost types, clears existing records first

Returns [boolean] always true
FUNCTION PassHeaderKey(key$)  
FUNCTION PassHeaderKey(key$, entity$, displayKey$)  

Logic to pass in header key value

ParameterDescription
key$ [input, string] header key
entity$ {optional} [input, string] entity name
displayKey$ {optional} [ input, string] display key
Returns [boolean] always true
FUNCTION ReadZeroRecords(rtnRecord$, rtnIOList$)  

Logic to get record and iolist when loading row

ParameterDescription
rtnRecord$ [output, string] value of current record
rtnIOList$ [output, string] detail record iolist
Returns [boolean] True if successful, false if failure
FUNCTION ResetRow(key$)  

Recalls the data from the physical table for the given key. This totally overrides the base class function in SY_Maint as it needs to protect the line sequencing in the ExecutionOrder variable. If the record does not exist in the physical table it will be removed from the working table, as it does in line entry.

ParameterDescription
key$ [input, string] The key to the record to reset. All data except the ExecutionOrder will be recalled from the physical table.
Returns [boolean] always true
FUNCTION SetFilter(whereClause$, restrictKey$)  

Logic to execute when reading detail records by header key value

ParameterDescription
whereClause$ [input, string] filter conditions
restrictKey$ [input, string] restrict key value
Returns [boolean] always true
FUNCTION SetHeader(headerKey$)  

Sets header key for the selected user

ParameterDescription
headerKey$ [input, string] key field
Returns [boolean] always true

Properties inherited from: JC_Constant

postingTypeDIRECTCOST$, postingTypeBILLING$, postingTypeCASHRECEIPT$, lineTypeCOSTCODE$, lineTypeCHARGE$, lineTypeCOMMENT$, jobCERTIFIEDPAYROLLFORMS$, jobTranTypeCHANGEORDER$, jobTranTypeBILL$, jobTranTypeCOST$, jobDetailTypeCHANGEORDER$, jobDetailTypeCOST$, jobDetailTypeINVOICE$, jobDetailTypePAYMENT$, jobAcctMethodCOMPLETED$, jobAcctMethodPERCENTAGE$, recognizeWIPMethodACTUALCOST$, recognizeWIPMethodESTIMATEPERCENT$, jobStatusBID$, jobStatusOPEN$, jobStatusCOMPLETE$, jobStatusLATE$, jobStatusHOLD$, jobStatusCLOSED$, cAllJobStatusCodes$, cAllJobStatusDesc$, costTypeBURDEN$, costTypeEQUIPMENT$, costTypeLABOR$, costTypeMATERIAL$, costTypeOVERHEAD$, costTypeSUBCONTRACT$, cStandardCostTypes$, cStandardCostTypesDesc$, costCodeStatusALL$, costCodeStatusORIGINAL$, costCodeStatusREVISED$, costCodeStatusNONE$, billMethodNONBILLABLE$, billMethodFIXED$, billMethodTIMEMATERIAL$, billMethodDescNONBILLABLE$, billMethodDescFIXED$, billMethodDescTIMEMATERIAL$, pricingMethodNONBILLABLE$, pricingMethodUNITPRICE$, pricingMethodPERCENTCOSTMARKUP$, overheadBasisDAILY$, overheadBasisMONTHLY$, overheadBasisNONE$, estItemITEM$, estItemASSEMBLY$, estLineREGULAR$, estLineMISC$, estLineCOMMENT$, estLineSUBTOTAL$, estLineTOTAL$, estLineValueMISC$, estLineValueCOMMENT$, estLineValueSUBTOTAL$, estLineValueTOTAL$, estMarkupPERCENT$, estMarkupAMOUNT$, estMarkupOVERRIDE$

Properties inherited from: SY_Maint

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

Properties inherited from: SY_MaintSet

FileChanged

Methods inherited from: CI_Account_val

ClassOverrideAccount(), ClassValidateAccount(), ResetAccountIndex()

Methods inherited from: CI_CostCodeFormatter

FormatCostCode()

Methods inherited from: JC_Constant

CalculateJobTotals(), CalculateUnitPrice()

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(), InitWorkTable(), IsColInIOList(), IsValid(), LoadColInfo(), OpenMainTable(), ParseExtField(), RemoveColToSkip(), ResetRow(), RetrieveColInfo(), SetDefaults(), SetFilter(), SetMode(), SetParentHandle(), SetValueNoValidate(), StoreColToSkip(), ValidateAll(), ValidateAllRecord(), ValidateColInfo(), ValidateRule()

Methods inherited from: SY_MaintSet

ClearSetFiles(), CommitRow(), QuickRowLoad(), ResetRow(), SeedDetailRow(), SetFilter(), SetMode()