CacheCOAGuaranteedResults

Cache COA Guaranteed Results

Minor Business Rule

Object Name: B3700250

Parent DLL: CMFG

Location: Client/Server

Language: C

The purpose of this business function is:
  1. Open a cache file for COA guaranteed results during each level break section;

  2. Save every guaranteed test result to this cache file when COA report reach them;

  3. At each COA level break footer section, read all the guaranteed results from cache file, then 

print them in COA report;

  4. Finally terminate thecache file after printing all the guaranteed results.


The key fields of this cache file are:

Test ID (QTST)
Detail Business Unit (MCU2)

Unique Key ID (UKID)


The following is a list of the cache operations supported by this business function:


OperationProcess Mode

Get first record in cache file1
Add record to cache file2

Get next record in cache file6

Terminate cache file8

Close Cursor9


^

Data Structure

D3700250 - Cache COA Guaranteed Results

Parameter NameData ItemData TypeReq/OptI/O/Both
cProcessModeEV01charOPTINPUT

An option that specifies the type of processing for an event.

cCacheErrorCodeEV01charOPTOUTPUT

An option that specifies the type of processing for an event.

cSuppressErrorMessagesEV01charOPTINPUT

An option that specifies the type of processing for an event.

szErrorMessageIDDTA1charOPTOUTPUT

A 256 byte field used to hold miscellaneous data.

idCursorGENLNGIDOPTBOTH

General purpose ID variable.

cReturnCursorEV01charOPTINPUT

An option that specifies the type of processing for an event.

szTestIDQTSTcharOPTBOTH

The unique identification for a test to be performed on an item. For example:    COL Color test    DENS Density Test    CL-2   Clarity Test 

szCostCenter2MCU2charOPTBOTH

An accounting entity, such as a profit center, department, warehouse location, job, project, workcenter, and so on, required for management 
reporting.

szTestValueQVALcharOPTBOTH

The result of the performed test.

jdDatetestedQDATJDEDATEOPTBOTH

The date on which the test was performed.

szAllowableMinimumValuefutAMINcharOPTBOTH

The lowest value for a passing test result.

szAllowableMaximumValuefutAMAXcharOPTBOTH

The highest value for a passing test result.

szPreferableMinimumValuePMINcharOPTBOTH

The lowest value for the preferred test result. This value must be greater than or equal to the allowed minimum value. Use the preferred 
minimum value to measure quality to a more precise specification than a customer requests. Processing options for the Certificate of Analysis 
program allow you to print the preferred value on the Certificate of Analysis report. Processing options for the Test Revisions program allow you 
to evaluate samples against the preferred values.

szPreferableMaximumValuePMAXcharOPTBOTH

The highest value for the preferred test result. This value must be less than or equal to the allowed maximum value. Use the preferred 
maximum value to measure quality to a more precise specification than a customer requests. Processing options for the Certificate of Analysis 
program allow you to print the preferred value on the Certificate of Analysis report. Processing options for the Test Revisions program allow you 
to evaluate samples against the preferred values.

cPrintTestPTTScharOPTBOTH

A code used to determine whether or not a test will be printed on the Certificate of Analysis. The valid values are:    0   The test will not be 
printed on the Certificate of Analysis.    1   Print all occurrences of a test on the Certificate of Analysis.    2   Print just the average test result record 
when printing the Certificate of Analysis.    3   Print the last occurrence of a test when printing the Certificate of Analysis. The last occurrence will 
be the test results record that was entered last using Test Results Revisions.

mnQualityTextIDNumberQTIDMATH_NUMERICOPTBOTH

A unique identifier associating a test result with it's generic text.

szTestMethodTMHDcharOPTBOTH

A description of how to run a quality test. The test method is useful to both your company's Quality Control department and your customers. 
For example:        Test: Viscosity         Method: RVF #4 @10RPM         Text: Run the viscosity test on a RVF viscometer with a number 4 spindle 
at 10 revolutions per minute.

mnUniqueKeyIDInternalUKIDMATH_NUMERICOPTBOTH

This field is a unique number used to identify a record in a file.

mnJobnumberJOBSMATH_NUMERICOPTNONE

The job number (work station ID) which executed the particular job.

Related Functions

None

Related Tables

None