ALLI#31511 Implementatie FZ ALLI -- Rapportages QR-codes MLD/INS en RES

svn path=/Customer/trunk/; revision=24879
This commit is contained in:
Peter Koerhuis
2015-04-16 14:51:15 +00:00
parent 0c160b0eca
commit 4da9dacb5f

View File

@@ -2593,10 +2593,110 @@ AS SELECT TO_CHAR(b.bes_bestelling_key),
GROUP BY b.bes_bestelling_key, bd.prs_bedrijf_key; GROUP BY b.bes_bestelling_key, bd.prs_bedrijf_key;
-- Voor genereren van QR-codes voor meldingen op objecten
CREATE OR REPLACE VIEW alli_v_rap_qrc_ins
(
fclt_3d_discipline_key,
fclt_3d_locatie_key,
fclt_f_locatie,
fclt_f_gebouw,
plaats,
soortruimte,
ins_srtdeel_code,
ins_srtdeel_omschrijving,
ins_deel_omschrijving,
ins_deel_key,
ins_srtdeel_key,
fclt_f_objectsoort,
fclt_f_bookmark,
ins_alg_ruimte_type,
alg_district_key,
ins_deel_upper,
alg_ruimte_key,
hide_f_bookmark_id
)
AS
SELECT i.ins_discipline_key,
l.alg_locatie_key,
l.alg_locatie_omschrijving,
o.alg_gebouw_omschrijving,
o.alg_plaatsaanduiding plaats,
(SELECT r.alg_ruimte_omschrijving
FROM alg_ruimte r
WHERE r.alg_ruimte_key = i.ins_alg_ruimte_key)
soortruimte,
s.ins_srtdeel_code,
s.ins_srtdeel_omschrijving,
i.ins_deel_omschrijving,
i.ins_deel_key,
s.ins_srtdeel_key,
s.ins_srtdeel_omschrijving,
b.fac_bookmark_naam,
i.ins_alg_ruimte_type,
l.alg_district_key,
ins_deel_omschrijving,
i.ins_alg_ruimte_key,
b.fac_bookmark_id
FROM ins_deel i,
ins_v_alg_overzicht o,
ins_srtdeel s,
ins_srtgroep g,
alg_locatie l,
alg_district di,
fac_bookmark b,
mld_stdmelding sm
WHERE b.fac_bookmark_path = 'appl/pda/melding.asp'
AND b.fac_bookmark_query LIKE '%stdm_key='||sm.mld_stdmelding_key||'%'
AND (b.fac_bookmark_expire IS NULL OR b.fac_bookmark_expire > SYSDATE)
AND ins_deel_verwijder IS NULL
AND i.ins_deel_module = 'INS'
AND i.ins_deel_parent_key IS NULL
AND s.ins_srtdeel_key = i.ins_srtdeel_key
AND g.ins_srtgroep_key = s.ins_srtgroep_key
AND o.alg_onroerendgoed_keys = i.ins_alg_ruimte_key
AND o.alg_onroerendgoed_type = i.ins_alg_ruimte_type
AND i.ins_alg_ruimte_type IN ('T', 'R', 'W')
AND o.alg_locatie_key = i.ins_alg_locatie_key
AND i.ins_alg_locatie_key = l.alg_locatie_key
AND l.alg_district_key = di.alg_district_key
AND sm.ins_srtinst_key IS NOT NULL
AND sm.ins_srtinst_key = DECODE(sm.ins_srtinst_niveau,
'S', i.ins_srtdeel_key,
'G', s.ins_srtgroep_key,
'D', g.ins_discipline_key);
-- Voor genereren van QR-codes voor RES-ruimtes
CREATE OR REPLACE VIEW alli_v_rap_qrc_res_ruimte
(
fclt_3d_discipline_key,
fclt_3d_locatie_key,
fclt_f_locatie,
fclt_f_gebouw,
fclt_f_ruimtenaam,
res_ruimte_key,
hide_f_bookmark_id
)
AS
SELECT DISTINCT rg.res_discipline_key,
l.alg_locatie_key,
l.alg_locatie_omschrijving,
g.alg_gebouw_naam,
rg.res_ruimte_nr,
rg.res_ruimte_key,
b.fac_bookmark_id
FROM res_v_res_ruimte_gegevens rg,
alg_locatie l,
alg_gebouw g,
fac_bookmark b
WHERE b.fac_bookmark_id = 'BhIEFEoAItbkuYJL'
AND g.alg_gebouw_key = rg.alg_gebouw_key
AND l.alg_locatie_key = rg.alg_locatie_key;
BEGIN adm.systrackscriptId('$Id$', 0); END; BEGIN adm.systrackscriptId('$Id$', 0); END;
/ /
BEGIN fac.registercustversion('ALLI', 9); END; BEGIN fac.registercustversion('ALLI', 10); END;
/ /
commit; commit;