svn path=/Customer/; revision=32294
This commit is contained in:
48
onces/QUAW/QUAW#36327.sql
Normal file
48
onces/QUAW/QUAW#36327.sql
Normal file
@@ -0,0 +1,48 @@
|
||||
/* Formatted on 12-12-2016 11:16:30 (QP5 v5.136.908.31019) */
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Aanmaken import persoonsgegevens
|
||||
|
||||
DEFINE thisfile = 'QUAW#36327.SQL'
|
||||
DEFINE dbuser = '^QUAW'
|
||||
DEFINE custid = 'QUAW'
|
||||
|
||||
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 ------
|
||||
|
||||
UPDATE fac_import_app i
|
||||
SET fac_import_app_folder = 'D:Apps\Facilitor\Fplace5i\CUST\QUAW\import',
|
||||
fac_import_app_files = 'OU_Normale_gebruikers*.csv',
|
||||
fac_import_app_charset = 'utf-8'
|
||||
WHERE fac_import_app_code = 'PRS';
|
||||
|
||||
COMMIT;
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
BEGIN
|
||||
adm.systrackscriptId (
|
||||
'$Id$',
|
||||
1);
|
||||
END;
|
||||
/
|
||||
|
||||
COMMIT;
|
||||
SET ECHO OFF
|
||||
SPOOL OFF
|
||||
SET DEFINE ON
|
||||
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||
|
||||
@@ &custid
|
||||
104
onces/QUAW/QUAW#38329.SQL
Normal file
104
onces/QUAW/QUAW#38329.SQL
Normal file
@@ -0,0 +1,104 @@
|
||||
/* Formatted on 12-12-2016 11:16:30 (QP5 v5.136.908.31019) */
|
||||
--
|
||||
-- $Id$
|
||||
|
||||
|
||||
DEFINE thisfile = 'QUAW#38329.SQL'
|
||||
DEFINE dbuser = '^QUAW'
|
||||
DEFINE custid = 'QUAW'
|
||||
|
||||
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 ------
|
||||
|
||||
-- QUAW#38329 QR code rapport
|
||||
CREATE OR REPLACE VIEW QUAW_V_INS_QRC
|
||||
(
|
||||
hide_f_sort,
|
||||
fclt_3d_discipline_key,
|
||||
fclt_3d_locatie_key,
|
||||
fclt_f_locatie,
|
||||
fclt_f_gebouw,
|
||||
plaats,
|
||||
fclt_f_objectsoort,
|
||||
fclt_f_identificatie,
|
||||
ins_deel_key,
|
||||
soortruimte,
|
||||
ins_srtdeel_code,
|
||||
ins_srtdeel_key,
|
||||
ins_alg_ruimte_type,
|
||||
alg_gebouw_code,
|
||||
alg_verdieping_code,
|
||||
alg_district_key,
|
||||
ins_alg_ruimte_key,
|
||||
hide_f_bookmark_id
|
||||
)
|
||||
AS
|
||||
SELECT i.ins_deel_omschrijving hide_f_sort,
|
||||
i.ins_discipline_key fclt_3d_discipline_key,
|
||||
l.alg_locatie_key fclt_3d_locatie_key,
|
||||
l.alg_locatie_omschrijving fclt_f_locatie,
|
||||
o.alg_gebouw_omschrijving fclt_f_gebouw,
|
||||
o.alg_plaatsaanduiding plaats,
|
||||
s.ins_srtdeel_omschrijving fclt_f_objectsoort,
|
||||
i.ins_deel_omschrijving fclt_f_identificatie,
|
||||
i.ins_deel_key,
|
||||
(SELECT r.alg_ruimte_omschrijving
|
||||
FROM alg_ruimte r
|
||||
WHERE r.alg_ruimte_key = i.ins_alg_ruimte_key)
|
||||
soortruimte,
|
||||
s.ins_srtdeel_code,
|
||||
s.ins_srtdeel_key,
|
||||
i.ins_alg_ruimte_type,
|
||||
o.alg_gebouw_code,
|
||||
o.alg_verdieping_code,
|
||||
l.alg_district_key,
|
||||
i.ins_alg_ruimte_key,
|
||||
b.fac_bookmark_id hide_f_bookmark_id
|
||||
FROM ins_deel i,
|
||||
ins_v_alg_overzicht o,
|
||||
ins_srtdeel s,
|
||||
alg_locatie l,
|
||||
alg_district di,
|
||||
fac_bookmark b
|
||||
WHERE b.fac_bookmark_naam = 'QRC_OBJECT'
|
||||
AND ins_deel_verwijder IS NULL
|
||||
AND COALESCE (i.ins_deel_vervaldatum, SYSDATE + 1) > SYSDATE
|
||||
AND i.ins_deel_module = 'INS'
|
||||
AND i.ins_deel_parent_key IS NULL
|
||||
AND o.alg_onroerendgoed_keys = i.ins_alg_ruimte_key
|
||||
AND o.alg_onroerendgoed_type = i.ins_alg_ruimte_type
|
||||
AND i.ins_alg_ruimte_type IN ('T', 'R', 'W')
|
||||
AND o.alg_locatie_key = i.ins_alg_locatie_key
|
||||
AND i.ins_alg_locatie_key = l.alg_locatie_key
|
||||
AND l.alg_district_key = di.alg_district_key
|
||||
AND s.ins_srtdeel_key = i.ins_srtdeel_key;
|
||||
|
||||
COMMIT;
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
|
||||
BEGIN
|
||||
adm.systrackscriptId (
|
||||
'$Id$',
|
||||
1);
|
||||
END;
|
||||
/
|
||||
|
||||
COMMIT;
|
||||
SET ECHO OFF
|
||||
SPOOL OFF
|
||||
SET DEFINE ON
|
||||
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||
|
||||
@@ &custid
|
||||
Reference in New Issue
Block a user