PCHW#52064 -- Rapportages monitoring toevoegen.
svn path=/Customer/trunk/; revision=36893
This commit is contained in:
@@ -538,6 +538,7 @@ CREATE OR REPLACE VIEW pchx_v_monitoring
|
||||
variabelekorting,
|
||||
wht_tht,
|
||||
totaal,
|
||||
totaal_z_respijt,
|
||||
totaal_index,
|
||||
status,
|
||||
afgerond,
|
||||
@@ -595,6 +596,12 @@ AS
|
||||
coalesce(bk,0) + DECODE(vk, null, 0, (ROUND (g.uitloop.tijdsduur/DECODE(g.thtsla.tijdsduur, 0, 0.1, g.thtsla.tijdsduur), DECODE(pchx.get_user, 'PCHW', 1,0)) * vk)), -- Alleen als dagen x24!
|
||||
NULL)
|
||||
totaal,
|
||||
DECODE (
|
||||
telaat_z_respijt,
|
||||
1, -- Westland rond de breuk af op 1 decimaal en HGH rond af op gehele getallen.
|
||||
coalesce(bk,0) + DECODE(vk, null, 0, (ROUND (g.uitloop_z_respijt.tijdsduur/DECODE(g.thtsla.tijdsduur, 0, 0.1, g.thtsla.tijdsduur), DECODE(pchx.get_user, 'PCHW', 1,0)) * vk)), -- Alleen als dagen x24!
|
||||
NULL)
|
||||
totaal_z_respijt,
|
||||
DECODE (
|
||||
telaat,
|
||||
1,
|
||||
@@ -690,6 +697,9 @@ AS
|
||||
- m.min_t_sla.tijdsduur
|
||||
- m.max_t_respijt.tijdsduur) -- positief, dan te laat
|
||||
telaat,
|
||||
SIGN( m.max_t_actual.tijdsduur
|
||||
- m.min_t_sla.tijdsduur) -- positief, dan te laat
|
||||
telaat_z_respijt,
|
||||
m.max_t_actual actual, -- MAX actuele doorlooptijd
|
||||
m.min_t_sla thtsla, -- MIN SLA
|
||||
m.min_t_sla.eenheid eenheid,
|
||||
@@ -705,6 +715,11 @@ AS
|
||||
- m.max_t_respijt.tijdsduur,
|
||||
m.max_t_actual.eenheid)
|
||||
uitloop, -- hoeveel te laat
|
||||
mld_t_uitvoertijd (
|
||||
m.max_t_actual.tijdsduur
|
||||
- m.min_t_sla.tijdsduur,
|
||||
m.max_t_actual.eenheid)
|
||||
uitloop_z_respijt, -- hoeveel te laat
|
||||
sr.alg_srtruimte_prijs4 wegingsfactor, -- wegingsfactor bij soortruimte
|
||||
-- is de tijd van de melding aangepast?
|
||||
(SELECT COUNT ( * )
|
||||
@@ -1086,6 +1101,12 @@ AS
|
||||
FROM pchx_monitoring mo
|
||||
WHERE begin IS NOT NULL;
|
||||
|
||||
CREATE OR REPLACE VIEW pchx_v_monitoring_history_afw
|
||||
AS
|
||||
SELECT *
|
||||
FROM pchx_v_monitoring_history
|
||||
WHERE afw IS NOT NULL;
|
||||
|
||||
|
||||
CREATE OR REPLACE VIEW pchx_v_facuur_onderlegger
|
||||
( maand,
|
||||
|
||||
Reference in New Issue
Block a user