|
FUNCTION AccumulateTotalsforHistoryRecords(companyCode$) |
Accumulate totals for history records
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION AddInHistoryLine(workTicket$, historySeq$, lineRec$, lineIOL$) |
Add In Work Ticket Detail (Materials) to history
|
| Parameter | Description |
| workTicket$ |
[input, string] work ticket key |
| historySeq$ |
[input/output, string] history sequence number of record |
| lineRec$ |
[input, string] detail record data |
| lineIOL$ |
[input, string] detail IOList |
|
| Returns |
[boolean] True, always returns success |
|
|
FUNCTION ConvertWO0ToPM_Options(companyCode$) |
Convert the WO0 table to the PM_Options table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWO0ToPM_WorkTicketClass(companyCode$) |
Convert the WO0 table to the PM_WorkTicketClass table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWO1ToPM_WorkTicketHeader(companyCode$) |
Convert the WO1 table to the PM_WorkTicketHeader table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWO2ToPM_WorkTicketDetail(companyCode$, WO1$, firstDetailLink) |
Convert the WO2 table to the PM_WorkTicketDetail table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
| WO1$ |
[input, string] WO1 record string |
| firstDetailLink |
[input, string] WO1 link to first detail record for the Work Order |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWO3ToPM_WorkTicketStep(companyCode$, WO1$) |
Convert the WO3 table to the PM_WorkTicketStep table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
| WO1$ |
[input, string] WO1 record string |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWO5ToPM_Template(companyCode$) |
Convert the WO5 table to the PM_Template table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWO9ToPM_TransactionHistory(companyCode$) |
Convert the WO9 Table to thePM_TransactionHistory table.
Creates records in PM_TransactionLotSerialHistory, PM_WorkTicketTierDistribution and PM_LaborHistory if necessary
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOAToPM_WorkCenter(companyCode$) |
Convert the WOA table to the PM_WorkCenter table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOBToPM_ActivityCode(companyCode$) |
Convert the WOB table to the PM_ActivityCode table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOCToPM_Template(companyCode$) |
Convert the WOC table to the PM_Template table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOEToPM_WorkCenterClosure(companyCode$) |
Convert the WOE table to the PM_WorkCenterClosure table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOFToPM_ToolCode(companyCode$) |
Convert the WOF table to the PM_ToolCode table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOGToPM_Department(companyCode$) |
Convert the WOG table to the PM_Department table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOGToPM_Employee(companyCode$) |
Convert the WOG table to the PM_Employee table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOHToPM_LaborCrewHeaderAndDetail(companyCode$) |
Convert the WOH table to the PM_LaborCrewHeader table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOPToPM_TemplateMemo(companyCode$) |
Convert the WOP table to the PM_TemplateMemo table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION ConvertWOPToPM_WorkTicketMemo(companyCode$) |
Convert the WOP table to the PM_WorkTicketMemo table.
|
| Parameter | Description |
| companyCode$ |
[input, string] Company to convert |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION CreateCompanyBatchOptions(companyCode$) |
Create the company batch options records
|
| Parameter | Description |
| companyCode$ |
[input, string] Company code |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION CreateCompanyPMDefaultRecords(companyCode$) |
Create the company P/M Default Records in various tables not converted
|
| Parameter | Description |
| companyCode$ |
[input, string] Company code |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION UpdateAdditonalTables(companyCode$) |
Update PM Template in additional tables
|
| Parameter | Description |
| companyCode$ |
[input, string] Company code |
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION WO_CONVERT_TO_PM() |
Run the data conversion for the WO module.
|
|
|
| Value | Description |
| retFAILURE |
(0) - an error was encountered |
| retSUCCESS |
(1) - conversion completed normally |
|
|
FUNCTION WriteTemplateMemo(memoSourceDevString$, memoChnSrc, memoChnDest, destFile$, encryptCols$, sequenceNoColLength) |
Write Template Memo record to PM_TemplateMemo
|
| Parameter | Description |
| memoSourceDevString$ |
[input, string] WOP Developer string |
| memoChnSrc |
[input, file handle] source file handle (WOP) |
| memoChnDest |
[input, file handle] destination file handle (PM_TemplateMemo) |
| destFile$ |
[input, string] destination file name (PM_TemplateMemo) |
| encryptCols$ |
[input, string] list of encrypted columns in destination file |
|
#param sequenceNoColLength [input, numeric] column length for SequenceNo$ column
|
|
|
| Value | Description |
| retSUCCESS |
(1) - success |
|
|
FUNCTION WriteWorkTicketMemo(memoSourceDevString$, memoChnSrc, memoChnDest, destFile$, encryptCols$, sequenceNoColLength) |
Write WorkTicket Memo record to PM_WorkTicketMemo and PM_WorkTicketHistMemo
|
| Parameter | Description |
| memoSourceDevString$ |
[input, string] WOP Developer string |
| memoChnSrc |
[input, file handle] source file handle (WOP) |
| memoChnDest |
[input, file handle] destination file handle (PM_WorkTicketMemo or PM_WorkTicketHistMemo) |
| destFile$ |
[input, string] destination file name (PM_WorkTicketMemo or PM_WorkTicketHistMemo) |
| encryptCols$ |
[input, string] list of encrypted columns in destination file |
|
#param sequenceNoColLength [input, numeric] column length for SequenceNo$ column
|
|
|
| Value | Description |
| retSUCCESS |
(1) - success |
|