svn path=/Customer/trunk/; revision=13793

This commit is contained in:
Maarten van der Heide
2009-01-20 15:44:16 +00:00
parent ed06160959
commit a736b1dad9
2 changed files with 77 additions and 2 deletions

View File

@@ -0,0 +1,42 @@
-- Customer specific once-script to add reminder-functionality (to AONL
-- and SG|facilitor upon HV-wijzigingsverzoeken).
-- (c) 2009 SG|facilitor bv
-- $Revision: 1 $
-- $Modtime: 20-01-09 15:26 $
--
-- Support: +31 53 4800700
SET ECHO ON;
SPOOL xaonl_add_noti_hv_reminder.lst;
INSERT INTO fac_srtnotificatie
(fac_srtnotificatie_code, fac_srtnotificatie_mode,
fac_srtnotificatie_oms, fac_srtnotificatie_xmlnode,
fac_srtnotificatie_groep
)
VALUES ('CUST01', 2,
'HV-wijzigingsverzoek ter acceptatie', 'melding',
0
);
INSERT INTO fac_srtnotificatie
(fac_srtnotificatie_code, fac_srtnotificatie_mode,
fac_srtnotificatie_oms, fac_srtnotificatie_xmlnode,
fac_srtnotificatie_groep
)
VALUES ('CUST02', 2,
'HV-wijzigingsverzoek ter uitvoering', 'melding',
0
);
INSERT INTO fac_notificatie_job
(fac_notificatie_job_view,
fac_notificatie_job_oms,
fac_notificatie_job_interval, fac_notificatie_job_mode
)
VALUES ('aonl_v_noti_hv_reminder',
'MLD: Reminders nav. wijzigingsverzoeken door lokatiebeheer',
12, 3
);
COMMIT;
SPOOL OFF;

View File

@@ -1,7 +1,7 @@
-- Script containing customer specific configuration sql statements for AONL
-- (c) 2008 SG|facilitor bv
-- $Revision: 20 $
-- $Modtime: 19-01-09 14:01 $
-- $Revision: 21 $
-- $Modtime: 20-01-09 17:36 $
--
-- Support: +31 53 4800700
@@ -2727,6 +2727,39 @@ EXCEPTION
END;
/
-- Bevat notificaties naar Nathalie van Hofwegen (CUST01) of Facilitor (CUST02) nav.
-- HV-wijzigingverzoeken (2x daags voor meldingen die AM danwel PM zijn ingediend)!
CREATE OR REPLACE VIEW aonl_v_noti_hv_reminder (code,
sender,
receiver,
text,
KEY,
par1,
par2,
xkey
)
AS
SELECT 'CUST01', prs_perslid_key, 242, -- Nathalie van Hofwegen
'Reminder tekeningenbeheer: Verzoek '
|| mld_melding_key
|| ' ingediend ter acceptatie.',
mld_melding_key, mld_stdmelding_key, mld_melding_omschrijving, NULL
FROM mld_melding
WHERE mld_ins_discipline_key = 61
AND mld_melding_status IN (2, 3)
AND TRUNC (mld_melding_datum + 0.5) = TRUNC (SYSDATE) -- AM/PM
UNION ALL
SELECT 'CUST02', prs_perslid_key, 4, -- _Facilitor
'Reminder tekeningenbeheer: Verzoek '
|| mld_melding_key
|| ' ingediend ter uitvoering.',
mld_melding_key, mld_stdmelding_key, mld_melding_omschrijving, NULL
FROM mld_melding
WHERE mld_ins_discipline_key = 61
AND mld_melding_status IN (4)
AND TRUNC (mld_melding_geaccepteerd + 0.5) = TRUNC (SYSDATE) -- AM/PM
/
commit;
spool off