-- Customer specific once-script ARAI.
--
-- (c) 2011 SG|facilitor bv 
-- $Revision$ 
-- $Id$
--
-- Support: +31 53 4800700

SET ECHO ON
SPOOL arai02.lst
SET DEFINE OFF


UPDATE fac_locale_xsl SET fac_locale_xsl_cust = ' '
WHERE fac_locale_xsl_label = 'lcl_facilitor_welcome' 
AND ( fac_locale_xsl_lang = 'NL' OR fac_locale_xsl_lang = 'EN')
AND fac_locale_xsl_module = 'ASP';


UPDATE fac_locale_xsl SET fac_locale_xsl_cust = 'Welkom in het Service Portal'
WHERE fac_locale_xsl_label = 'lcl_facilitor_portalwelcome0' 
AND fac_locale_xsl_lang = 'NL'
AND fac_locale_xsl_module = 'ASP';

UPDATE fac_locale_xsl SET fac_locale_xsl_cust = 'Welcome to the Service Portal'
WHERE fac_locale_xsl_label = 'lcl_facilitor_portalwelcome0' 
AND fac_locale_xsl_lang = 'EN'
AND fac_locale_xsl_module = 'ASP';

UPDATE fac_locale_xsl SET fac_locale_xsl_cust = 'RAI Plattegronden'
WHERE fac_locale_xsl_label = 'lcl_fg' 
AND fac_locale_xsl_lang = 'NL'
AND fac_locale_xsl_module = 'ASP';

UPDATE fac_locale_xsl SET fac_locale_xsl_cust = 'RAI maps'
WHERE fac_locale_xsl_label = 'lcl_fg' 
AND fac_locale_xsl_lang = 'EN'
AND fac_locale_xsl_module = 'ASP';



INSERT INTO fac_usrrap
            (fac_usrrap_omschrijving,
             fac_usrrap_view_name,
             fac_usrrap_in_huidige_locatie,
             fac_usrrap_template,
             fac_usrrap_macro,
             fac_usrrap_vraagbegindatum,
             fac_usrrap_vraageinddatum,
             fac_usrrap_functie,
             fac_usrrap_info,
             fac_functie_key,
             fac_usrrap_autorefresh
            )
    SELECT  'Medewerkers (externen) met einddatum',
             'arai_v_rap_uitdienst',
             NULL,
             NULL,
             NULL,
             0,
             0,
             0,
             'Rapport (externe) medewerkers met einddatum',
             fac_functie_key,
             0
     FROM fac_functie WHERE fac_functie_code = 'WEB_PRSMAN';


INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url)
SELECT 'myfacilitor',10,NULL, 240, 99, 'fac_portal_menu.asp?groep=0' FROM dual;

INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url)
SELECT 'myfacilitor',20,NULL, 400, 99, 'myfacilitor.asp' FROM dual;




BEGIN adm.systrackscript('$Workfile: arai02.sql $', '$Revision$', 1); END;
/

SPOOL OFF

@arai.sql
