-- Customer specific once-script DJIN6.
--
-- (c) 2016 Facilitor B.V.
--
-- Support: +31 53 4800700
SET ECHO ON
SPOOL xDJIN6.lst
SET DEFINE OFF

-- DJIN#37160: KPI-rapportages en exports daarvan
-- 90=PRSSYS
CREATE OR REPLACE VIEW djin_v_rap_kpi_mld_std AS SELECT NULL x FROM DUAL;
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
                        fac_usrrap_view_name,
                        fac_usrrap_vraagbegindatum,
                        fac_usrrap_vraageinddatum,
                        fac_usrrap_functie,
                        fac_usrrap_info,
                        fac_usrrap_autorefresh,
                        fac_functie_key)
    VALUES ('KPI: Afhandeling meldingen',
            'djin_v_rap_kpi_mld_std',
            0,
            0,
            0,
            'DJIN#37160/1',
            0,
            90);

CREATE OR REPLACE VIEW djin_v_rap_kpi_mld_urg AS SELECT NULL x FROM DUAL;
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
                        fac_usrrap_view_name,
                        fac_usrrap_vraagbegindatum,
                        fac_usrrap_vraageinddatum,
                        fac_usrrap_functie,
                        fac_usrrap_info,
                        fac_usrrap_autorefresh,
                        fac_functie_key)
    VALUES ('KPI: Afhandeling urgente meldingen',
            'djin_v_rap_kpi_mld_urg',
            0,
            0,
            0,
            'DJIN#37160/2',
            0,
            90);

CREATE OR REPLACE VIEW djin_v_rap_kpi_mld_vvg AS SELECT NULL x FROM DUAL;
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
                        fac_usrrap_view_name,
                        fac_usrrap_vraagbegindatum,
                        fac_usrrap_vraageinddatum,
                        fac_usrrap_functie,
                        fac_usrrap_info,
                        fac_usrrap_autorefresh,
                        fac_functie_key)
    VALUES ('KPI: Afhandeling vervolgmeldingen',
            'djin_v_rap_kpi_mld_vvg',
            0,
            0,
            0,
            'DJIN#37160/3',
            0,
            90);

CREATE OR REPLACE VIEW djin_v_rap_kpi_klr AS SELECT NULL x FROM DUAL;
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
                        fac_usrrap_view_name,
                        fac_usrrap_vraagbegindatum,
                        fac_usrrap_vraageinddatum,
                        fac_usrrap_functie,
                        fac_usrrap_info,
                        fac_usrrap_autorefresh,
                        fac_functie_key)
    VALUES ('KPI: Afhandeling klantreacties',
            'djin_v_rap_kpi_klr',
            0,
            0,
            0,
            'DJIN#37160/4',
            0,
            90);

CREATE OR REPLACE VIEW djin_v_rap_kpi_res AS SELECT NULL x FROM DUAL;
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
                        fac_usrrap_view_name,
                        fac_usrrap_vraagbegindatum,
                        fac_usrrap_vraageinddatum,
                        fac_usrrap_functie,
                        fac_usrrap_info,
                        fac_usrrap_autorefresh,
                        fac_functie_key)
    VALUES ('KPI: Reserveringen',
            'djin_v_rap_kpi_res',
            0,
            0,
            0,
            'DJIN#37160/5',
            0,
            90);

COMMIT;

INSERT INTO fac_export_app (fac_export_app_code,
                            fac_export_app_oms,
                            fac_functie_key,
                            --fac_export_app_charset,
                            fac_export_app_folder,
                            fac_export_app_prefix,
                            fac_export_app_file_prefix,
                            fac_export_app_postfix,
                            fac_export_app_log_postfix,
                            fac_export_app_flags,
                            --fac_export_app_xsl,
                            fac_export_app_timestamp)
    VALUES ('KPI_MLD_STD',
            'KPI Meldingen',
            90,
            --NULL,
            '.\KPI',
            'DJIN',
            'KPI_MLD_STD_',
            '.csv',
            '.log',
            0,
            --NULL,
            'yyyymmdd');

INSERT INTO fac_export_app (fac_export_app_code,
                            fac_export_app_oms,
                            fac_functie_key,
                            --fac_export_app_charset,
                            fac_export_app_folder,
                            fac_export_app_prefix,
                            fac_export_app_file_prefix,
                            fac_export_app_postfix,
                            fac_export_app_log_postfix,
                            fac_export_app_flags,
                            --fac_export_app_xsl,
                            fac_export_app_timestamp)
    VALUES ('KPI_MLD_URG',
            'KPI Urgente meldingen',
            90,
            --NULL,
            '.\KPI',
            'DJIN',
            'KPI_MLD_URG_',
            '.csv',
            '.log',
            0,
            --NULL,
            'yyyymmdd');

INSERT INTO fac_export_app (fac_export_app_code,
                            fac_export_app_oms,
                            fac_functie_key,
                            --fac_export_app_charset,
                            fac_export_app_folder,
                            fac_export_app_prefix,
                            fac_export_app_file_prefix,
                            fac_export_app_postfix,
                            fac_export_app_log_postfix,
                            fac_export_app_flags,
                            --fac_export_app_xsl,
                            fac_export_app_timestamp)
    VALUES ('KPI_MLD_VVG',
            'KPI Vervolgmeldingen',
            90,
            --NULL,
            '.\KPI',
            'DJIN',
            'KPI_MLD_VVG_',
            '.csv',
            '.log',
            0,
            --NULL,
            'yyyymmdd');

INSERT INTO fac_export_app (fac_export_app_code,
                            fac_export_app_oms,
                            fac_functie_key,
                            --fac_export_app_charset,
                            fac_export_app_folder,
                            fac_export_app_prefix,
                            fac_export_app_file_prefix,
                            fac_export_app_postfix,
                            fac_export_app_log_postfix,
                            fac_export_app_flags,
                            --fac_export_app_xsl,
                            fac_export_app_timestamp)
    VALUES ('KPI_KLR',
            'KPI Klantreacties',
            90,
            --NULL,
            '.\KPI',
            'DJIN',
            'KPI_KLR_',
            '.csv',
            '.log',
            0,
            --NULL,
            'yyyymmdd');

INSERT INTO fac_export_app (fac_export_app_code,
                            fac_export_app_oms,
                            fac_functie_key,
                            --fac_export_app_charset,
                            fac_export_app_folder,
                            fac_export_app_prefix,
                            fac_export_app_file_prefix,
                            fac_export_app_postfix,
                            fac_export_app_log_postfix,
                            fac_export_app_flags,
                            --fac_export_app_xsl,
                            fac_export_app_timestamp)
    VALUES ('KPI_RES',
            'KPI Reserveringen',
            90,
            --NULL,
            '.\KPI',
            'DJIN',
            'KPI_RES_',
            '.csv',
            '.log',
            0,
            --NULL,
            'yyyymmdd');

COMMIT;
BEGIN adm.systrackscriptId('$Id$'); END;
/
SPOOL OFF
@djin.sql
