File Name
Syntax
AddPlannedOrCompletedEvent(REF is_inventory_id: INTEGER, REF asset_tag: STRING, VAL mode: STRING, VAL wHdl: WINDOW, VAL fieldName: STRING, VAL formFile: STRING, VAL formName: STRING, REF plannedList: LIST OF HistViewRec, REF histList: LIST OF HistViewRec, REF historyBeforeList: LIST OF Inventory_HistoryRec, REF historyAfterList: LIST OF Inventory_HistoryRec, VAL contractNbrList: LIST OF ContractViewRec, VAL assetcontractlist: LIST OF ContractRec )
Parameters
is_inventory_id - ID for current asset
asset_tag - asset tag of current asset
mode - current mode (add, edit, view)
whdl - parent window handle
fieldName - name of field on form
formFile - file name where current form is located
formName - name of current form
plannedList - list of planned events for selected asset
histList - list of planned and completed events for selected asset
historyBeforeList - old list of planned and completed events for selected asset
historyAfterList - new list of planned and completed events for selected asset
contractNbrList - list of contracts associated with the selected asset
assetcontractlist - list of contract records that are associated with the selected asset
Returns
Nothing
Side Effects
None
Description
Routine for adding a planned or completed event. This routine is called both from the Asset dialog box as well as the Work With Events dialog box.
Dialog Forms Called
evnt.dfc[eventsform]
File Name
Syntax
DeleteEvent(VAL wHdl: WINDOW, VAL formFile: STRING, VAL formName: STRING, REF plannedList: LIST OF HistViewRec, REF histList: LIST OF HistViewRec, REF historyAfterList: LIST OF Inventory_HistoryRec)
Parameters
whdl - parent window handle
formFile - filename where form is located
formName - name of current form
plannedList - list of planned events for selected asset
histList - list of planned and completed events for selected asset
historyAfterList - updated list of planned and completed events for the selected asset
Returns
Nothing
Side Effects
None
Description
Routine to delete a planned event. Only planned events can be deleted. This routine is called from the Asset dialog box and also from the Work With Events dialog box.
Dialog Forms Called
None
File Name
Syntax
EditOrViewEvent(VAL wHdl: WINDOW, VAL fieldName: STRING, VAL mode: STRING, REF plannedList: LIST OF HistViewRec, REF historyAfterList: LIST OF Inventory_HistoryRec, VAL assetcontractlist: LIST OF ContractRec )
Parameters
whdl - parent window handle
fieldName - name of current field on form
mode - current mode (add, edit, view)
plannedList - list of planned events for asset
historyAfterList - new list of planned and completed events for asset
assetcontractlist - list of contract records associated with selected asset
Returns
Nothing
Side Effects
None
Description
Routine for editing or viewing a planned or completed event. This routine is called both from the Asset dialog box and from the Work With Events dialog box.
Dialog Forms Called
evnt.dfc[eventsform]
File Name
Syntax
EventPageEvent (REF thisEvent: anEventInstRec)
Parameters
thisEvent - instance data used for EventPageEvent
Returns
Nothing
Side Effects
None
Description
Event handling routine for the Event Details dialog box. This dialog box can be invoked from the Asset dialog box when the user chooses to add/edit/view a planned or completed event. This dialog box is also invoked from the toolbar.
Dialog Forms Called
None
File Name
Syntax
None
Parameters
FillContractList
Returns
None
Side Effects
None
Description
Fills the contract number combo box. This routine is called during msgCreate when this dialog box is invoked from the Asset dialog box. This routine is also called when the SELECT_WW_ASSET message is received. This occurs when the Asset dialog box is invoked from the Work With Events dialog box after the user selects an asset tag for the new event.
Dialog Forms Called
None
File Name
Syntax
HistView2Hist(VAL in: HistViewRec)
Parameters
in - historyviewrec that needs to be converted to an inventory_history rec
Returns
inventory_historyrec
Side Effects
None
Description
This function is used to convert a HistViewRec record to an Inventory_HistoryRec.
Dialog Forms Called
None
File Name
Syntax
MarkEventComplete(VAL wHdl: WINDOW, VAL parentFormFile: STRING, VAL parentFormName: STRING, REF plannedList: LIST OF HistViewRec, REF histList: LIST OF HistViewRec, REF historyBeforeList: LIST OF Inventory_HistoryRec, REF historyAfterList: LIST OF Inventory_HistoryRec, VAL contractNbrList: LIST OF ContractViewRec)
Parameters
whdl - parent window handle
parentFormFile - file name where form is located
parentFormName - name of current form
plannedList - list of planned events for selected asset
histList - list of planned and completed events for selected asset
historyBeforeList - old list of planned and completed events for selected asset
historyAfterList - new list of planned and completed events for selected asset
contractNbrList - list of contracts associated with selected asset
Returns
Nothing
Side Effects
None
Description
Routine to mark a planned event as completed. This routine is called both from the Asset and from the Work With Events dialog boxes when planned events are marked as complete.
Dialog Forms Called
evnt.dfc[eventsform]
File Name
Syntax
RequestWorkWithEvents(VAL wHdl: WINDOW)
Parameters
whdl - parent window handle
Returns
Nothing
Side Effects
None
Description
System action that invokes the Work With Events dialog box.
Dialog Forms Called
evnt.dfc[workwithevents]
File Name
Syntax
SetEventPageButtons(VAL plannedList: LIST OF HistViewRec, VAL histList: LIST OF HistViewRec, VAL wHdl: WINDOW, VAL formFile: STRING, VAL formName: STRING)
Parameters
plannedList - list of planned asset events
histList - list of planned and completed events
whdl - parent window handle
formFile - file name of current form
formName - name of current form
Returns
Nothing
Side Effects
None
Description
This procedure sets the Events tab buttons. This routine is called from the add/edit/delete/mark event routines. It is also called from the SetEventsPage routine when the Events tab is loaded for the Asset dialog box. It is also called from the SetEventsPage routine when the Work With Events dialog box is loaded.
Dialog Forms Called
None
File Name
Syntax
SetEventsPage(VAL wHdl: WINDOW, VAL where: STRING, VAL formFile: STRING, VAL formName: STRING, VAL eeInvEffect: INTEGER, REF plannedList: LIST OF HistViewRec, REF histList: LIST OF HistViewRec)
Parameters
whdl - parent window handle
formFile - file name where current form is located
formName - name of current form
eeInvEffect -
plannedList - list of planned events for an asset
histList - list of planned and completed events for an asset
Returns
Nothing
Side Effects
None
Description
Routine is used to set/populate the Events tab of the Asset dialog box. This routine also populates the Work With Events dialog box. Currently, the Work With Events dialog box does not have a completed events list box.
Dialog Forms Called
evnt.dfc[event_buttons_nb]
File Name
Syntax
WorkWithEvents(REF WWEventsData: WWEventsInstRec)
Parameters
WWEventsData - instance data for this event handler
Returns
Nothing
Side Effects
None
Description
Event handling routine for working with events. This is the routine that is invoked from the Work With Events system action.
Dialog Forms Called
None