CREATE OR REPLACE PACKAGE EFT_NOM.geco_reporting IS /** ############################################################################# # # # Package: geco_reporting # # # # Application System: General # # # # Creation Date: 29/08/2003 # # # # Author: Oracle Team, Advantica Ltd # # # # Purpose: A flexible reporting infrastructure providing output # # in HTML # # # # Dependancies: Reporting Schema as defined in Designer # # # # Header Information: $Header: /Isle Of Grain/database/PLSQL/geco_reporting.pck 1 7/01/05 12:54 Gilberta $ # # # # Revision: $Revision: 1 $ # # # # ? Advantica Ltd, 2003 # ############################################################################# */ -- -- Public type declarations -- g_package_name CONSTANT VARCHAR2(15) := 'geco_reporting'; -- TYPE g_report_rec IS RECORD( rpdf_id report_definitions.rpdf_id%TYPE ,NAME report_definitions.NAME%TYPE); -- TYPE g_report_tab IS TABLE OF g_report_rec INDEX BY BINARY_INTEGER; -- TYPE g_report_list IS TABLE OF VARCHAR2(50) INDEX BY BINARY_INTEGER; -- TYPE vc_arr IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER; -- g_vc_arr vc_arr; -- -- Ref cursor declaration -- TYPE t_ref_cursor IS REF CURSOR; -- -- Public function and procedure declarations -- /** -- Procedure to return the list of reports defined on the system */ PROCEDURE get_report_list(p_index OUT g_report_list ,p_report OUT g_report_list); -- /** -- Procedure to display the query screen */ PROCEDURE startup(p_item_name_array IN vc_arr DEFAULT g_vc_arr ,p_item_value_array IN vc_arr DEFAULT g_vc_arr); -- /** -- Generic procedures for the date LOV */ PROCEDURE calendar(z_field_name IN VARCHAR2 ,z_caller_url IN VARCHAR2 ,z_field_value IN VARCHAR2 DEFAULT NULL ,z_field_format IN VARCHAR2 DEFAULT NULL ,z_field_prompt IN VARCHAR2 DEFAULT NULL); -- PROCEDURE format_cal_date(z_field_name IN VARCHAR2 ,z_field_format IN VARCHAR2 ,DAY IN VARCHAR2 ,MONTH IN VARCHAR2 ,YEAR IN VARCHAR2); -- /** -- Function to return the results of the selected report -- @param x -- @return Returns a PL/SQL table of the report results */ FUNCTION return_results(p_item_name_array IN vc_arr ,p_item_value_array IN vc_arr) RETURN VARCHAR2; -- /** -- Procedure to return the results of the selected report -- @param x */ PROCEDURE return_results(p_item_name_array IN vc_arr ,p_item_value_array IN vc_arr); /** -- Procedure to return the results of the selected report as a ref cursor */ PROCEDURE return_results_ref(p_item_name_array IN vc_arr ,p_item_value_array IN vc_arr ,html_cursor IN OUT t_ref_cursor); -- END geco_reporting; /