Class PM_WorkTicketHistory

Known SubClasses

PM_WorkTicket_bus

Properties

PROPERTY HistoryUpdated   * Read Only *

[boolean] True/False flag to indicate when a work ticket has been updated in history

PROPERTY WorkTicketInHistory   * Read Only *

[boolean] True/False flag to indicate whether a work ticket exists in the history table

PROPERTY WorkTicketLineInHistory   * Read Only *

[boolean] True/False flag to indicate whether a work ticket line exists in the history detail table

Methods

FUNCTION AddInHistoryLine(workTicket$, historySeq$, lineRec$, lineIOL$)  

Add In Work Ticket Detail (Materials) to history

ParameterDescription
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 AddInHistoryStep(stepRec$, stepIOL$)  

Add In Work Ticket Step to history

ParameterDescription
stepRec$ [input, string] step record data
stepIOL$ [input, string] step IOList
Returns [boolean] True, always returns success
FUNCTION BackOutHistoryLine(workTicket$, historySeq$, fromDelete, rowStatus$)  

Back Out Work Ticket Detail (Materials) from history

ParameterDescription
workTicket$ [input, string] work ticket key
historySeq$ [input/output, string] history sequence number of record
fromDelete [input, boolean] true when method called from delete logic
rowStatus$ [input, string] row status of line, N-New line, M-Modified, R-Renumbered
Returns [boolean] True, always returns success
FUNCTION BackOutHistoryLineDeleteStep(workTicket$, historySeq$, fromDelete, newStepLKey$, rowStatus$)  

Back Out Work Ticket Detail (Materials) from history when deleting a step

ParameterDescription
workTicket$ [input, string] work ticket key
historySeq$ [input/output, string] history sequence number of record
fromDelete [input, boolean] true when method called from delete logic

@prarm newStepLKey$ [input, string] new step line key

ParameterDescription
rowStatus$ [input, string] row status of line, N-New line, M-Modified, R-Renumbered
Returns [boolean] True, always returns success
FUNCTION BackOutHistoryStep(stepRec$, stepIOL$, fromDelete, newStepLKey$, rowStatus$)  

Back Out Work Ticket Step from history

ParameterDescription
stepRec$ [input, string] step record data
stepIOL$ [input, string] step IOList
fromDelete [input, boolean] is the method called while deleting a step record? 1=True, 0=False
newStepLKey$ [input, string] new step line key (if applicable)
rowStatus$ [input, string] row status of line, N-New line, M-Modified, R-Renumbered
Returns [boolean] True, always returns success
FUNCTION CheckForHistoryLine(workTicket$, historySeq$)  

Check For History Line

ParameterDescription
workTicket$ [input, string] work ticket key
historySeq$ [input, string] work ticket history line sequence number
Returns [boolean] True if line is in history, False if not
FUNCTION UpdateDetailLineDescription(workTicket$, historySeq$, itmDesc$, extDescKey$)  

Update Work Ticket Detail Line Description (Materials)

ParameterDescription
workTicket$ [input, string] work ticket key
historySeq$ [input, string] work ticket history line sequence number
itmDesc$ [input, string] item code description
extDescKey$ [input, string] extended description key
Returns [boolean] True, always returns success
FUNCTION LOCAL CheckForHistory(workTicket$)  

Check if a work ticket is in history table

ParameterDescription
workTicket$ [input, string] Work Ticket number to check for
Returns [boolean] True if work ticket number is in history, False if it is not
FUNCTION LOCAL DeleteWorkTicketHistory(workTicketRec$, workTicketIOL$)  

Delete work ticket from history

ParameterDescription
workTicketRec$ [input, string] work ticket record data.
workTicketIOL$ [input, string] work ticket IOList.
Returns [boolean] True, always returns success
FUNCTION LOCAL WriteWorkTicketHistory(workTicketRec$, workTicketIOL$)  

Write work ticket into history

ParameterDescription
workTicketRec$ [input, string] work ticket record data.
workTicketIOL$ [input, string] work ticket IOList.
Returns [boolean] True if successful, False if method fails