Class PM_TemplateMaterials_bus

Properties

LOCAL cMainTable$="PM_TemplateMaterials"  

[string] Name of the table being maintained by this business object

LOCAL cIsSysDB=isFALSE  

[boolean] Flag to indicate whether main table is defined in the MAS_SYSTEM directory

LOCAL cDescriptionLength=30  

[numeric] Maximum description Length (hard wired to detemine when extended description applies)

LOCAL cItemTypes$=itmREGULAR$+itmSPECIAL$+itmMISC$  

[string] Override of CI_ItemCode_val property that identifies which item types to allow (excludes itmCHARGE$, itmCOMMENT$)

LOCAL cAllowPhantom=isFALSE  

[boolean] Override of CI_ItemCode_val property that identifies whether or not to allow phantom bills on material detail lines

LOCAL cAllowInactive=isFALSE  

[boolean] Override of CI_ItemCode_val property that identifies whether or not to allow inactive bills on material detail lines

LOCAL cAliasItemTypes$="VG"  

[string] to store the valid alias item types to allow substitution, used by CI_ItemCode_val

LOCAL cItemCodeDesc$="ItemCodeDesc"  

[string] to store the ItemCode description column name

LOCAL cNoUpdateUI=-1  

[numeric] flag utilized in SetPartialRecord() method calls to skip update of the UI control values

PROPERTY ExtDescUILink  

[boolean] Flag to indicate busObj is linked to PM_Template_UI used for maintaining extended descriptions

PROPERTY IMIntegrated   * Read Only *

[boolean] Flag to indicate IM is intergrated to PM, Used by CI_ItemCodeUI_Val to determine when to enable BT_ItemInquiry functionality

Methods

FUNCTION ApplyHeaderScaleMaterials(value$)  

Apply ScaleMaterials value (from header) to all materials detail records.

ParameterDescription
value$ [input, string] ScaleMaterials value to apply
Returns [boolean] Always returns success (1)
FUNCTION CalcBudgetMaterialsCost()  

Calculate the BudgetMaterialsCost from all material detail lines.

Returns [numeric] Calculated BudgetMaterialsCost
FUNCTION CopyTemplateMaterials(sourceTemplate$, sourceRevision$, sourceStep$)  

Method used to copy material detail records from another template

ParameterDescription
sourceTemplate$ [input, string] source TemplateNo to copy
sourceRevision$ [input, string] source RevisionNo to copy
sourceStep$ [input, string] source StepNo to copy
Returns [boolean] Always returns success (1)
FUNCTION CopyWorkTicketHistoryMaterials(srcWorkTicketKey$, srcWorkTicketStepLineKey$)  

Method used to copy material detail records from a WorkTicket in history

ParameterDescription
srcWorkTicketKey$ [input, string] source WorkTicketHistoryKey to copy
srcWorkTicketStepLineKey$ [input, string] source WorkTicketHistory Step LineKey to copy materials for
Returns [boolean] Always returns success (1)
FUNCTION CopyWorkTicketMaterials(srcWorkTicketKey$, srcWorkTicketStepLineKey$)  

Method used to copy material detail records from a WorkTicket

ParameterDescription
srcWorkTicketKey$ [input, string] WorkTicketKey of the source work ticket to copy
srcWorkTicketStepLineKey$ [input, string] Work Ticket Step LineKey to copy materials for
Returns [boolean] Always returns success (1)
FUNCTION GetContext$(destTable$)  

Get the contexts available for a table

ParameterDescription
destTable$ [input,string] table name
Returns [string] all contexts available for a given table
FUNCTION GetContextSourceTables$(context$)  

Get the source table for a context

ParameterDescription
context$ [input,string] context
Returns [string] source table for a given context
FUNCTION ReorderLines()  

Method to reorder material detail lines based upon the WorkTicketClass (on the TemplateHeader) PartSortOption

Returns [boolean] Always returns success (1), reorder is skipped when null WorkTicketClass
FUNCTION SetAlias(alias$, item$)  

Method needed in PM_CommonMaterialDetail_UI to execute FindAliasItem() method in IM_AliasItem_svc to set the ItemCode from an IM alias item code

ParameterDescription
alias$ [input, string] Alias ItemCode to set
item$ [input, string] ItemCode to set
Returns [boolean] success (1) If set alias passed, failure (0) if validation failed.
FUNCTION SetExtendedDescription(key$, desc$)  

Update the CI_ExtendedDescription table for the ExtendedDescription on the current materials detail record.

ParameterDescription
key$ [input, string] ExtendedDescriptionKey on the current materials detail record.
desc$ [input, string] ExtendedDescriptionText to update (or create when new)
Returns [boolean] Always returns success (1)
FUNCTION ValidateGroupBMIntegrated()  

Validates any field in the ValidationGroup = BMIntegrated, as specified in the dictionary.

Returns [boolean]
ValueDescription
retSUCCESS(1) If coHeader'IntegrateWithBM is true
retFAILURE(0) If coHeader'IntegrateWithBM is false
FUNCTION ValidateGroupItemRequired()  

Validates any field in the ValidationGroup = Required, as specified in the dictionary.

Returns [boolean]
ValueDescription
retSUCCESS(1) If ItemCode$ is not null
retFAILURE(0) If ItemCode$ is null
FUNCTION ValidateGroupPOIntegrated()  

Validates any field in the ValidationGroup = POIntegrated, as specified in the dictionary.

Returns [boolean]
ValueDescription
retSUCCESS(1) If coHeader'IntegrateWithPO is true
retFAILURE(0) If coHeader'IntegrateWithPO is false

