PRIS#18689

svn path=/Customer/trunk/; revision=14363
This commit is contained in:
Maarten van der Heide
2010-09-23 14:02:16 +00:00
parent 681f3824a8
commit 628f96f7ce

View File

@@ -1,7 +1,7 @@
-- Script containing customer specific configuration sql statements for PRIS
-- (c) 2010 SG|facilitor bv
-- $Revision: 1 $
-- $Modtime: 22-09-10 18:04 $
-- $Revision: 2 $
-- $Modtime: 23-09-10 13:10 $
--
-- Support: +31 53 4800700
@@ -156,9 +156,14 @@ IS
|| TO_CHAR (mld_melding_note_aanmaak, 'dd-mm-yyyy')
|| ' / '
|| p.prs_perslid_naam_full
|| ' ---<br/>'
|| mn.mld_melding_note_omschrijving
|| '<br/><br/>'
|| ' ---'
|| CHR (13)
|| CHR (10)
|| SUBSTR (mn.mld_melding_note_omschrijving, 1, 3800)
|| CHR (13)
|| CHR (10)
|| CHR (13)
|| CHR (10)
notitie
FROM mld_melding_note mn, prs_v_perslid_fullnames p
WHERE mld_melding_key = p_mldkey
@@ -175,20 +180,18 @@ BEGIN
BEGIN
v_count := LENGTH (rec.notitie) + 5; -- Beetje speling qua lengte!
IF (v_count < 4000)
THEN
v_flexcontent :=
rec.notitie
|| SUBSTR (v_flexcontent, 1, (4000 - v_count));
END IF;
v_flexcontent :=
rec.notitie || SUBSTR (v_flexcontent, 1, (4000 - v_count));
END;
END LOOP;
RETURN v_flexcontent;
v_count := LENGTH (v_flexcontent) - 4;
RETURN SUBSTR (v_flexcontent, 1, v_count);
END;
/
/* Formatted on 22-9-2010 16:32:58 (QP5 v5.115.810.9015) */
/* Formatted on 23-9-2010 11:54:24 (QP5 v5.115.810.9015) */
CREATE OR REPLACE VIEW pris_v_rap_open_mldnotities
(
hide_f_key,
@@ -200,16 +203,18 @@ CREATE OR REPLACE VIEW pris_v_rap_open_mldnotities
plaats,
omschrijving,
status,
html_notities,
fclt_3d_afdeling_key
notities,
fclt_3d_locatie_key
)
AS
SELECT m.mld_melding_key mld_key,
TO_CHAR (m.mld_melding_key) nummer,
td.ins_discipline_omschrijving vakgroep,
sm.mld_stdmelding_omschrijving melding,
fn.prs_perslid_naam_full melder,
fac.gettrackingdate ('MLDNEW', m.mld_melding_key) datum,
p.prs_perslid_naam_full melder,
TO_CHAR (fac.gettrackingdate ('MLDNEW', m.mld_melding_key),
'dd-mm-yyyy')
datum,
l.alg_locatie_code
|| DECODE (og.alg_gebouw_key,
NULL, NULL,
@@ -224,12 +229,11 @@ AS
m.mld_melding_omschrijving mld_oms,
s.mld_statuses_omschrijving status,
pris_mld_notities (m.mld_melding_key) notities,
p.prs_afdeling_key
l.alg_locatie_key
FROM mld_melding m,
mld_stdmelding sm,
ins_tab_discipline td,
prs_perslid p,
prs_v_perslid_fullnames_all fn,
prs_v_perslid_fullnames_all p,
alg_v_allonrgoed_gegevens og,
alg_locatie l,
mld_statuses s
@@ -238,7 +242,6 @@ AS
AND sm.mld_ins_discipline_key = td.ins_discipline_key
AND p.prs_perslid_key =
fac.gettrackinguserkey ('MLDNEW', m.mld_melding_key)
AND p.prs_perslid_key = fn.prs_perslid_key
AND m.mld_alg_onroerendgoed_keys = og.alg_onroerendgoed_keys
AND og.alg_locatie_key = l.alg_locatie_key
AND m.mld_melding_status = s.mld_statuses_key;