161 lines
9.2 KiB
SQL
161 lines
9.2 KiB
SQL
-- Customer specific once-script ARAI.
|
|
--
|
|
-- (c) 2011 SG|facilitor bv
|
|
-- $Revision$
|
|
-- $Id$
|
|
--
|
|
-- Support: +31 53 4800700
|
|
|
|
SET ECHO ON
|
|
SPOOL arai01.lst
|
|
SET DEFINE OFF
|
|
|
|
|
|
CREATE TABLE arai_imp_prs (
|
|
prs_perslid_nr VARCHAR2 (256),
|
|
prs_perslid_naam VARCHAR2 (256),
|
|
prs_perslid_tussenvoegsel VARCHAR2 (256),
|
|
prs_perslid_voorletters VARCHAR2 (256),
|
|
prs_perslid_voornaam VARCHAR2 (256),
|
|
prs_afdeling_naam VARCHAR2 (256),
|
|
prs_srtperslid_omschrijving VARCHAR2 (256),
|
|
alg_locatie_code VARCHAR2 (256),
|
|
alg_gebouw_code VARCHAR2 (256),
|
|
alg_verdieping_volgnr VARCHAR2 (256),
|
|
alg_ruimte_nr VARCHAR2 (256),
|
|
prs_perslid_telefoonnr VARCHAR2 (256),
|
|
prs_perslid_email VARCHAR2 (256),
|
|
prs_perslid_ingangsdatum DATE,
|
|
prs_perslid_einddatum DATE,
|
|
prs_perslid_oslogin VARCHAR2 (256)
|
|
);
|
|
|
|
INSERT INTO fac_import_app
|
|
(fac_import_app_code, fac_import_app_oms,
|
|
fac_functie_key, fac_import_app_prefix)
|
|
SELECT 'PRS', 'Import persoonsgegevens uit Active Directory (AD)',
|
|
fac_functie_key, 'ARAI'
|
|
FROM fac_functie
|
|
WHERE fac_functie_code = 'WEB_PRSSYS';
|
|
|
|
|
|
|
|
-- Menutaak handmatig: Capaciteitsoverzicht voor alle uitvoerders bij elkaar: /appl/fac/fac_widgetspage.asp?wgrp=opdr_lang
|
|
|
|
--INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
--VALUES ('arai_v_graph_capac_mdw_week_0', 1,'FCLT_XAS_UITVOERDER' ,25);
|
|
|
|
--INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
--SELECT 'opdr_lang',10,'Capaciteit per medewerker - Deze week', 300, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
--INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
--VALUES ('arai_v_graph_capac_mdw_week_1', 1, 'FCLT_XAS_UITVOERDER' , 25);
|
|
|
|
--INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
--SELECT 'opdr_lang',20,'Capaciteit per medewerker - Volgende week', 300, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
--INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
--VALUES ('arai_v_graph_capac_mdw_week_2', 1, 'FCLT_XAS_UITVOERDER' , 25);
|
|
|
|
--INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
--SELECT 'opdr_lang',30,'Capaciteit per medewerker - Over 2 weken', 300, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_afd_totaal', 1, 'FCLT_XAS_AFDELING' , 25);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_lang',10,'Opdrachturen per afdeling', 300, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_mdw_totaal', 1, 'FCLT_XAS_UITVOERDER' , 25);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_lang',20,'Opdrachturen per medewerker', 300, 66, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_aantopdr_afd_all', 1, 'FCLT_XAS_AFDELING' , 25);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_lang',30,'Aantal opdrachten per afdeling', 300, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_aantopdr_mdw_all', 1, 'FCLT_XAS_UITVOERDER' , 25);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_lang',40,'Aantal opdrachten per medewerker', 300, 66, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
--
|
|
-- Menutaak handmatig: Capaciteits per afdeling TD, ELE, WTB per week: /appl/fac/fac_widgetspage.asp?wgrp=opdr_kort
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_TD_week_2', 1,'FCLT_XAS_' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',10,'Technische dienst - Over 2 weken', 180, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_ELE_week_2', 1,'FCLT_XAS_' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',20,'TD Electra - Over 2 weken', 180, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_WTB_week_2', 1,'FCLT_XAS_' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',30,'TD Werktuigbouw - Over 2 weken', 180, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_TD_week_1', 1,'FCLT_XAS_' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',40,'Technische dienst - Volgende week', 180, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_ELE_week_1', 1,'FCLT_XAS_' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',50,'TD Electra - Volgende week', 180, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_WTB_week_1', 1,'FCLT_XAS_' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',60,'TD Werktuigbouw - Volgende week', 180, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_TD_week_0', 1,'FCLT_XAS_UITVOERDER' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',70,'Technische dienst - Deze week', 240, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_ELE_week_0', 1,'FCLT_XAS_UITVOERDER' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',80,'TD Electra - Deze week', 240, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
INSERT INTO fac_usrgraph (fac_usrgraph_view_name, fac_usrgraph_type, fac_usrgraph_orderby, fac_usrgraph_maxrows)
|
|
VALUES ('arai_v_graph_capac_WTB_week_0', 1,'FCLT_XAS_UITVOERDER' ,10);
|
|
|
|
INSERT INTO fac_widget (fac_widget_groep, fac_widget_volgnr, fac_widget_title, fac_widget_height, fac_widget_width, fac_widget_url, fac_widget_refreshtime)
|
|
SELECT 'opdr_kort',90,'TD Werktuigbouw - Deze week', 240, 32, 'fac_usrgraph.asp?usrgraph_key=' || MAX(fac_usrgraph_key), NULL FROM fac_usrgraph;
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN adm.systrackscript('$Workfile: arai01.sql $', '$Revision$', 1); END;
|
|
/
|
|
|
|
SPOOL OFF
|
|
|
|
@arai.sql
|