Migratie once-scripts van /branch naar /onces
svn path=/Customer/; revision=21207
This commit is contained in:
@@ -1,53 +0,0 @@
|
||||
-- Customer specific once-script ALLI.
|
||||
--
|
||||
-- (c) 2011 SG|facilitor bv
|
||||
-- $Revision$
|
||||
-- $Id$
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
SET ECHO ON
|
||||
SPOOL alli03.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
|
||||
CREATE TABLE alli_imp_prs (
|
||||
prs_perslid_nr VARCHAR2 (256),
|
||||
prs_perslid_naam VARCHAR2 (256),
|
||||
prs_perslid_tussenvoegsel VARCHAR2 (256),
|
||||
prs_perslid_voorletters VARCHAR2 (256),
|
||||
prs_perslid_voornaam VARCHAR2 (256),
|
||||
prs_afdeling_code VARCHAR2 (256),
|
||||
prs_afdeling_naam VARCHAR2 (256),
|
||||
prs_srtperslid_omschrijving VARCHAR2 (256),
|
||||
alg_locatie_code VARCHAR2 (256),
|
||||
alg_gebouw_code VARCHAR2 (256),
|
||||
alg_verdieping_volgnr VARCHAR2 (256),
|
||||
alg_ruimte_nr VARCHAR2 (256),
|
||||
prs_perslid_telefoonnr VARCHAR2 (256),
|
||||
prs_perslid_email VARCHAR2 (256),
|
||||
prs_perslid_ingangsdatum DATE,
|
||||
prs_perslid_einddatum DATE,
|
||||
prs_perslid_oslogin VARCHAR2 (256)
|
||||
);
|
||||
|
||||
INSERT INTO fac_import_app
|
||||
(fac_import_app_code, fac_import_app_oms,
|
||||
fac_functie_key, fac_import_app_prefix)
|
||||
SELECT 'PRS', 'Import persoonsgegevens uit smoelenboek',
|
||||
fac_functie_key, 'ALLI'
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_code = 'WEB_PRSSYS';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BEGIN adm.systrackscript('$Workfile: alli03.sql $', '$Revision$', 1); END;
|
||||
/
|
||||
|
||||
SPOOL OFF
|
||||
|
||||
@alli.sql
|
||||
@@ -1,39 +0,0 @@
|
||||
-- Customer specific once-script ALLI.
|
||||
--
|
||||
-- (c) 2011 SG|facilitor bv
|
||||
-- $Revision$
|
||||
-- $Modtime: 29-06-12 13:29 $
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
SET ECHO ON
|
||||
SPOOL alli04.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
|
||||
CREATE TABLE alli_imp_cyod_serienummers (
|
||||
bes_bestelopdr_id VARCHAR2 (256),
|
||||
bes_srtdeel_nr VARCHAR2 (256),
|
||||
serienummer VARCHAR2 (256),
|
||||
soort VARCHAR2 (256),
|
||||
datum VARCHAR2 (256)
|
||||
);
|
||||
|
||||
INSERT INTO fac_import_app
|
||||
(fac_import_app_code, fac_import_app_oms,
|
||||
fac_functie_key, fac_import_app_prefix,
|
||||
fac_import_app_xsl, fac_import_app_charset
|
||||
)
|
||||
SELECT 'CYOD_SERIENUMMERS', 'CYOD Import: Serie- en IMEI nummers van de CYOD leverancier',
|
||||
fac_functie_key, 'ALLI', 'xsl/fclt_import_cyod_serienummers.xsl', 'UTF-8'
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_code = 'WEB_PRSSYS';
|
||||
|
||||
|
||||
|
||||
BEGIN adm.systrackscript('$Workfile: alli04.sql $', '$Revision$', 1); END;
|
||||
/
|
||||
|
||||
SPOOL OFF
|
||||
|
||||
@alli.sql
|
||||
@@ -1,57 +0,0 @@
|
||||
-- Customer specific once-script ALLI.
|
||||
--
|
||||
-- (c) 2011 SG|facilitor bv
|
||||
-- $Revision$
|
||||
-- $Modtime: 29-06-12 13:29 $
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
SET ECHO ON
|
||||
SPOOL alli07.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
ALTER TABLE alli_imp_prs ADD prs_perslid_mobiel VARCHAR2 (256);
|
||||
|
||||
-- Alle functies staan nu in hoofdletters in Facilitor, dat is niet goed. Daarom alles verwijderen (door elke perslid op functie Onbekend (prs_srtperslid_key = 1)),
|
||||
-- vervolgens alle functies verwijderen, en dan straks met nieuwe import goed te krijgen
|
||||
|
||||
UPDATE prs_perslid
|
||||
SET prs_srtperslid_key = 1
|
||||
WHERE prs_perslid_verwijder IS NULL;
|
||||
|
||||
UPDATE prs_srtperslid
|
||||
SET prs_srtperslid_verwijder = SYSDATE
|
||||
WHERE prs_srtperslid_key <> 1;
|
||||
|
||||
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 'Managementinformatie bestelaanvragen incl. personeelsnummer',
|
||||
'alli_v_bestelling_maninfo',
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
'Rapport met bestelgegevens per bestelaanvraag',
|
||||
fac_functie_key,
|
||||
0
|
||||
FROM fac_functie WHERE fac_functie_code = 'WEB_BESBAC';
|
||||
|
||||
BEGIN adm.systrackscript('$Workfile: alli07.sql $', '$Revision$', 1); END;
|
||||
/
|
||||
|
||||
SPOOL OFF
|
||||
|
||||
@alli.sql
|
||||
@@ -1,21 +0,0 @@
|
||||
-- Customer specific once-script ALLI.
|
||||
--
|
||||
-- (c) 2011 SG|facilitor bv
|
||||
-- $Revision$
|
||||
-- $Modtime: 29-06-12 13:29 $
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
SET ECHO ON
|
||||
SPOOL alli08.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
ALTER TABLE alli_imp_prs ADD prs_perslid_bedrijfsdeel VARCHAR2 (256);
|
||||
|
||||
|
||||
BEGIN adm.systrackscript('$Workfile: alli08.sql $', '$Revision$', 1); END;
|
||||
/
|
||||
|
||||
SPOOL OFF
|
||||
|
||||
@alli.sql
|
||||
@@ -1,116 +0,0 @@
|
||||
-- Customer specific once-script ALLI.
|
||||
--
|
||||
-- (c) 2011 SG|facilitor bv
|
||||
-- $Revision$
|
||||
-- $Modtime: 29-06-12 13:29 $
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
SET ECHO ON
|
||||
SPOOL alli09.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
|
||||
INSERT INTO fac_srtnotificatie
|
||||
(fac_srtnotificatie_code, fac_srtnotificatie_mode,
|
||||
fac_srtnotificatie_oms, fac_srtnotificatie_xmlnode,
|
||||
fac_srtnotificatie_url, fac_srtnotificatie_groep
|
||||
)
|
||||
VALUES ('CUST01', 3,
|
||||
'Nieuwe bestelaanvraag bouwbord ter beoordeling (bestelling ##KEY##)', 'bestelling',
|
||||
'bes/bes_search.asp?urole=bo' || '&' || 'rfo_key=', 0
|
||||
);
|
||||
|
||||
|
||||
-- Notificatie JOB die elke 3 dagen (3*24 = 72 uur) afgaat: 's ochtends om 7.00u
|
||||
-- Voorlopig ff met fac_notificatie_job_mode = 0 vullen, zodat de notificatiejob nog niet gaat lopen.
|
||||
-- Op moment dat die moet gaan lopen via applicatiebeheer noti-jobs de mode HANDMATIG op 3 zetten.
|
||||
INSERT INTO fac_notificatie_job
|
||||
(fac_notificatie_job_view,
|
||||
fac_notificatie_job_oms,
|
||||
fac_notificatie_job_interval, fac_notificatie_job_mode, fac_notificatie_job_nextrun
|
||||
)
|
||||
VALUES ('alli_v_notify_bo_bouwbord',
|
||||
'BES: Beoordeling van bouwbord door communicatiemedewerker',
|
||||
72, 0, NULL
|
||||
);
|
||||
|
||||
|
||||
----- RTM grafieken op portaal
|
||||
|
||||
-- Enkele dummy views om inserts hieronder mogelijk te maken...
|
||||
|
||||
CREATE OR REPLACE VIEW alli_v_graph_cat_kantoor
|
||||
AS SELECT * FROM DUAL;
|
||||
|
||||
CREATE OR REPLACE VIEW alli_v_graph_cat_bouwbord
|
||||
AS SELECT * FROM DUAL;
|
||||
|
||||
CREATE OR REPLACE VIEW alli_v_graph_cat_drukwerk
|
||||
AS SELECT * FROM DUAL;
|
||||
|
||||
CREATE OR REPLACE VIEW alli_v_graph_cat_ict
|
||||
AS SELECT * FROM DUAL;
|
||||
|
||||
CREATE OR REPLACE VIEW alli_v_graph_cnt_new_close
|
||||
AS SELECT * FROM DUAL;
|
||||
|
||||
-- RIJ 1:
|
||||
|
||||
-- Kantoorartikelen
|
||||
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows, fac_usrgraph_options)
|
||||
VALUES ('alli_v_graph_cat_kantoor', 4, 'VOLGORDE', 12, '{seriesColors: [''blue'', ''red''] , legend: {location:''n''} , axes: {yaxis: {min: 0}}}');
|
||||
|
||||
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
||||
SELECT 'rtm_bestelaanvragen', 10 ,NULL, 200, 13, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
||||
|
||||
|
||||
-- Bouwborden
|
||||
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows, fac_usrgraph_options)
|
||||
VALUES ('alli_v_graph_cat_bouwbord', 4, 'VOLGORDE', 12, '{seriesColors: [''blue''] , legend: { show: true, placement: ''outsideGrid'', location: ''n''}, axes: {yaxis: {label: '''' ,min: 0}}}');
|
||||
|
||||
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
||||
SELECT 'rtm_bestelaanvragen', 20 ,NULL, 200, 13, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
||||
|
||||
|
||||
-- Alle drukwerk + visitekaartjes
|
||||
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows, fac_usrgraph_options)
|
||||
VALUES ('alli_v_graph_cat_drukwerk', 4, 'VOLGORDE', 12, '{seriesColors: [''blue'', ''red'', ''green'', ''yellow'', ''black''] , axes: {yaxis: {label: '''' ,min: 0}}}');
|
||||
|
||||
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
||||
SELECT 'rtm_bestelaanvragen', 30 ,NULL, 200, 24, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
||||
|
||||
-- ICT Hardware & CYOD
|
||||
|
||||
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows, fac_usrgraph_options)
|
||||
VALUES ('alli_v_graph_cat_ict', 4, 'VOLGORDE', 12, '{seriesColors: [''blue'', ''red'', ''black''] , axes: {yaxis: {label: '''' ,min: 0}}}');
|
||||
|
||||
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
||||
SELECT 'rtm_bestelaanvragen', 40 ,NULL, 200, 24, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
||||
|
||||
-- Nieuwe en aflopende contracten
|
||||
|
||||
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows, fac_usrgraph_options)
|
||||
VALUES ('alli_v_graph_cnt_new_close', 4, 'VOLGORDE', 12, '{seriesColors: [''blue'', ''red''] , legend: {location:''n''} , axes: {yaxis: {min: 0}}}');
|
||||
|
||||
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
||||
SELECT 'rtm_bestelaanvragen', 50 ,NULL, 200, 12, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
||||
|
||||
|
||||
-- En de laatste stap is dat ...... alle grafieken in portaal worden getoond via autorisatie WEB_USER01 (Analyzer-achtig)
|
||||
-- Nu for-the-time being onderdrukken met WEB_USER30 (niemand ziet het).
|
||||
|
||||
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime, fac_functie_key)
|
||||
SELECT 'myfacilitor', 15 ,NULL, 200, 99, 'fac_widgetspage.asp?wgrp=rtm_bestelaanvragen', 600 , fac_functie_key
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_code = 'WEB_USER30';
|
||||
|
||||
|
||||
BEGIN adm.systrackscriptId('$Id$'); END;
|
||||
/
|
||||
|
||||
commit;
|
||||
|
||||
SPOOL OFF
|
||||
|
||||
@alli.sql
|
||||
Reference in New Issue
Block a user