Files
mip/Data/BulkLoad/EFT/Nominations/plsql/saco_documents.spc

44 lines
1.4 KiB
Plaintext

CREATE OR REPLACE PACKAGE EFT_NOM.saco_documents IS
/*
Routines used to store and retrieve documents
*/
g_header CONSTANT VARCHAR2(160) := '$Header: /Isle Of Grain/database/PLSQL/saco_documents.pck 1 7/01/05 12:54 Gilberta $';
g_revision CONSTANT VARCHAR2(160) := '$Revision: 1 $';
/*
* $Header: /Isle Of Grain/database/PLSQL/saco_documents.pck 1 7/01/05 12:54 Gilberta $
* $Revision: 1 $
*
*/
/*
Simple form to transfer a file from the client PC to the 'Document Table'.
Performs a POST against INPUT TYPEs of type 'FILE'. This causes the PL/SQL Gateway
to upload the given file to the 'Document Table'. On completion, calls upload.
*/
PROCEDURE upload_form;
PROCEDURE upload(p_language IN VARCHAR2
,p_file IN VARCHAR2
,p_description IN VARCHAR2);
PROCEDURE download_form;
PROCEDURE download_document(p_docu_id IN documents.docu_id%TYPE);
PROCEDURE download(p_file IN VARCHAR2);
PROCEDURE test_download;
/*
Routine called by the PL/SQL Gateway DAD 'Document Access Procedure'.
Used to download documents directly from the 'Document Table' to the client browser.
The document name is included in the OWA_PATH_INFO environment variable.
*/
PROCEDURE download;
PROCEDURE embed_document(p_docu_id IN documents.docu_id%TYPE);
PROCEDURE test_embed;
END saco_documents;
/