SZDB#71379 -- Implementatie Stichting Zorgcentra de Betuwe
svn path=/Customer/trunk/; revision=55460
This commit is contained in:
63
SZDB/szdb.sql
Normal file
63
SZDB/szdb.sql
Normal file
@@ -0,0 +1,63 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Script containing customer specific sql statements for the FACILITOR database
|
||||
|
||||
DEFINE thisfile = 'SZDB.SQL'
|
||||
DEFINE dbuser = 'SZDB'
|
||||
|
||||
SET ECHO ON
|
||||
SET DEFINE ON
|
||||
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
|
||||
COLUMN fcltcusttxt NEW_VALUE fcltcusttxt NOPRINT;
|
||||
WHENEVER SQLERROR CONTINUE;
|
||||
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
|
||||
SPOOL &fcltlogfile
|
||||
WHENEVER SQLERROR EXIT;
|
||||
SELECT adm.checkscriptcust('&dbuser') AS fcltcusttxt FROM DUAL;
|
||||
WHENEVER SQLERROR CONTINUE;
|
||||
---------------------------------------
|
||||
PROMPT &fcltcusttxt
|
||||
---------------------------------------
|
||||
SET DEFINE OFF
|
||||
|
||||
------ payload begin ------
|
||||
|
||||
-- Notificatie view om personen die een object op hun naam gekregen hebben te notificeren.
|
||||
CREATE OR REPLACE VIEW szdb_v_noti_ins_2_prs
|
||||
AS
|
||||
SELECT 'CUST01' code,
|
||||
NULL sender,
|
||||
d.ins_alg_ruimte_key receiver,
|
||||
'Ontvangstbevestiging ' || sd.ins_srtdeel_omschrijving || ' ' || d.ins_deel_omschrijving text,
|
||||
d.ins_deel_key key,
|
||||
NULL xkey
|
||||
FROM fac_tracking t, ins_deel d, ins_srtdeel sd
|
||||
WHERE t.fac_tracking_refkey = d.ins_deel_key
|
||||
AND d.ins_srtdeel_key = sd.ins_srtdeel_key
|
||||
AND UPPER (fac_tracking_oms) LIKE '%PLAATS OF EIGENAAR%'
|
||||
AND fac_srtnotificatie_key = 137
|
||||
AND ins_alg_ruimte_type = 'P'
|
||||
AND t.fac_tracking_datum BETWEEN (SELECT fac_notificatie_job_nextrun
|
||||
- fac_notificatie_job_interval
|
||||
/ 24
|
||||
FROM fac_notificatie_job
|
||||
WHERE fac_notificatie_job_view =
|
||||
'SZDB_V_NOTI_INS_2_PRS')
|
||||
AND (SELECT fac_notificatie_job_nextrun
|
||||
FROM fac_notificatie_job
|
||||
WHERE fac_notificatie_job_view =
|
||||
'SZDB_V_NOTI_INS_2_PRS');
|
||||
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
BEGIN adm.systrackscriptId ('$Id$', 0); END;
|
||||
/
|
||||
|
||||
COMMIT;
|
||||
SET ECHO OFF
|
||||
SPOOL OFF
|
||||
SET DEFINE ON
|
||||
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||
Reference in New Issue
Block a user