Skip to main content
Version: 2.2.1

DCPROTOCOLPRINTEDCOPYNEW - Add printed copy data

This import template allows adding:

  • Printed copy data.

To insert each of these items, the standard documented below must be followed.

Insert DIINTERFACE

ColumnRequiredTypePrecisionDescription
OIDINTERFACEXTEXT32Sequential code - Identifies an item to be imported into SoftExpert Suite.
FGIMPORTXNUMERIC2Import status:
1 - New;
2 - In progress;
3 - Finished;
4 - Error.
CDISOSYSTEMXNUMERIC10Code of the system for which the integration will be performed:
73 - Code of the SoftExpert Document component.
FGOPTIONXNUMERIC2Code of the operation to be performed:
56 - Create copy protocol.
NMFIELD01XTEXT50Protocol ID #.
NMFIELD02XTEXT1Copy type:
1 - controlled;
2 - uncontrolled.
NMFIELD03TEXT10Issue date (if it is not entered, the current date will be considered). The date format must be "Y-M-D" (Year-Month-Day).
NMFIELD04TEXT50Distribution reason ID #.
NMFIELD05XTEXT50Issuer's ID.
NMFIELD06TEXT50Copy station ID #.
NMFIELD07TEXT50ID of the user responsible for the station.
NMFIELD08TEXT255Company.
NMFIELD09TEXT255Company's responsible party.
NMFIELD10XTEXT1Protocol status:
1 - Awaiting receipt confirmation;
2 - Receipt confirmed.
NMFIELD11TEXT50ID of the user responsible for receiving (if it is not entered, and STATUS is 2, RESPONSIBLE will be considered)
NMFIELD12TEXT10Receiving date (if it is not entered, and STATUS is 2, the current date will be considered). The date format
must be "Y-M-D" (Year-Month-Day).
NMFIELD14NUMERIC1Addressee type:
1 - Copy station;
2 - Organizational unit;
3 - User.
NMFIELD15XTEXT50Default control team ID #.
NMFIELD16TEXT50Organizational unit ID #
NMFIELD17X⁴TEXT50User ID.
DSFIELD01TEXT4000Comments.
info

Notes:

  • X¹ - Required when NMFIELD14 is equal to 1;
  • X² - Required when NMFIELD02 is equal to 1.
  • X³ - Required when NMFIELD14 is equal to 2;
  • X⁴ - Required when NMFIELD14 is equal to 3.

Example of the Edit copy station function:

INSERT INTO DIINTERFACE (OIDINTERFACE, FGIMPORT, CDISOSYSTEM, FGOPTION, NMFIELD01, NMFIELD02, NMFIELD03, NMFIELD04, NMFIELD05, NMFIELD06, NMFIELD07, NMFIELD08, NMFIELD09, NMFIELD10, NMFIELD11, NMFIELD12, DSFIELD01) VALUES (1, 1, 73, 56, ' ProtocolID', ' Copytype', ' Date', ' ReasonID', ' Responsible', 'CopyStationID', 'Copystationresp', 'Company', 'Companyresp', 'Status', 'Receivingresp', 'Receivingdate', 'Observation');

For the list of documents, the DIINTERFACEDETAIL table must be used, referencing the parent record in the DIINTERFACE table, as specified below:

Insert DIINTERFACEDETAIL

ColumnRequiredTypePrecisionDescription
OIDINTERFACEDETAILXTEXT32Registry key
Oracle: DBMS_RANDOM.STRING('x',32) or SYS_GUID()
OIDINTERFACEXTEXT32DIINTERFACE table registry key
NMFIELD01XTEXT50Document ID #.
NMFIELD02TEXT50Revision ID # (controlled copy: must be blank; uncontrolled copy: if it is not entered, the current revision will be considered).
NMFIELD03TEXT50Document category ID # (required when there is more than one document with the same ID # in different categories).
NMFIELD04XNUMERIC10Number of copies.

Example of the document list function:

INSERT INTO DIINTERFACEDETAIL (OIDINTERFACEDETAIL, OIDINTERFACE, NMFIELD01, NMFIELD02, NMFIELD03, NMFIELD04) VALUES (1, 1, 'DocumentID', 'RevisionID', 'CategoryID', 'QtdCopy');