From 246c8fe946c4e837c3e8e4c7128dbf19845e45ef Mon Sep 17 00:00:00 2001 From: PriestJ Date: Fri, 18 Jan 2008 15:06:32 +0000 Subject: [PATCH] made the update_drawing and drawing_exists functions public, so they can be called by the apex file upload screens git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3296 248e525c-4dfb-0310-94bc-949c084e9493 --- Modules/MIP_FILES.pck | 8 ++++++++ 1 file changed, 8 insertions(+) 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