AASA#70046 -- Assetmanagement voor SABIC inrichten
svn path=/Customer/; revision=54372
This commit is contained in:
46
onces/AA/AAXX/mjob_stdmelding_srtinst.sql
Normal file
46
onces/AA/AAXX/mjob_stdmelding_srtinst.sql
Normal file
@@ -0,0 +1,46 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Script om alle standaard meldingen onder NEN2767 - Conditiemeting te koppelen aan de Objectstroom Gebouwobjecten
|
||||
|
||||
DEFINE thisfile = 'mjob_stdmelding_srtinst.SQL'
|
||||
DEFINE dbuser = 'AAXX'
|
||||
|
||||
SET ECHO ON
|
||||
SET DEFINE ON
|
||||
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
|
||||
WHENEVER SQLERROR EXIT;
|
||||
SELECT adm.scriptspoolfile('&dbuser', '&thisfile') AS fcltlogfile FROM DUAL;
|
||||
WHENEVER SQLERROR CONTINUE;
|
||||
SPOOL &fcltlogfile
|
||||
SET DEFINE OFF
|
||||
|
||||
------ payload begin ------
|
||||
|
||||
INSERT INTO mld_stdmelding_srtinst (mld_stdmelding_key,
|
||||
ins_srtinstallatie_key,
|
||||
ins_srtinstallatie_niveau)
|
||||
SELECT mld_stdmelding_key,
|
||||
(SELECT ins_discipline_key
|
||||
FROM ins_discipline
|
||||
WHERE ins_discipline_omschrijving = 'Gebouwobjecten'
|
||||
AND ins_discipline_verwijder IS NULL),
|
||||
'D'
|
||||
FROM mld_stdmelding sm, mld_discipline disc
|
||||
WHERE disc.ins_srtdiscipline_key =
|
||||
FAC.getSetting ('cnd_gebreken_srtdisc_key')
|
||||
-- AND sm.mld_stdmelding_code <> 'GEEN'
|
||||
AND disc.ins_discipline_verwijder IS NULL
|
||||
AND sm.mld_ins_discipline_key = disc.ins_discipline_key ;
|
||||
|
||||
------ 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