Routines for cntr_wdb.kb


DeleteContract

File Name

cntr_wdb.kb

Syntax

DeleteContract( VAL InTran: BOOLEAN, REF DeleteRec: ContractRec )

Parameters

InTran - in a transaction or not

DeleteRec - contract record to be deleted from table

Returns

Integer for success or failure

Side Effects

None

Description

This function deletes a single contract record from the CONTRACT table.

Dialog Forms Called

None


DeleteContractAddress

File Name

cntr_wdb.kb

Syntax

DeleteContractAddress( VAL inTran: BOOLEAN, VAL contract_id: INTEGER )

Parameters

inTran - in a transaction or not

contract_id - id of selected contract

Returns

Integer for success or failure

Side Effects

None

Description

This function deletes a contract history record.

Dialog Forms Called

None


DeleteContractHistory

File Name

cntr_wdb.kb

Syntax

DeleteContractHistory( VAL inTran: BOOLEAN, REF DeleteRec: ContractHistory )

Parameters

inTran - in a transaction or not

DeleteRec - contract history record to be deleted

Returns

Integer for success or failure

Side Effects

None

Description

This function deletes a contract history record.

Dialog Forms Called

None


DeleteContractMaintenance

File Name

cntr_wdb.kb

Syntax

DeleteContractMaintenance( VAL inTran: BOOLEAN, REF DeleteRec: ContractMaintenance)

Parameters

inTran - in a transaction or not

DeleteRec - contract maintenance record

Returns

Integer for success or failure

Side Effects

None

Description

This function deletes a contract maintenance record.

Dialog Forms Called

None


GetContractHistList

File Name

cntr_wdb.kb

Syntax

GetContractHistList( REF KHistoryList: LIST OF ContractHistory, VAL ID: INTEGER )

Parameters

KHistoryList - list of contract history records

ID - id of contract to get history list for

Returns

Integer for success or failure

Side Effects

None

Description

This function retrieves a list of contract history records for the specified contract.

Dialog Forms Called

None


InsertContract

File Name

cntr_wdb.kb

Syntax

InsertContract( VAL InTran: BOOLEAN, REF InsertRec: ContractRec )

Parameters

InTran - in a transaction or not

InsertRec - contract record to be inserted into table

Returns

Integer for success or failure

Side Effects

None

Description

This function inserts a single contract record into the CONTRACT table.

Dialog Forms Called

None


InsertContractAddress

File Name

cntr_wdb.kb

Syntax

InsertContractAddress( VAL inTran: BOOLEAN, REF contractAddressList: LIST OF ContractAddress )

Parameters

inTran - in a transaction or not

contractAddressList - list of contract address records

Returns

Integer for success or failure

Side Effects

None

Description

This function inserts a contract history record.

Dialog Forms Called

None


InsertContractHistory

File Name

cntr_wdb.kb

Syntax

InsertContractHistory( VAL inTran: BOOLEAN, REF InsertRec: ContractHistory)

Parameters

inTran - in a transaction or not

InsertRec - contract history record to be inserted

Returns

Integer for success or failure

Side Effects

None

Description

This function inserts a contract history record.

Dialog Forms Called

None


InsertContractMaintenance

File Name

cntr_wdb.kb

Syntax

InsertContractMaintenance( VAL inTran: BOOLEAN, REF InsertRec: ContractMaintenance)

Parameters

inTran - in a transaction or not

InsertRec - contract maintenance record

Returns

Integer for success or failure

Side Effects

None

Description

This function inserts a contract maintenance record.

Dialog Forms Called

None


UpdateContract

File Name

cntr_wdb.kb

Syntax

UpdateContract( VAL InTran: BOOLEAN, REF BeforeRec: ContractRec, REF AfterRec: ContractRec )

Parameters

InTran - in a transaction or not

BeforeRec - original contract record

AfterRec - new contract record

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a single contract record in the CONTRACT table.

Dialog Forms Called

None


UpdateContractHistory

File Name

cntr_wdb.kb

Syntax

UpdateContractHistory( VAL inTran: BOOLEAN, REF BeforeRec: ContractHistory, REF AfterRec: ContractHistory )

Parameters

inTran - in a transaction or not

BeforeRec - original contract history record

AfterRec - new contract history record

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a contract history record.

Dialog Forms Called

None


UpdateContractMaintenance

File Name

cntr_wdb.kb

Syntax

UpdateContractMaintenance( VAL inTran: BOOLEAN, REF BeforeRec: ContractMaintenance, REF AfterRec: ContractMaintenance)

Parameters

inTran - in a transaction or not

BeforeRec - original contract maintenance record

AfterRec - new contract maintenance record

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a contract maintenance record.

Dialog Forms Called

None


UpdateListOfAddressRec

File Name

cntr_wdb.kb

Syntax

UpdateListOfAddressRec( VAL inTran: BOOLEAN, REF contractAddressList: LIST OF ContractAddress, VAL contract_id: INTEGER, VAL userMode: STRING )

Parameters

inTran - in a transaction or not

contractAddressList - list of contract address records

contract_id - contract ID

userMode - mode of contract notebook (add, edit , or view)

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a list of contract address records.

Dialog Forms Called

None


UpdateListOfContractItems

File Name

cntr_wdb.kb

Syntax

UpdateListOfContractItems( VAL InTran: BOOLEAN, REF updateList: LIST OF KUpdateRec, VAL userMode: STRING )

Parameters

inTran - in a transaction or not

updateList - list of contract update records

userMode - mode of contract notebook (add, edit , or view)

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a list of contract update records.

Dialog Forms Called

None


UpdateListOfContracts

File Name

cntr_wdb.kb

Syntax

UpdateListOfContracts( VAL InTran: BOOLEAN, REF BeforeList: LIST OF ContractRec, REF AfterList: LIST OF ContractRec )

Parameters

InTran - in a transaction or not

BeforeList - original list of contract records

AfterList - current list of contract records

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a list of contract records in the database.

Dialog Forms Called

None


UpdateListOfKHist

File Name

cntr_wdb.kb

Syntax

UpdateListOfKHist( VAL inTran: BOOLEAN, REF BeforeList: LIST OF ContractHistory, REF AfterList: LIST OF ContractHistory )

Parameters

inTran - in a transaction or not

BeforeList - original list ofcontract history records

AfterList - new list of contract history records

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a list of contract history records.

Dialog Forms Called

None


UpdateListOfMaintRec

File Name

cntr_wdb.kb

Syntax

UpdateListOfMaintRec( VAL inTran: BOOLEAN, REF BeforeList: LIST OF ContractMaintenance, REF AfterList: LIST OF ContractMaintenance )

Parameters

inTran - in a transaction or not

BeforeList - original list of contract maintenance records

AfterList - new list of contract maintenance records

Returns

Integer for success or failure

Side Effects

None

Description

This function updates a list of contract maintenance records.

Dialog Forms Called

None