VENR#86946 Beëindiging VENR contract per 1 mei 2025
svn path=/Customer/; revision=69321
This commit is contained in:
4300
VENR/venr.sql
4300
VENR/venr.sql
File diff suppressed because it is too large
Load Diff
@@ -1,40 +0,0 @@
|
||||
-- Customer specific once-script
|
||||
|
||||
SET ECHO ON
|
||||
SPOOL xVENR#30093.lst
|
||||
SET DEFINE OFF
|
||||
SET SERVEROUTPUT ON
|
||||
|
||||
-- Geef alle pesonen met login en zonder wachtwoord een dummy password.
|
||||
-- Personen op afdelingen van OCI (key=2) zijn hiervoor uitgesloten
|
||||
DECLARE
|
||||
CURSOR c
|
||||
IS
|
||||
SELECT 1392367647150 * prs_perslid_key ww, prs_perslid_key
|
||||
FROM prs_perslid
|
||||
WHERE prs_perslid_verwijder IS NULL
|
||||
AND prs_perslid_wachtwoord_hash IS NULL
|
||||
AND prs_perslid_oslogin IS NOT NULL
|
||||
AND prs_afdeling_key NOT IN (SELECT prs_afdeling_key
|
||||
FROM prs_v_afdeling_boom
|
||||
WHERE prs_bedrijf_key = 2);
|
||||
BEGIN
|
||||
FOR rec IN c
|
||||
LOOP
|
||||
BEGIN
|
||||
prs.setpassword (rec.prs_perslid_key, TO_CHAR (rec.ww));
|
||||
DBMS_OUTPUT.put_line('key '||rec.prs_perslid_key||': ww '||rec.ww);
|
||||
END;
|
||||
END LOOP;
|
||||
|
||||
COMMIT;
|
||||
END;
|
||||
/
|
||||
|
||||
BEGIN adm.systrackscriptId('$Id$'); END;
|
||||
/
|
||||
|
||||
COMMIT;
|
||||
|
||||
SET SERVEROUTPUT OFF
|
||||
SPOOL OFF
|
||||
@@ -1,63 +0,0 @@
|
||||
-- Customer specific once-script to synchronize the primary company employees
|
||||
-- in an XD configuration.
|
||||
--
|
||||
-- (c) 2016 SG|facilitor bv
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
SET ECHO ON
|
||||
SPOOL xVENR35574.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
INSERT INTO fac_usrrap (fac_usrrap_omschrijving,
|
||||
fac_usrrap_view_name,
|
||||
fac_functie_key,
|
||||
fac_usrrap_functie)
|
||||
VALUES ('PRS: Synchronisatie master xml',
|
||||
'venr_v_imp_prs_perslid_sync',
|
||||
75,
|
||||
1);
|
||||
|
||||
|
||||
COMMIT;
|
||||
|
||||
-- Toevoegen API om persoonsgegevens op te vragen (vanuit andere XD-omgeving)
|
||||
INSERT INTO fac_api (fac_api_name,
|
||||
fac_api_omschrijving,
|
||||
fac_api_filepath,
|
||||
fac_api_loglevel,
|
||||
fac_usrrap_key,
|
||||
fac_api_stylesheet,
|
||||
fac_api_options_json)
|
||||
VALUES ('PRS_SYNC',
|
||||
'Synchronisatie master xml',
|
||||
'appl/api/api_fetchXML.asp',
|
||||
1,
|
||||
(SELECT fac_usrrap_key FROM fac_usrrap WHERE fac_usrrap_view_name = 'venr_v_imp_prs_perslid_sync'),
|
||||
'CUST/VENR/xsl/perslid_sync.xsl',
|
||||
NULL);
|
||||
|
||||
-- Toevoegen gebruiker om PRS_SYNC-API uit te voeren
|
||||
INSERT INTO prs_perslid (prs_perslid_module,
|
||||
prs_srtperslid_key,
|
||||
prs_afdeling_key,
|
||||
prs_perslid_naam,
|
||||
prs_perslid_oslogin,
|
||||
prs_perslid_apikey,
|
||||
prs_perslid_flags,
|
||||
prs_perslid_systeemadres)
|
||||
SELECT 'PRS',
|
||||
prs_srtperslid_key,
|
||||
prs_afdeling_key,
|
||||
'API-user tbv. XD-module',
|
||||
'_PRS_SYNC',
|
||||
'JnAXUHijEkdhfCnmcypEHkGNWuGqCUXh',
|
||||
4,
|
||||
NULL
|
||||
FROM prs_perslid
|
||||
WHERE prs_perslid_key = 4;
|
||||
|
||||
COMMIT;
|
||||
BEGIN adm.systrackscriptId('$Id$'); END;
|
||||
/
|
||||
SPOOL OFF
|
||||
@venr.sql
|
||||
@@ -1,31 +0,0 @@
|
||||
-- Customer specific once-script to synchronize the primary company employees
|
||||
-- in an XD configuration.
|
||||
--
|
||||
-- (c) 2016 SG|facilitor bv
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
SET ECHO ON
|
||||
SPOOL xVENR35574.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
INSERT INTO fac_import_app (fac_import_app_code,
|
||||
fac_import_app_oms,
|
||||
fac_import_app_prefix,
|
||||
fac_import_app_xsl,
|
||||
fac_functie_key,
|
||||
fac_import_app_folder,
|
||||
fac_import_app_files,
|
||||
fac_import_app_action)
|
||||
VALUES ('PERSLID',
|
||||
'KFXX: Importeren personen vanuit VENR-db',
|
||||
'KFXX',
|
||||
'../../CUST/KFXX/xsl/prs_import.xsl', -- Anders vanuit KFNS!
|
||||
87, -- PRSSYS
|
||||
'.',
|
||||
'xd_perslid_list.xml',
|
||||
'ORACLE');
|
||||
|
||||
COMMIT;
|
||||
BEGIN adm.systrackscriptId('$Id$'); END;
|
||||
/
|
||||
SPOOL OFF
|
||||
@@ -1,53 +0,0 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Werkplek herstellen bij personen.
|
||||
|
||||
DEFINE thisfile = 'VENR#59013.sql'
|
||||
DEFINE dbuser = '^VENR'
|
||||
|
||||
|
||||
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 ------
|
||||
|
||||
DECLARE
|
||||
CURSOR c IS
|
||||
SELECT prs_perslid_key
|
||||
FROM prs_perslid p
|
||||
WHERE prs_afdeling_key = 1861 -- Yask
|
||||
AND NOT EXISTS
|
||||
(SELECT prs_perslidwerkplek_key
|
||||
FROM prs_perslidwerkplek pwp
|
||||
WHERE pwp.prs_perslid_key = p.prs_perslid_key);
|
||||
BEGIN
|
||||
FOR rec IN c
|
||||
LOOP
|
||||
prs.movetoruimte (rec.prs_perslid_key,
|
||||
14481, -- Yask Capelle / IJssel
|
||||
NULL,
|
||||
1);
|
||||
|
||||
END LOOP;
|
||||
COMMIT;
|
||||
END;
|
||||
/
|
||||
|
||||
------ 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
|
||||
@@ -1,41 +0,0 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Yask personen uit de defaultgroep verwijderen.
|
||||
|
||||
DEFINE thisfile = 'VENR#59814.sql'
|
||||
DEFINE dbuser = '^VENR'
|
||||
|
||||
|
||||
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 ------
|
||||
|
||||
DELETE fac_gebruikersgroep
|
||||
WHERE fac_gebruikersgroep_key IN
|
||||
(SELECT fac_gebruikersgroep_key
|
||||
FROM prs_perslid p, fac_gebruikersgroep g
|
||||
WHERE p.prs_perslid_key = g.prs_perslid_key
|
||||
AND p.prs_afdeling_key = 1861
|
||||
AND g.fac_groep_key = 1
|
||||
AND fac_gebruikersgroep_aanmaak >
|
||||
TO_DATE ('20190920', 'yyyymmdd'));
|
||||
|
||||
------ 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
|
||||
@@ -1,86 +0,0 @@
|
||||
-- Customer specific once-script VENR1.
|
||||
--
|
||||
-- (c) 2014 SG|facilitor bv
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
SET ECHO ON
|
||||
SPOOL xVENR1.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
-- 87=PRSSYS
|
||||
INSERT INTO fac_export_app (fac_export_app_code,
|
||||
fac_export_app_oms,
|
||||
fac_functie_key,
|
||||
fac_export_app_folder,
|
||||
fac_export_app_file_prefix,
|
||||
fac_export_app_postfix,
|
||||
fac_export_app_log_postfix,
|
||||
fac_export_app_flags,
|
||||
fac_export_app_timestamp)
|
||||
VALUES ('U4',
|
||||
'Stam/inkoop/verkoop',
|
||||
87,
|
||||
'.\U4',
|
||||
'U4_',
|
||||
'.txt', -- csv?
|
||||
'.log',
|
||||
0,
|
||||
'yymmdd');
|
||||
COMMIT;
|
||||
|
||||
-- WEB_USER02=96
|
||||
CREATE OR REPLACE VIEW venr_v_rap_finish_ssdinvoices AS SELECT NULL x FROM DUAL;
|
||||
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
|
||||
fac_usrrap_view_name,
|
||||
fac_usrrap_in_huidige_locatie,
|
||||
fac_usrrap_template,
|
||||
fac_usrrap_macro,
|
||||
fac_usrrap_vraagbegindatum,
|
||||
fac_usrrap_vraageinddatum,
|
||||
fac_usrrap_functie,
|
||||
fac_usrrap_info,
|
||||
fac_functie_key,
|
||||
fac_usrrap_autorefresh)
|
||||
VALUES ('Vrijgeven SSD-facturen',
|
||||
'venr_v_rap_finish_ssdinvoices',
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
'Overzicht van nog niet ter U4-export vrijgegeven borderels',
|
||||
96,
|
||||
0);
|
||||
COMMIT;
|
||||
|
||||
-- WEB_USER30=124
|
||||
CREATE OR REPLACE VIEW venr_v_rap_order2invoice_xref AS SELECT NULL x FROM DUAL;
|
||||
INSERT INTO FAC_USRRAP (fac_usrrap_omschrijving,
|
||||
fac_usrrap_view_name,
|
||||
fac_usrrap_in_huidige_locatie,
|
||||
fac_usrrap_template,
|
||||
fac_usrrap_macro,
|
||||
fac_usrrap_vraagbegindatum,
|
||||
fac_usrrap_vraageinddatum,
|
||||
fac_usrrap_functie,
|
||||
fac_usrrap_info,
|
||||
fac_functie_key,
|
||||
fac_usrrap_autorefresh)
|
||||
VALUES ('Inkoopfacturen per borderel',
|
||||
'venr_v_rap_order2invoice_xref',
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
'Overzicht van de verzameling inkoopfacturen per borderel',
|
||||
124,
|
||||
0);
|
||||
COMMIT;
|
||||
|
||||
BEGIN adm.systrackscriptId('$Id$'); END;
|
||||
/
|
||||
SPOOL OFF
|
||||
@venr.sql
|
||||
@@ -1,87 +0,0 @@
|
||||
-- Customer specific once-script VENR4.
|
||||
--
|
||||
-- (c) 2015 SG|facilitor bv
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
SET ECHO ON
|
||||
SPOOL xVENR4.lst
|
||||
SET DEFINE OFF
|
||||
|
||||
/* Formatted on 22-5-2015 13:45:15 (QP5 v5.136.908.31019) */
|
||||
CREATE TABLE venr_imp_opdrstat_strukton
|
||||
(
|
||||
mld_opdr_key NUMBER (10),
|
||||
extern_nummer VARCHAR2 (100),
|
||||
status NUMBER (10),
|
||||
datumtijd DATE,
|
||||
opmerking VARCHAR2 (1000),
|
||||
totaal NUMBER (8, 2)
|
||||
);
|
||||
|
||||
COMMIT;
|
||||
|
||||
INSERT INTO prs_perslid (prs_perslid_key,
|
||||
prs_perslid_module,
|
||||
prs_srtperslid_key,
|
||||
prs_afdeling_key,
|
||||
prs_perslid_naam,
|
||||
prs_perslid_voornaam,
|
||||
prs_perslid_nr,
|
||||
prs_perslid_oslogin,
|
||||
prs_perslid_dienstverband)
|
||||
SELECT 5,
|
||||
prs_perslid_module,
|
||||
prs_srtperslid_key,
|
||||
prs_afdeling_key,
|
||||
'Pseudo-user tbv. Strukton-koppeling',
|
||||
'-',
|
||||
'NIET VERWIJDEREN',
|
||||
'_STRUKTON',
|
||||
prs_perslid_dienstverband
|
||||
FROM prs_perslid
|
||||
WHERE prs_perslid_oslogin = '_FACILITOR';
|
||||
|
||||
COMMIT;
|
||||
|
||||
INSERT INTO fac_import_app (fac_import_app_code,
|
||||
fac_import_app_oms,
|
||||
fac_import_app_xsl,
|
||||
fac_functie_key,
|
||||
fac_import_app_folder,
|
||||
fac_import_app_files,
|
||||
fac_import_app_prefix)
|
||||
VALUES ('OPDRSTAT_STRUKTON',
|
||||
'Importeren opdrachtstatus vanuit Strukton',
|
||||
'import/strukton.xsl',
|
||||
87, -- PRSSYS
|
||||
'D:\Apps\Facilitor\Fplace5i\CUST\VENR\import',
|
||||
'strukton*.xml',
|
||||
'VENR');
|
||||
|
||||
/* Handmatige inrichting in overleg met vb&t/Strukton!
|
||||
INSERT INTO prs_bedrijfadres (prs_bedrijf_key,
|
||||
prs_bedrijfadres_type,
|
||||
mld_typeopdr_key,
|
||||
prs_bedrijfadres_url,
|
||||
prs_bedrijfadres_ordermode,
|
||||
prs_bedrijfadres_certificate,
|
||||
prs_bedrijfadres_xsl,
|
||||
prs_bedrijfadres_username,
|
||||
prs_bedrijfadres_password)
|
||||
SELECT 56, -- Strukton Worksphere (HTC)
|
||||
'O',
|
||||
mld_typeopdr_key,
|
||||
'https://b2b.ws.strukton.com/XISOAPAdapter/MessageServlet?channel=Facilitor:BS_ServiceRequest:S_WS_CREATE',
|
||||
13,
|
||||
NULL, --'LOCAL_MACHINE\My\Facilitor:Facilitor:G@s2(VoyPt',
|
||||
'xsl/strukton.xsl',
|
||||
'Facilitor',
|
||||
'G@s2(VoyPt'
|
||||
FROM mld_typeopdr
|
||||
WHERE mld_typeopdr_key IN (5, 166, 168, 169);
|
||||
*/
|
||||
COMMIT;
|
||||
BEGIN adm.systrackscriptId('$Id$'); END;
|
||||
/
|
||||
SPOOL OFF
|
||||
@venr.sql
|
||||
Reference in New Issue
Block a user