diff --git a/Modules/MIP_FILES.pck b/Modules/MIP_FILES.pck index 20ff506..bb9bb36 100644 --- a/Modules/MIP_FILES.pck +++ b/Modules/MIP_FILES.pck @@ -5,6 +5,13 @@ create or replace package MIP_FILES is -- Purpose : Handle files for the webMIP system -- Public function and procedure declarations +function drawing_file_exists(p_drwg_code varchar2) return boolean; +function update_file_association(p_uri in varchar2, + p_description in varchar2, + p_docu_type in varchar2, + p_qute_id in number, + p_enqu_id in number, + p_drwg_code in varchar2) return boolean; function set_file_association(p_uri in varchar2, p_description in varchar2, p_docu_type in varchar2, @@ -53,6 +60,7 @@ create or replace package body MIP_FILES as %param p_uri - the uri of the file (the contents of the name column in APEX application files) %param p_description - description of the file, will be set in documents and document_roles table %param p_docu_type - INDO (held within webmip db), EXDO (held outside webmip), FIDO (on file system) + %param p_rt_code - type of role for docment eg 'ENQUIRY SUPPORTING DOC' see role types table %param p_qute_id - the quote id if applicable otherwise supply null %param p_enqu_id - the enquiry id if applicable otherwise supply null %param p_drwg_code - the drawing code if applicable otherwise supply null