File Name
Syntax
ChangePOCField( VAL wHdl: WINDOW, VAL nameField: STRING, VAL phoneField: STRING, VAL nextField: STRING, REF thisDisplay: BrowsePeopleListRec )
Parameters
wHdl - parent window handle
nameField - dialog control name of POC name
phoneField - dialog control name of POC phone
nextField - next field to set control to
thisDisplay - BrowsePeople instance data record that
contains person information related to the current contract
Returns
Integer for success or failure
Side Effects
None
Description
This routine controls the POC name and phone fields. The name and phone fields will be filled with the correct person information if the matching record is found. Both fields will be cleared if a matching record is not found.
Dialog Forms Called
None
File Name
Syntax
ContractAsset ( VAL contract_id: INTEGER , REF whdl: WINDOW)
Parameters
contract_id - contract ID
whdl - parent window handle
Returns
Nothing
Side Effects
None
Description
This procedure returns a list of assets associated with a contract. This procedure is used by Contracts.
Dialog Forms Called
None
File Name
Syntax
ConvertMaintCostVal( REF mList: LIST OF ContractMaintenance, VAL convertType: INTEGER )
Parameters
mList - list of contract maintenance records
convertType - maintenance cost conversion
Returns
Nothing
Side Effects
None
Description
This procedure converts the maintenance cost depending on conversion selection.
Dialog Forms Called
None
File Name
Syntax
FindButtonProcessing( VAL w: WINDOW, REF ContractInstanceData: ContractFindEventInstRec, REF thisK: ContractRec, REF currentPoc: BrowsePeopleListRec )
Parameters
w - parent window handle
ContractInstanceData - instance data for working with contracts
thisK - contract record
currentPoc - browse people list record (point of contact information)
Returns
Integer for success or failure
Side Effects
None
Description
This function is utilized when the user selects the find button in the contract find event. A list of contracts matching the search criteria entered will be returned.
Dialog Forms Called
None
File Name
Syntax
GetContractFields( VAL w: WINDOW, REF contract: ContractRec, REF poc: BrowsePeopleListRec )
Parameters
w - parent window handle
contract - contract record
poc - point of contact information record
Returns
Nothing
Side Effects
None
Description
This procedure reads the values from the dialog controls into the contract and person records.
Dialog Forms Called
None
File Name
Syntax
GetContractPOC( VAL w: WINDOW, VAL thisK: ContractRec, REF poc: BrowsePeopleListRec )
Parameters
w - parent window handle
thisK - contract record
poc - browse people list record containing point of contact information
Returns
Nothing
Side Effects
None
Description
This procedure is used to get the point of contact record.
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None
File Name
Syntax
GetKAddress( VAL w: WINDOW, REF thisK: ContractRec )
Parameters
w - parent window handle
thisK - contract record
Returns
Nothing
Side Effects
None
Description
This procedure gets the list of addresses associated with the contract and populates the AddressMCLB with them.
Dialog Forms Called
None
File Name
Syntax
GetKMaintenance( VAL w: WINDOW, REF thisK: ContractRec )
Parameters
w - parent window handle
thisK - contract record
Returns
Nothing
Side Effects
None
Description
This procedure gets a list of contract maintenance records and inserts them into the Maintenance_MCLB on the contract notebook.
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None
File Name
Syntax
InitializeContractFindFields( VAL w: WINDOW, REF currentPoc: BrowsePeopleListRec, VAL fromDifferentApplication: BOOLEAN )
Parameters
w - parent window handle
currentPoc - browse people list record, point of contact information
fromDifferentApplication - TRUE if from application other than contracts; FALSE if from contracts
Returns
Nothing
Side Effects
None
Description
This procedure sets all fields on the Contract dialog box as unknown values.
Dialog Forms Called
None
File Name
Syntax
InitializeViewContractVariables
Parameters
None
Returns
Nothing
Side Effects
None
Description
This procedure is used to remove the contract/asset association from window and database.
Dialog Forms Called
cntr.dfc[klocation]
File Name
Syntax
InitializeWWContract
Parameters
None
Returns
Nothing
Side Effects
None
Description
This procedure will fill the contract_MCLB and perform other routines that occur in $MsgCreate.
Dialog Forms Called
None
File Name
Syntax
KImageEvent( REF thisImage: STRING )
Parameters
None
Returns
Nothing
Side Effects
None
Description
This procedure is used to view a contract image in a scroll window.
Dialog Forms Called
None
File Name
Syntax
KLocationEvent( REF thisK: ContractRec )
Parameters
None
Returns
Nothing
Side Effects
None
Description
This procedure is used to view a contract location type.
Dialog Forms Called
None
File Name
Syntax
PopulateAssetPage( VAL wHdl: WINDOW, REF ContractAssetList: ContractAssetRecordList, REF KAssetList: LIST OF InvContractRec, REF thisK: ContractRec )
Parameters
wHdl - parent window handle
ContractAssetList - list of contract asset association records
KAssetList - list of inventory / contract records
thisK - contract record
Returns
Nothing
Side Effects
None
Description
This procedure populates the asset_MCLB in the Contract dialog box with the list of assets associated with the particular contract.
Dialog Forms Called
None
File Name
Syntax
ProcessDateButtons( VAL w: WINDOW, VAL dateFieldToProcess: STRING )
Parameters
w - parent window handle
dateFieldToProcess - dialog box control name to enter date returned from calendar
Returns
Nothing
Side Effects
None
Description
This procedure is used to put the date in the specified date dialog box control.
Dialog Forms Called
None
File Name
Syntax
ProcessExitFromPOCNameField( VAL w: WINDOW, VAL nameField: STRING, VAL phoneField: STRING, VAL nextField: STRING, REF currentPoc: BrowsePeopleListRec )
Parameters
w - parent window handle
nameField - dialog control name of POC name
phoneField - dialog control name of POC phone
nextField - next field to set control to
currentPoc - point of contact information contained in the browse people list record
Returns
Nothing
Side Effects
None
Description
This procedure fills in the name and phone field with the point of contact information.
Dialog Forms Called
None
File Name
Syntax
ProcessExitFromVendorFields( VAL w: WINDOW, REF thisK: ContractRec, VAL vendorFieldToProcess: STRING, REF LastVendorID: STRING, VAL NextFieldName: STRING, VAL organization_id: STRING )
Parameters
w - parent window handle
thisK - contract record
vendorFieldToProcess - dialog control name of selected vendor field
LastVendorID - last vendor ID selected
NextFieldName - next field name on dialog box control to enter at end of procedure
Returns
Nothing
Side Effects
None
Description
This procedure is used to put the correct vendor information in the specified dialog box control.
Dialog Forms Called
None
File Name
Syntax
ProcessPOCButton( VAL w: WINDOW, REF viewpeople: BrowsePeopleListRec )
Parameters
w - parent window handle
viewpeople - browse people list record
Returns
Nothing
Side Effects
None
Description
This procedure is used to call the people search form of the people notebook.
Dialog Forms Called
people.dfc[peoplesearchform]
File Name
Syntax
ProcessPrintButton( VAL w: WINDOW, REF ContractInstanceData: ContractFindEventInstRec )
Parameters
w - parent window handle
ContractInstanceData - instance data for working with contracts
Returns
Integer for success or failure
Side Effects
None
Description
This function is used to print the Contract dialog box information.
Dialog Forms Called
c_prnt.dfc[printchoice]
cntr.dfc[contractnb]
File Name
Syntax
ProcessSelectedPersonMessage( VAL w: WINDOW, REF viewpeople: BrowsePeopleListRec )
Parameters
w - parent window handle
viewpeople - browse people list record
Returns
Nothing
Side Effects
None
Description
This procedure is used to display the point of contact's phone number and whole name.
Dialog Forms Called
None
File Name
Syntax
ProcessVendorButtons( VAL w: WINDOW, REF thisVendor: VendorRecord, VAL vendorFieldToSet: STRING, VAL organization_id: STRING )
Parameters
w - parent window handle
thisVendor - vendor record
vendorFieldToSet - name of vendor dialog box control to populate with vendor information
organization_id - organization ID of contract
Returns
Nothing
Side Effects
None
Description
This function is used to put the correct vendor information in the specified dialog box control.
Dialog Forms Called
None
File Name
Syntax
ProcessViewButton( VAL w: WINDOW, REF ContractInstanceData: ContractFindEventInstRec )
Parameters
None
Returns
Nothing
Side Effects
None
Description
This procedure is used to view a selected contract.
Dialog Forms Called
cntr.dfc[contractnb]
File Name
Syntax
ProcessWWContractMsgAccept( VAL w: WINDOW, REF ContractInstanceData: ContractFindEventInstRec, REF thisK: ContractRec )
Parameters
w - parent window handle
ContractInstanceData - instance data for Work With Contracts event
thisK - contract record
Returns
Integer for success or failure
Side Effects
None
Description
This function is used to return a selected contract to the Asset dialog box.
Dialog Forms Called
None
File Name
Syntax
ProcessWWContractMsgCancel( VAL w: WINDOW )
Parameters
w - parent window handle
Returns
Nothing
Side Effects
None
Description
This function prompts the user to ask if they want to cancel their dialog box changes.
Dialog Forms Called
None
File Name
Syntax
ProcessWWContractMsgClose( VAL w: WINDOW, REF ContractInstanceData: ContractFindEventInstRec )
Parameters
w - parent window handle
ContractInstanceData - instance data for Work With Contracts event
Returns
Nothing
Side Effects
None
Description
This procedure closes the Contract dialog box and saves the screen position of the dialog box.
Dialog Forms Called
None
File Name
Syntax
ProcessWWContractMsgCreate( VAL w: WINDOW, REF ContractInstanceData: ContractFindEventInstRec, REF thisK: ContractRec, VAL formFile: STRING, VAL formName: STRING )
Parameters
w - parent window handle
ContractInstanceData - instance data used in contract find event
thisK - contract record information
formFile - name of file containing current form
formName - name of current form
Returns
Nothing
Side Effects
None
Description
This procedure is used to process the different messages within the Work With Contracts event.
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None
File Name
Syntax
SetAddressFields( VAL w: WINDOW, VAL address: ContractAddress )
Parameters
w - parent window handle
address - contract address record
Returns
Nothing
Side Effects
None
Description
This procedure is used to set the address fields on the Contract dialog box.
Dialog Forms Called
None
File Name
Syntax
SetAddressType( VAL w: WINDOW, VAL aType: INTEGER )
Parameters
w - parent window handle
aType - address selection
Returns
Nothing
Side Effects
None
Description
This procedure is used to set the address type radio button selection.
Dialog Forms Called
None
File Name
Syntax
SetAddressTypeName( REF thisAddress: ContractAddress )
Parameters
thisAddress - contract address record
Returns
Nothing
Side Effects
None
Description
This procedure is used to set the address type name to either Bill To or Ship To.
Dialog Forms Called
None
File Name
Syntax
SetContractFields( VAL w: WINDOW, REF contract: ContractRec, REF poc: BrowsePeopleListRec )
Parameters
w - parent window handle
contract - contract record
poc - browse people list record
Returns
Nothing
Side Effects
None
Description
This procedure fills the information on the General tab of the Contract dialog box.
Dialog Forms Called
None
File Name
Syntax
SetKHistory( VAL w: WINDOW, REF thisK: ContractRec )
Parameters
w - parent window handle
thisK - contract record
Returns
Nothing
Side Effects
None
Description
This procedure gets a list of contract history records and populates the KHistoryMCLB with that list in the Contract dialog box.
Dialog Forms Called
None
File Name
Syntax
SetKHistoryFields( VAL w: WINDOW, VAL thisH: ContractHistory )
Parameters
w - parent window handle
thisH - contract history record
Returns
Nothing
Side Effects
None
Description
This procedure gets a contract history record and fills the contract history notes information on the dialog box.
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None
File Name
Syntax
SetMaintenanceFields( VAL w: WINDOW, VAL thisM: ContractMaintenance )
Parameters
w - parent window handle
thisM - contract maintenance record
Returns
Nothing
Side Effects
None
Description
This procedure sets the maintenance fields on the Contract dialog box.
Dialog Forms Called
None
File Name
Syntax
ViewContractEvent( REF thisK: ContractRec )
Parameters
thisK - contract record
Returns
Nothing
Side Effects
None
Description
This event is used to view a particular contract.
Dialog Forms Called
None
File Name
Syntax
ViewKLocationEvent( REF displayFile: STRING )
Parameters
None
Returns
Nothing
Side Effects
None
Description
This event is used to view a contract location.
Dialog Forms Called
None
File Name
Syntax
None
Parameters
None
Returns
Nothing
Side Effects
None
Description
None
Dialog Forms Called
None