Files
Customer/onces/SKAF/skaf4.sql
Peter Koerhuis 3b8d7f1dcc Migratie once-scripts van /branch naar /onces
svn path=/Customer/; revision=21207
2014-04-02 13:57:31 +00:00

144 lines
4.6 KiB
SQL

-- Customer specific once-script to add PRS-import as specified
-- by SKAmersFoorts
-- (c) 2010 SG|facilitor bv
-- $Revision$
-- $Id$
--
-- Support: +31 53 4800710
SET ECHO ON;
SPOOL skaf4.lst;
-- Thema ruimtesoort sleepbaar maken, dus cad_thema_type van 1 naar 129,
-- Omdat nu sleepbaar is geworden, ook alleen voor de ruimtebeheer mogelijk,
-- dus update van fac_functie_key van 45 (ALG_USE) naar 44 (ALG_MAN)
update cad_thema
set cad_thema_type = 129,
fac_functie_key = 44
where cad_thema_key = 1;
insert into cad_legenda (cad_legenda_omschrijving, cad_legenda_discreet) values ('Vloersoort', 1);
insert into cad_thema (cad_thema_omschrijving, cad_legenda_key, cad_thema_view, cad_thema_type, fac_functie_key)
select 'Vloersoort', cad_legenda_key, 'cad_v_thema_vloersoort', 129 , 44
from cad_legenda
where cad_legenda_omschrijving = 'Vloersoort';
insert into cad_legendawaarde (cad_legenda_key, cad_legendawaarde_value, cad_legendawaarde_rgb, cad_legendawaarde_omschr)
select distinct cad_legenda_key, waarde, to_char(dbms_utility.get_hash_value(waarde,0,power(2,24)), '0XXXXX'), waarde
FROM cad_v_thema_vloersoort, cad_legenda
where cad_legenda_omschrijving = 'Vloersoort';
-- Rapport SCHOONMAAK-1 skaf_v_rap_sch_ruimtenivo
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
)
VALUES ('Schoonmaak: ruimten, ruimtesoort, vloer en oppervlakte',
'skaf_v_rap_sch_ruimtenivo',
NULL,
NULL,
NULL,
0,
0,
0,
'Rapportage van alle ruimten met de gegevens ruimtesoort, vloerafwerking en vloeroppervlak (m2).',
58,
0
);
-- Rapport SCHOONMAAK-2 skaf_v_rap_sch_locatie_rsoort
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
)
VALUES ('Schoonmaak: locaties, ruimtesoorten en oppervlakte',
'skaf_v_rap_sch_locatie_rsoort',
NULL,
NULL,
NULL,
0,
0,
0,
'Rapportage van alle locaties met de gegevens ruimtesoort en vloeroppervlak (m2).',
58,
0
);
-- Rapport SCHOONMAAK-3 skaf_v_rap_sch_locatie_vloer
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
)
VALUES ('Schoonmaak: locaties, vloerafwerkingen en oppervlakte',
'skaf_v_rap_sch_locatie_vloer',
NULL,
NULL,
NULL,
0,
0,
0,
'Rapportage van alle locaties met de gegevens vloerafwerking en vloeroppervlak (m2).',
58,
0
);
-- Rapport SCHOONMAAK-4 skaf_v_rap_sch_locatie
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
)
VALUES ('Schoonmaak: locaties en oppervlakte',
'skaf_v_rap_sch_locatie',
NULL,
NULL,
NULL,
0,
0,
0,
'Rapportage van alle locaties met de vloeroppervlak (m2).',
58,
0
);
COMMIT;
SPOOL OFF;