SKAF#22067
svn path=/Customer/trunk/; revision=15122
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-- Script containing customer specific configuration sql statements for SKAF
|
||||
-- (c) 2009 SG|facilitor bv
|
||||
-- $Revision: 12 $
|
||||
-- $Modtime: 6-12-11 11:52 $
|
||||
-- $Revision: 13 $
|
||||
-- $Modtime: 29-12-11 16:23 $
|
||||
--
|
||||
-- Support: +31 53 4800710
|
||||
|
||||
@@ -2062,8 +2062,55 @@ END;
|
||||
/
|
||||
|
||||
|
||||
-- Hier de view met alle INS-objecten tbv QRC rapportage
|
||||
CREATE OR REPLACE VIEW skaf_v_ins_qrc_inventaris
|
||||
(fclt_3d_discipline_key, fclt_3d_locatie_key, fclt_f_wijk, fclt_f_locatie, plaats, ins_srtdeel_code, ins_srtdeel_omschrijving, ins_deel_omschrijving, ins_deel_key, ins_srtdeel_key,
|
||||
fclt_f_objectsoort, ins_alg_ruimte_type, alg_district_key, ins_deel_upper, alg_ruimte_key,hide_f_encrypt_url, hide_f_bookmark_id
|
||||
)
|
||||
AS
|
||||
SELECT i.ins_discipline_key,
|
||||
l.alg_locatie_key,
|
||||
di.alg_district_omschrijving,
|
||||
l.alg_locatie_omschrijving,
|
||||
o.alg_plaatsaanduiding
|
||||
|| ' ('
|
||||
|| (SELECT r.alg_ruimte_omschrijving
|
||||
FROM alg_ruimte r
|
||||
WHERE r.alg_ruimte_key = i.ins_alg_ruimte_key)
|
||||
|| ')'
|
||||
plaats,
|
||||
s.ins_srtdeel_code,
|
||||
s.ins_srtdeel_omschrijving,
|
||||
i.ins_deel_omschrijving,
|
||||
i.ins_deel_key,
|
||||
s.ins_srtdeel_key,
|
||||
s.ins_srtdeel_upper,
|
||||
i.ins_alg_ruimte_type,
|
||||
l.alg_district_key,
|
||||
ins_deel_upper,
|
||||
i.ins_alg_ruimte_key,
|
||||
fac.encrypt('ins_key=' || i.ins_deel_key, 'sCAULHSRDAEqngHD'),
|
||||
'sCAULHSRDAEqngHD'
|
||||
FROM ins_deel i,
|
||||
ins_v_alg_overzicht o,
|
||||
ins_srtdeel s,
|
||||
alg_locatie l,
|
||||
alg_district di
|
||||
WHERE i.ins_deel_verwijder IS NULL
|
||||
AND i.ins_deel_module = 'INS'
|
||||
AND i.ins_deel_parent_key IS NULL
|
||||
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 s.ins_srtdeel_key = i.ins_srtdeel_key;
|
||||
|
||||
|
||||
|
||||
BEGIN adm.systrackscript('$Workfile: skaf.sql $', '$Revision: 12 $', 0); END;
|
||||
|
||||
BEGIN adm.systrackscript('$Workfile: skaf.sql $', '$Revision: 13 $', 0); END;
|
||||
/
|
||||
|
||||
BEGIN fac.registercustversion('SKAF', 9); END;
|
||||
|
||||
Reference in New Issue
Block a user