DJIN#38162 RTMs
svn path=/Customer/trunk/; revision=32820
This commit is contained in:
@@ -3243,8 +3243,8 @@ AS
|
||||
- fac.safe_to_number (fac.getsetting ('fac_t_startofworkday'))
|
||||
uren
|
||||
FROM DUAL)
|
||||
SELECT mld_alg_locatie_key,
|
||||
vakgroep_oms,
|
||||
SELECT alg_locatie_key,
|
||||
alg_locatie_code || '/' || vakgroep_oms,
|
||||
ruimoptijd groen,
|
||||
totaal - ruimoptijd - echttelaat oranje,
|
||||
echttelaat rood,
|
||||
@@ -3261,7 +3261,8 @@ AS
|
||||
--|| 'urgent_jn=N'
|
||||
|| '&'
|
||||
|| 'vervolg_jn=N'
|
||||
FROM ( SELECT m.mld_alg_locatie_key,
|
||||
FROM ( SELECT l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
md.ins_discipline_key,
|
||||
sd.ins_srtdiscipline_prefix
|
||||
|| '-'
|
||||
@@ -3295,7 +3296,8 @@ AS
|
||||
mld_melding m,
|
||||
mld_stdmelding sm,
|
||||
mld_discipline md,
|
||||
ins_srtdiscipline sd
|
||||
ins_srtdiscipline sd,
|
||||
alg_locatie l
|
||||
WHERE o.mld_statusopdr_key IN (3, 4, 5, 8, 10) -- 3-Ter fiattering, 4-Gefiatteerd, 5-Uitgegeven, 8-Geaccepteerd, 10-Ter goedkeuring
|
||||
AND o.mld_melding_key = m.mld_melding_key
|
||||
--AND m.mld_melding_status IN (2, 3, 4, 7, 0) -- 2-Ingevoerd, 3-Ingezien, 4-Geaccepteerd, 7-Uitgegeven, 0-Pending
|
||||
@@ -3305,7 +3307,9 @@ AS
|
||||
AND sm.mld_ins_discipline_key = md.ins_discipline_key
|
||||
AND md.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
AND md.ins_discipline_key != 24 -- Gebouwbeheer
|
||||
GROUP BY m.mld_alg_locatie_key,
|
||||
AND m.mld_alg_locatie_key = l.alg_locatie_key(+)
|
||||
GROUP BY l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
md.ins_discipline_key,
|
||||
sd.ins_srtdiscipline_prefix
|
||||
|| '-'
|
||||
@@ -3329,8 +3333,8 @@ AS
|
||||
- fac.safe_to_number (fac.getsetting ('fac_t_startofworkday'))
|
||||
uren
|
||||
FROM DUAL)
|
||||
SELECT mld_alg_locatie_key,
|
||||
mld_stdmelding_omschrijving,
|
||||
SELECT alg_locatie_key,
|
||||
alg_locatie_code || '/' || mld_stdmelding_omschrijving,
|
||||
ruimoptijd groen,
|
||||
totaal - ruimoptijd - echttelaat oranje,
|
||||
echttelaat rood,
|
||||
@@ -3347,7 +3351,8 @@ AS
|
||||
--|| 'urgent_jn=N'
|
||||
|| '&'
|
||||
|| 'vervolg_jn=N'
|
||||
FROM ( SELECT m.mld_alg_locatie_key,
|
||||
FROM ( SELECT l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
sm.mld_stdmelding_key,
|
||||
sm.mld_stdmelding_omschrijving,
|
||||
COUNT ( * ) totaal,
|
||||
@@ -3378,7 +3383,8 @@ AS
|
||||
mld_melding m,
|
||||
mld_stdmelding sm,
|
||||
mld_discipline md,
|
||||
ins_srtdiscipline sd
|
||||
ins_srtdiscipline sd,
|
||||
alg_locatie l
|
||||
WHERE o.mld_statusopdr_key IN (3, 4, 5, 8, 10) -- 3-Ter fiattering, 4-Gefiatteerd, 5-Uitgegeven, 8-Geaccepteerd, 10-Ter goedkeuring
|
||||
AND o.mld_melding_key = m.mld_melding_key
|
||||
--AND m.mld_melding_status IN (2, 3, 4, 7, 0) -- 2-Ingevoerd, 3-Ingezien, 4-Geaccepteerd, 7-Uitgegeven, 0-Pending
|
||||
@@ -3388,7 +3394,8 @@ AS
|
||||
AND sm.mld_ins_discipline_key = md.ins_discipline_key
|
||||
AND md.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
AND md.ins_discipline_key = 24 -- Gebouwbeheer
|
||||
GROUP BY m.mld_alg_locatie_key, sm.mld_stdmelding_key, sm.mld_stdmelding_omschrijving) x;
|
||||
AND m.mld_alg_locatie_key = l.alg_locatie_key(+)
|
||||
GROUP BY l.alg_locatie_key, l.alg_locatie_code, sm.mld_stdmelding_key, sm.mld_stdmelding_omschrijving) x;
|
||||
|
||||
-- Lopende urgente opdrachten per vakgroep onder alle vakgroepen behalve Gebouwbeheer (24) tov. SLA van melding.
|
||||
-- NB. Alleen kritische/hoge prio en exclusief vervolgmeldingen.
|
||||
@@ -3408,8 +3415,8 @@ AS
|
||||
- fac.safe_to_number (fac.getsetting ('fac_t_startofworkday'))
|
||||
uren
|
||||
FROM DUAL)
|
||||
SELECT mld_alg_locatie_key,
|
||||
vakgroep_oms,
|
||||
SELECT alg_locatie_key,
|
||||
alg_locatie_code || '/' || vakgroep_oms,
|
||||
ruimoptijd groen,
|
||||
totaal - ruimoptijd - echttelaat oranje,
|
||||
echttelaat rood,
|
||||
@@ -3426,7 +3433,8 @@ AS
|
||||
|| 'urgent_jn=J'
|
||||
|| '&'
|
||||
|| 'vervolg_jn=N'
|
||||
FROM ( SELECT m.mld_alg_locatie_key,
|
||||
FROM ( SELECT l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
md.ins_discipline_key,
|
||||
sd.ins_srtdiscipline_prefix
|
||||
|| '-'
|
||||
@@ -3460,7 +3468,8 @@ AS
|
||||
mld_melding m,
|
||||
mld_stdmelding sm,
|
||||
mld_discipline md,
|
||||
ins_srtdiscipline sd
|
||||
ins_srtdiscipline sd,
|
||||
alg_locatie l
|
||||
WHERE o.mld_statusopdr_key IN (3, 4, 5, 8, 10) -- 3-Ter fiattering, 4-Gefiatteerd, 5-Uitgegeven, 8-Geaccepteerd, 10-Ter goedkeuring
|
||||
AND o.mld_melding_key = m.mld_melding_key
|
||||
--AND m.mld_melding_status IN (2, 3, 4, 7, 0) -- 2-Ingevoerd, 3-Ingezien, 4-Geaccepteerd, 7-Uitgegeven, 0-Pending
|
||||
@@ -3470,7 +3479,9 @@ AS
|
||||
AND sm.mld_ins_discipline_key = md.ins_discipline_key
|
||||
AND md.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
AND md.ins_discipline_key != 24 -- Gebouwbeheer
|
||||
GROUP BY m.mld_alg_locatie_key,
|
||||
AND m.mld_alg_locatie_key = l.alg_locatie_key(+)
|
||||
GROUP BY l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
md.ins_discipline_key,
|
||||
sd.ins_srtdiscipline_prefix
|
||||
|| '-'
|
||||
@@ -3494,8 +3505,8 @@ AS
|
||||
- fac.safe_to_number (fac.getsetting ('fac_t_startofworkday'))
|
||||
uren
|
||||
FROM DUAL)
|
||||
SELECT mld_alg_locatie_key,
|
||||
mld_stdmelding_omschrijving,
|
||||
SELECT alg_locatie_key,
|
||||
alg_locatie_code || '/' || mld_stdmelding_omschrijving,
|
||||
ruimoptijd groen,
|
||||
totaal - ruimoptijd - echttelaat oranje,
|
||||
echttelaat rood,
|
||||
@@ -3512,7 +3523,8 @@ AS
|
||||
|| 'urgent_jn=J'
|
||||
|| '&'
|
||||
|| 'vervolg_jn=N'
|
||||
FROM ( SELECT m.mld_alg_locatie_key,
|
||||
FROM ( SELECT l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
sm.mld_stdmelding_key,
|
||||
sm.mld_stdmelding_omschrijving,
|
||||
COUNT ( * ) totaal,
|
||||
@@ -3543,7 +3555,8 @@ AS
|
||||
mld_melding m,
|
||||
mld_stdmelding sm,
|
||||
mld_discipline md,
|
||||
ins_srtdiscipline sd
|
||||
ins_srtdiscipline sd,
|
||||
alg_locatie l
|
||||
WHERE o.mld_statusopdr_key IN (3, 4, 5, 8, 10) -- 3-Ter fiattering, 4-Gefiatteerd, 5-Uitgegeven, 8-Geaccepteerd, 10-Ter goedkeuring
|
||||
AND o.mld_melding_key = m.mld_melding_key
|
||||
--AND m.mld_melding_status IN (2, 3, 4, 7, 0) -- 2-Ingevoerd, 3-Ingezien, 4-Geaccepteerd, 7-Uitgegeven, 0-Pending
|
||||
@@ -3553,7 +3566,8 @@ AS
|
||||
AND sm.mld_ins_discipline_key = md.ins_discipline_key
|
||||
AND md.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
AND md.ins_discipline_key = 24 -- Gebouwbeheer
|
||||
GROUP BY m.mld_alg_locatie_key, sm.mld_stdmelding_key, sm.mld_stdmelding_omschrijving) x;
|
||||
AND m.mld_alg_locatie_key = l.alg_locatie_key(+)
|
||||
GROUP BY l.alg_locatie_key, l.alg_locatie_code, sm.mld_stdmelding_key, sm.mld_stdmelding_omschrijving) x;
|
||||
|
||||
-- Nog niet geaccepteerde opdrachten per vakgroep onder alle vakgroepen tov. SLA van melding.
|
||||
-- NB. Alle prio en inclusief vervolgmeldingen.
|
||||
@@ -3573,8 +3587,8 @@ AS
|
||||
- fac.safe_to_number (fac.getsetting ('fac_t_startofworkday'))
|
||||
uren
|
||||
FROM DUAL)
|
||||
SELECT mld_alg_locatie_key,
|
||||
vakgroep_oms,
|
||||
SELECT alg_locatie_key,
|
||||
alg_locatie_code || '/' || vakgroep_oms,
|
||||
ruimoptijd groen,
|
||||
totaal - ruimoptijd - echttelaat oranje,
|
||||
echttelaat rood,
|
||||
@@ -3587,7 +3601,8 @@ AS
|
||||
|| TO_CHAR (ins_discipline_key)
|
||||
--|| '&'
|
||||
--|| 'urgent_jn=N'
|
||||
FROM ( SELECT m.mld_alg_locatie_key,
|
||||
FROM ( SELECT l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
md.ins_discipline_key,
|
||||
sd.ins_srtdiscipline_prefix
|
||||
|| '-'
|
||||
@@ -3621,14 +3636,17 @@ AS
|
||||
mld_melding m,
|
||||
mld_stdmelding sm,
|
||||
mld_discipline md,
|
||||
ins_srtdiscipline sd
|
||||
WHERE o.mld_statusopdr_key IN (3, 4, 10) -- 3-Ter fiattering, 4-Gefiatteerd, 10-Ter goedkeuring
|
||||
ins_srtdiscipline sd,
|
||||
alg_locatie l
|
||||
WHERE o.mld_statusopdr_key IN (3, 4, 5, 10) -- 3-Ter fiattering, 4-Gefiatteerd, 5-Uitgegeven, 10-Ter goedkeuring
|
||||
AND o.mld_melding_key = m.mld_melding_key
|
||||
--AND m.mld_melding_status IN (2, 3, 4, 7, 0) -- 2-Ingevoerd, 3-Ingezien, 4-Geaccepteerd, 7-Uitgegeven, 0-Pending
|
||||
AND m.mld_stdmelding_key = sm.mld_stdmelding_key
|
||||
AND sm.mld_ins_discipline_key = md.ins_discipline_key
|
||||
AND md.ins_srtdiscipline_key = sd.ins_srtdiscipline_key
|
||||
GROUP BY m.mld_alg_locatie_key,
|
||||
AND m.mld_alg_locatie_key = l.alg_locatie_key(+)
|
||||
GROUP BY l.alg_locatie_key,
|
||||
l.alg_locatie_code,
|
||||
md.ins_discipline_key,
|
||||
sd.ins_srtdiscipline_prefix
|
||||
|| '-'
|
||||
|
||||
Reference in New Issue
Block a user