FCLT#82642 savepoint, technisch goed.
svn path=/Database/trunk/; revision=64590
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
-- Script bevat initiele configuratie voor een standaard FM inrichting van Facilitor
|
||||
-- Voor FM-implementaties zal dit Het Startpunt zijn.
|
||||
--
|
||||
--
|
||||
-- Verwachting is dat dit zo ongeveer het eerste is wat je zult doen bij een implementatie,
|
||||
-- niettemin doen we ons best -en zullen we dat moeten verifieren- om het zodanig opgezet te hebben
|
||||
-- dat het ook later nog kan worden uitgevoerd. Niet omdat dat waarschijnlijk is, maar omdat zo
|
||||
@@ -20,8 +21,15 @@
|
||||
-- De basisinrichting wordt per module van onder naar boven opgebouwd, en eindigt met een zeer bescheiden
|
||||
-- aantal appetizers: fictieve gegevens die e.e.a. voor de eerste confrontatie minder abstract maken.
|
||||
--
|
||||
--
|
||||
-- Let op: deze code wordt letterlijk geinclude als body van procedure ini.fmis_ini, het is geen SQL*Plus!
|
||||
--
|
||||
-- Er wordt gebruik gemaakt van importfuncties, die COMMIT's doen. Deze hele procedure moet dus foutloos
|
||||
-- lopen want het is alles of niks. TODO: kijk naar errorhandling, in INI_PAC?
|
||||
--
|
||||
|
||||
-- BASISCONFIG PER MODULE
|
||||
|
||||
-- 1. ALG
|
||||
-- Gebouwfuncties en ruimtefuncties (afgeleid uit XD; denk dat het beter kan maar elke indeling kent zijn POV)
|
||||
-- Bv Bouwbesluit, NEN. De Facilitaire NEN lijkt (!) dat niet te bieden.
|
||||
@@ -59,6 +67,7 @@ INSERT INTO alg_srtruimte(alg_srtruimte_omschrijving, prs_bevat_werkplek, prs_ve
|
||||
-- Vloerafwerking: een eigen tabel met gangbare Vloerafwerkingen en een referentiekenmerk
|
||||
-- Glasoppervlak: een number, wellicht per type (separatieglas, buiten)
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'ALG completed', '');
|
||||
|
||||
-- 2. INS
|
||||
-- Vakgroeptypes
|
||||
@@ -119,6 +128,8 @@ INSERT INTO ins_srtdeel (ins_srtgroep_key, ins_srtdeel_code, ins_srtdeel_omschri
|
||||
SELECT ins_srtgroep_key, 'ST','Temperatuursensor', 'fa-temperature-half', 2 FROM ins_srtgroep WHERE ins_srtgroep_omschrijving = 'Sensoren' UNION ALL
|
||||
SELECT ins_srtgroep_key, 'SC','CO2-sensor', 'fa-sensor-cloud', 2 FROM ins_srtgroep WHERE ins_srtgroep_omschrijving = 'Sensoren';
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'INS completed', '');
|
||||
|
||||
-- 3. MLD
|
||||
-- Importeren van een standaard meldingenstructuur (MLD), maakt alle bovenliggende niveaus zelf aan
|
||||
-- Dit mag inhoudelijk beter
|
||||
@@ -289,6 +300,8 @@ INSERT INTO mld_kenmerk (mld_srtkenmerk_key, mld_kenmerk_niveau, mld_kenmerk_vol
|
||||
FROM mld_srtkenmerk
|
||||
WHERE mld_srtkenmerk_omschrijving = 'Bijlagen' and mld_srtkenmerk_kenmerktype = 'M';
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'MLD completed', '');
|
||||
|
||||
-- 4. RES
|
||||
|
||||
-- Vraag is of we dit niet UIT de RES_INI moeten halen en hier moeten definieren.
|
||||
@@ -338,6 +351,8 @@ INSERT INTO res_srtartikel_onrgoed (alg_onrgoed_key, alg_onrgoed_niveau, res_dis
|
||||
FROM res_discipline rd, alg_locatie l
|
||||
WHERE ins_discipline_min_level = 2;
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'RES completed', '');
|
||||
|
||||
-- 5. BEZ
|
||||
-- Zaken uit BEZ_INI hier overgenomen
|
||||
INSERT INTO bez_actie_groep (bez_actie_groep_omschrijving, bez_actie_groep_default) VALUES ('FMIS-Standaard', 1);
|
||||
@@ -347,6 +362,7 @@ INSERT INTO bez_actie (bez_actie_omschrijving, bez_actie_groep_key) (SELECT 'Beg
|
||||
INSERT INTO bez_actie (bez_actie_omschrijving, bez_actie_groep_key) (SELECT 'Verwijzen naar ontvanger' , bez_actie_groep_key FROM bez_actie_groep WHERE bez_actie_groep_omschrijving = 'FMIS-Standaard');
|
||||
INSERT INTO bez_actie (bez_actie_omschrijving, bez_actie_groep_key) (SELECT 'Op laten halen (bellen)' , bez_actie_groep_key FROM bez_actie_groep WHERE bez_actie_groep_omschrijving = 'FMIS-Standaard');
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'BEZ completed', '');
|
||||
|
||||
-- 6. CNT
|
||||
DECLARE
|
||||
@@ -380,14 +396,17 @@ BEGIN
|
||||
SELECT v_key, ins_discipline_key, 'S', 100, 0 FROM cnt_discipline;
|
||||
END;
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'CNT completed', '');
|
||||
|
||||
-- 7. FAQ
|
||||
INSERT INTO ins_tab_discipline (ins_discipline_omschrijving, ins_discipline_module) VALUES ('Facilitaire Kennisbank', 'FAQ');
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'FAQ completed', '');
|
||||
-- 8. MSG
|
||||
-- Misschien ook hier nog een berichtje, anders iig de catalogi
|
||||
INSERT INTO ins_tab_discipline (ins_discipline_omschrijving, ins_discipline_module) VALUES ('Algemene berichten', 'MSG');
|
||||
INSERT INTO ins_tab_discipline (ins_discipline_omschrijving, ins_discipline_module) VALUES ('Huishoudelijke mededelingen', 'MSG');
|
||||
fac.writelog ('INI.FMIS_INI','I', 'MSG completed', '');
|
||||
|
||||
-- 9. CAD
|
||||
-- De standaardthema's uit CAD-INI van vroeger heb je niet met ITSM nodig, dus horen bij FMIS
|
||||
@@ -419,9 +438,10 @@ INSERT INTO cad_thema (cad_thema_omschrijving, cad_legenda_key, cad_thema_view,
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_code = 'WEB_RESFOF';
|
||||
INSERT INTO cad_thema (cad_thema_omschrijving, cad_legenda_key, cad_thema_view, cad_thema_type, fac_functie_key)
|
||||
SELECT 'Werkplekbezetting', 4, 'cad_v_thema_deel_res_datum', 17, fac_functie_key
|
||||
FROM fac_functie
|
||||
WHERE fac_functie_code = 'WEB_RESUSE';
|
||||
SELECT 'Werkplekbezetting', cad_legenda_key, 'cad_v_thema_deel_res_datum', 17, fac_functie_key
|
||||
FROM fac_functie, cad_legenda
|
||||
WHERE fac_functie_code = 'WEB_RESUSE'
|
||||
AND cad_legenda_omschrijving = 'FMIS-Bezetting';
|
||||
|
||||
-- CAD labels
|
||||
INSERT INTO cad_label (cad_label_omschrijving, cad_label_view, cad_label_type, fac_functie_key, cad_label_size)
|
||||
@@ -468,6 +488,8 @@ UPDATE fac_setting SET fac_setting_pvalue = (SELECT MAX(cad_thema_key) FROM cad_
|
||||
UPDATE fac_setting SET fac_setting_pvalue = (SELECT MAX(cad_thema_key) FROM cad_thema WHERE cad_thema_view = 'cad_v_label_bezetbareruimtes') WHERE fac_setting_name = 'fg_infobordlabel_key' AND fac_setting_pvalue IS NULL;
|
||||
UPDATE fac_setting SET fac_setting_pvalue = (SELECT MAX(fac_usrrap_key) FROM fac_usrrap WHERE fac_usrrap_view_name = 'res_v_rap_infobordframe') WHERE fac_setting_name = 'fg_infobordreport_key' AND fac_setting_pvalue IS NULL;
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'CAD completed', '');
|
||||
|
||||
-- 10. UDR
|
||||
-- Kunnen we een paar FMIS-rapporten verzinnen? Neu.
|
||||
|
||||
@@ -573,6 +595,7 @@ INSERT INTO fac_groeprechten (fac_groep_key, fac_functie_key, ins_discipline_key
|
||||
AND gr.ins_discipline_key = d.ins_discipline_key
|
||||
AND gr.fac_groep_key = g.fac_groep_key);
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'AUT completed', '');
|
||||
|
||||
|
||||
|
||||
@@ -693,6 +716,8 @@ INSERT INTO fac_imp_ins (ins_discipline_omschrijving, ins_srtgroep_omschrijving,
|
||||
BEGIN fac_update_ins(ini.getImportKey('INS')); END;
|
||||
DELETE FROM fac_imp_ins;
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'Sample content completed', '');
|
||||
|
||||
|
||||
INSERT INTO fac_nieuws (fac_nieuws_titel, fac_nieuws_omschrijving, fac_nieuws_image,
|
||||
prs_perslid_key)
|
||||
@@ -701,6 +726,7 @@ INSERT INTO fac_nieuws (fac_nieuws_titel, fac_nieuws_omschrijving, fac_nieuws_im
|
||||
FROM prs_perslid
|
||||
WHERE prs_perslid_oslogin = '_FACILITOR';
|
||||
|
||||
fac.writelog ('INI.FMIS_INI','I', 'All completed', '');
|
||||
|
||||
------ payload end ------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user