Routines for cntr_gl.kb


ChangePOCField

File Name

cntr_gl.kb

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


ContractAsset

File Name

cntr_gl.kb

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


ConvertMaintCostVal

File Name

cntr_gl.kb

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


FindButtonProcessing

File Name

cntr_gl.kb

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


GetContractFields

File Name

cntr_gl.kb

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


GetContractPOC

File Name

cntr_gl.kb

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


GetFileAssocFromINI

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None


GetKAddress

File Name

cntr_gl.kb

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


GetKMaintenance

File Name

cntr_gl.kb

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


GetLocationFields

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None


GetLocType

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None


InitializeContractFindFields

File Name

cntr_gl.kb

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


InitializeViewContractVariables

File Name

cntr_gl.kb

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]


InitializeWWContract

File Name

cntr_gl.kb

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


KImageEvent

File Name

cntr_gl.kb

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


KLocationEvent

File Name

cntr_gl.kb

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


PopulateAssetPage

File Name

cntr_gl.kb

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


ProcessDateButtons

File Name

cntr_gl.kb

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


ProcessExitFromPOCNameField

File Name

cntr_gl.kb

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


ProcessExitFromVendorFields

File Name

cntr_gl.kb

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


ProcessPOCButton

File Name

cntr_gl.kb

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]


ProcessPrintButton

File Name

cntr_gl.kb

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]


ProcessSelectedPersonMessage

File Name

cntr_gl.kb

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


ProcessVendorButtons

File Name

cntr_gl.kb

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


ProcessViewButton

File Name

cntr_gl.kb

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]


ProcessWWContractMsgAccept

File Name

cntr_gl.kb

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


ProcessWWContractMsgCancel

File Name

cntr_gl.kb

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


ProcessWWContractMsgClose

File Name

cntr_gl.kb

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


ProcessWWContractMsgCreate

File Name

cntr_gl.kb

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


RunKLocation

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None


RunKLocation

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None


SetAddressFields

File Name

cntr_gl.kb

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


SetAddressType

File Name

cntr_gl.kb

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


SetAddressTypeName

File Name

cntr_gl.kb

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


SetContractFields

File Name

cntr_gl.kb

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


SetKHistory

File Name

cntr_gl.kb

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


SetKHistoryFields

File Name

cntr_gl.kb

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


SetLocationFields

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None


SetMaintenanceFields

File Name

cntr_gl.kb

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


ViewContractEvent

File Name

cntr_gl.kb

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


ViewKLocationEvent

File Name

cntr_gl.kb

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


WriteFileAssocINI

File Name

cntr_gl.kb

Syntax

None

Parameters

None

Returns

Nothing

Side Effects

None

Description

None

Dialog Forms Called

None