PNBR#54177 QR Code Objects View voor PNBR
svn path=/Customer/trunk/; revision=38889
This commit is contained in:
@@ -5622,6 +5622,74 @@ AS
|
||||
SELECT prs_bedrijf_key, prs_bedrijf_naam, prs_bedrijf_verwijder
|
||||
FROM PRS_BEDRIJF;
|
||||
|
||||
|
||||
|
||||
-- View voor QR Codes
|
||||
CREATE OR REPLACE VIEW PNBR_V_INS_QRC_OBJECT
|
||||
(
|
||||
HIDE_F_SORT,
|
||||
LOCATIE_CODE,
|
||||
FCLT_F_LOCATIE,
|
||||
FCLT_F_GEBOUW,
|
||||
FCLT_F_PLAATS,
|
||||
RUIMTENR,
|
||||
FCLT_F_DISCIPLINE,
|
||||
FCLT_F_OBJECTGROEP,
|
||||
FCLT_F_OBJECTSOORT,
|
||||
FCLT_F_IDENTIFICATIE,
|
||||
FCLT_F_BOOKMARK,
|
||||
INS_DEEL_KEY,
|
||||
INS_SRTDEEL_KEY,
|
||||
FCLT_3D_DISCIPLINE_KEY,
|
||||
FCLT_3D_LOCATIE_KEY,
|
||||
INS_ALG_RUIMTE_TYPE,
|
||||
INS_ALG_RUIMTE_KEY,
|
||||
HIDE_F_BOOKMARK_ID
|
||||
)
|
||||
AS
|
||||
SELECT i.ins_deel_omschrijving hide_f_sort,
|
||||
l.alg_locatie_code,
|
||||
l.alg_locatie_code || ' ' || l.alg_locatie_omschrijving
|
||||
fclt_f_locatie,
|
||||
o.alg_gebouw_omschrijving fclt_f_gebouw,
|
||||
SUBSTR (o.alg_plaatsaanduiding, 13) fclt_f_plaats,
|
||||
o.alg_ruimte_nr,
|
||||
d.ins_discipline_omschrijving fclt_f_discipline,
|
||||
g.ins_srtgroep_omschrijving fclt_f_objectgroep,
|
||||
s.ins_srtdeel_omschrijving fclt_f_objectsoort,
|
||||
i.ins_deel_omschrijving fclt_f_identificatie,
|
||||
b.fac_bookmark_naam fclt_f_bookmark,
|
||||
i.ins_deel_key,
|
||||
s.ins_srtdeel_key,
|
||||
i.ins_discipline_key fclt_3d_discipline_key,
|
||||
l.alg_locatie_key fclt_3d_locatie_key,
|
||||
i.ins_alg_ruimte_type,
|
||||
i.ins_alg_ruimte_key,
|
||||
b.fac_bookmark_id hide_f_bookmark_id
|
||||
FROM ins_deel i,
|
||||
ins_v_alg_overzicht o,
|
||||
ins_srtdeel s,
|
||||
ins_srtgroep g,
|
||||
ins_discipline d,
|
||||
alg_locatie l,
|
||||
fac_bookmark b
|
||||
WHERE b.fac_bookmark_path = 'appl/pda/ins_deel.asp'
|
||||
AND COALESCE (b.fac_bookmark_expire, SYSDATE + 1) > SYSDATE
|
||||
AND ins_deel_verwijder IS NULL
|
||||
AND COALESCE (i.ins_deel_vervaldatum, SYSDATE + 1) > SYSDATE
|
||||
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 d.ins_discipline_key = g.ins_discipline_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 l.alg_locatie_key = i.ins_alg_locatie_key;
|
||||
|
||||
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
Reference in New Issue
Block a user