Properties inherited from: CI_ItemCode_val

cItemTypes$, cAllowAliasItems, cAliasItemTypes$, cItemCodeDescCol$, cItemTypeCol$, cExtDescKeyCol$, ItemTypes$, AllowAliasItems, AliasItemTypes$, ExtendedDescriptionBusiness, ItemCodeDescCol$, AllowPhantom, AllowEngineering, AllowInactive, InvalidPurchase, IMIntegrated

Properties inherited from: PM_Constant

actClassEMPLOYEE$, actClassGENERAL$, actClassMACHINE$, actClassOUTSIDESVC$, capTimeNO$, capTimeNOEDIT$, capTimeYES$, earnTypeALLOCTIPS$, earnTypeEXCLUDETIPCALC$, earnTypeEXEMPTTIPS$, earnTypeFRINGE$, earnTypeMISC$, earnTypeOVERTIME$, earnTypeREGULAR$, earnTypeTAXABLETIPS$, earnTypeTIMEOFF1$, earnTypeTIMEOFF2$, earnTypeTIMEOFF3$, cAllEarningsTypes$, earnMethodADDAMOUNT$, earnMethodFIXED$, earnMethodSTANDARD$, cAllEarnMethods$, lttLABOR$, lttCREW$, lttMISC$, lttINOUT$, lttCOST$, dpcSTANDARD$, dpcAVERAGE$, dpcLAST$, overheadTypeAMOUNT$, overheadTypePERCENT$, prtPickNONE$, prtPickBYWHSE$, prtPickBYTICK$, tcmCodeACTUAL$, tcmCodeBUDGET$, tcmCodeSTANDARD$, tcmCodeLOWER$, tcmDescACTUAL$, tcmDescBUDGET$, tcmDescSTANDARD$, tcmDescLOWER$, trnLABOR$, trnMATERIALS$, trnCLOSE$, trnCOMPLETION$, trcSTATUS$, trcLABOR$, trcINVENTORY$, trcDIRECTCHARGE$, trcINVOICE$, trcCLOSE$, trcSCRAP$, udiSTRING$, udiNUMBER$, udiYESNO$, udiCODE$, udiDATE$, mftCodeSALESORDER$, mftCodeSALESORDERLINE$, mftCodeWORKTICKET$, mftCodeINVENTORY$, mftDescSALESORDER$, mftDescSALESORDERLINE$, mftDescWORKTICKET$, mftDescINVENTORY$, wtsOPEN$, wtsQUOTE$, wtsRELEASED$, wtsCLOSED$, wtsDELETED$, lbrIssMethodAUTOISSUE$, lbrIssMethodBACKFLUSH$, lbrIssMethodMANUAL$, matIssMethodAUTOISSUE$, matIssMethodBACKFLUSH$, matIssMethodMANUAL$, prtWORKTICKET$, prtOPERATIONTICKET$, prtCOMPLETEMISSINGCOST$, prtCOMPLETEVARFROMSTD$, prtCLOSEMISSINGCOST$, prtCLOSEVARFROMSTD$, prtCLOSECOSTLEDGER$, prtPICKSHEET$, drtBACKOUT$, drtADDIN$, drsNEW$, drsUPDATED$, drsCOMPLETED$, schFIXED$, schACTSPERHOUR$, schHOURSPERACT$, scaleNOSCALING$, scalePRODUCTIONRUN$, scalePARENTSPERTEMPLATE$, scaleTEMPLATESPERPARENT$, stepZERO$, dfltClosureWorkCenter$

Properties inherited from: SY_Customization

cDummyIol$

Properties inherited from: SY_LineEntryDetail_bus

cActivityLogDelete$, cActivityLogDtlLevel$, HeaderKy$, HeaderHasLines, ReloadGrid, ValidHeader, NumberOfLines

Methods inherited from: CI_ItemCode_val

Write(), PERFORM CheckForAlias(), PERFORM CheckUseIn(), CheckValidBill(), ClassOverrideDescription(), ClassOverrideItemCode(), ClassValidateDescription(), ClassValidateItemCode(), ItemTypeSetDefaults(), PERFORM ItemTypeSetDefaults(), UpdateGridExtendedDescKey(), ValidateGroupNotCurrentItemType()

Methods inherited from: PM_Constant

BuildAlternateIOL$(), BuildMemoryFile(), ConvertCalendarToJulian(), ConvertJulianToCalendar$(), FormatTime$(), HHMMToMinutes(), HHMMToNum(), LoadCustomLabelConstants(), NumToHHMM$(), TimeToHHMM()

Methods inherited from: SY_Customization

GetCustomizations(), PostTableRead(), PreNextRecord(), PreTableWrite()

Methods inherited from: SY_LineEntryDetail_bus

AccumulateBatchTotals(), AddIn(), AddLine(), AddPrimarySrc(), BackOut(), ClearBindings(), ClearLine(), ClearSetFiles(), CommitRow(), DeleteLine(), EditLine(), GetBatchTotalVars(), GetEditKey$(), GetInsertSeq$(), GetSequenceLengths(), InitWorkTable(), InsertLine(), QuickRowLoad(), RemovePrimarySrc(), ResequenceLine(), ResetLine(), ResetRow(), SetBatchTotalVars(), SetHeader(), SetKey(), SwapLines(), ValidateLines(), Write(), ClearSetFileDeleteWorkTable(), ClearSetFileWorkTable(), CommitRowRemove(), CommitRowWrite(), PostDeleteRec(), PostWriteRec(), RenumberSequence(), WriteWorkTable()