FCLT#85890 fac_notificatie_realuser bijhouden zodat we in putorders correct kunnen overrulen
svn path=/Database/trunk/; revision=67792
This commit is contained in:
@@ -165,7 +165,7 @@ CREATE OR REPLACE PACKAGE fac
|
||||
FUNCTION gettrackingdate (peventcode IN VARCHAR2, pkey IN number) RETURN date;
|
||||
FUNCTION gettrackinguserkey (peventcode IN VARCHAR2, pkey IN number) RETURN number;
|
||||
PROCEDURE initsession (flcode IN VARCHAR2);
|
||||
PROCEDURE initsession (pkey NUMBER, flcode IN VARCHAR2, usertimezone IN VARCHAR2);
|
||||
PROCEDURE initsession (pkey NUMBER, flcode IN VARCHAR2, usertimezone IN VARCHAR2, realuser IN VARCHAR2 DEFAULT NULL);
|
||||
PROCEDURE registerversion (pschema IN VARCHAR2, plang IN VARCHAR2);
|
||||
PROCEDURE registercustversion (pcustid IN VARCHAR2, pcustnr IN NUMBER);
|
||||
FUNCTION getdbversion RETURN VARCHAR2;
|
||||
@@ -5091,11 +5091,13 @@ CREATE OR REPLACE PACKAGE BODY fac AS
|
||||
EXECUTE IMMEDIATE setsql;
|
||||
END;
|
||||
|
||||
PROCEDURE initsession (pkey NUMBER, flcode IN VARCHAR2, usertimezone IN VARCHAR2)
|
||||
PROCEDURE initsession (pkey NUMBER, flcode IN VARCHAR2, usertimezone IN VARCHAR2, realuser IN VARCHAR2 DEFAULT NULL)
|
||||
AS
|
||||
setsql VARCHAR2(200);
|
||||
BEGIN
|
||||
DBMS_SESSION.SET_IDENTIFIER(pkey);
|
||||
dbms_application_info.SET_CLIENT_INFO(realuser);
|
||||
|
||||
-- Initialiseert deze Oracle session met de vereiste parameters
|
||||
-- De flcode (FACILITOR Language code) mag null zijn, dan wordt de databasedefault gebruikt
|
||||
lcl.setuserlanguage(flcode);
|
||||
|
||||
@@ -675,8 +675,10 @@ CREATE_TABLE(fac_notificatie, 0)
|
||||
DEFAULT 0 NOT NULL,
|
||||
fac_notificatie_failmessage /* de laatste failmessage, rest zoek je maar in Putorders logging */
|
||||
VARCHAR(4000),
|
||||
fac_notificatie_faildatum
|
||||
DATE // de laatste
|
||||
fac_notificatie_faildatum // de laatste
|
||||
DATE,
|
||||
fac_notificatie_realuser
|
||||
VARCHAR2(64)
|
||||
);
|
||||
/* Welke notificatiejobs bestaan er
|
||||
* Vermelding hierin veroorzaakt periodieke notificaties
|
||||
@@ -2457,6 +2459,7 @@ CREATE_TABLE(fac_task, 0)
|
||||
fac_task_code VARCHAR(32) NOT NULL,
|
||||
fac_task_nextrun DATE,
|
||||
fac_task_lastrun DATE,
|
||||
fac_task_flags NUMBER(3) DEFAULT 0 NOT NULL, -- +1=disable
|
||||
fac_task_aanmaak DATE DEFAULT SYSDATE NOT NULL,
|
||||
CONSTRAINT fac_u_fac_task UNIQUE(fac_cust_key, fac_task_code)
|
||||
);
|
||||
|
||||
@@ -335,9 +335,12 @@ DECLARE
|
||||
loms web_user_messages.web_user_mess_dsc%TYPE;
|
||||
lxmlnode fac_srtnotificatie.fac_srtnotificatie_xmlnode%TYPE;
|
||||
lparamkey web_user_messages.web_user_mess_action_params%TYPE;
|
||||
realuser VARCHAR(64);
|
||||
BEGIN
|
||||
UPDATE_PRIMARY_KEY(fac_notificatie_key, fac_s_fac_notificatie_key);
|
||||
|
||||
dbms_application_info.read_client_info (:NEW.fac_notificatie_realuser); -- is gezet achteraan m_connections.inc, wordt opgepikt door putorders
|
||||
|
||||
-- Kopieer direct naar statusinformatie op de portal indien van toepassing
|
||||
-- Daarbij worden alle oude berichten (eerst) verwijderd
|
||||
IF BITAND (:NEW.fac_notificatie_status, 1) = 1 AND :new.prs_perslid_key_receiver IS NOT NULL
|
||||
|
||||
@@ -723,7 +723,7 @@ SELECT fac_notificatie_receiver_email, fac_notificatie_receiver_phone, fac_notif
|
||||
fac_notificatie_extrakey, fac_notificatie_sender_email, fac_notificatie_lang, fac_notificatie_systeemadres,
|
||||
fac_notificatie_attachments, fac_srtnotificatie_delay, fac_srtnotificatie_srtkm_key, fac_srtnotificatie_noticollegas,
|
||||
prs_perslid_key_receiver, fac_notificatie_notbefore, fac_notificatie_failcount, prs_bedrijfadres_key,
|
||||
prs_perslid_key_sender, fac_notificatie_geturl, fac_notificatie_getbody, fac_notificatie_naam
|
||||
prs_perslid_key_sender, fac_notificatie_geturl, fac_notificatie_getbody, fac_notificatie_naam, fac_notificatie_realuser
|
||||
FROM fac_notificatie n
|
||||
LEFT OUTER JOIN fac_srtnotificatie sn ON n.fac_srtnotificatie_key = sn.fac_srtnotificatie_key;
|
||||
|
||||
|
||||
@@ -56,6 +56,9 @@ ALTER TABLE fac_notificatie
|
||||
ALTER TABLE fac_notificatie
|
||||
ADD fac_notificatie_faildatum DATE; // de laatste
|
||||
|
||||
ALTER TABLE fac_notificatie
|
||||
ADD fac_notificatie_realuser VARCHAR2(64);
|
||||
|
||||
ALTER TABLE prs_bedrijfadres
|
||||
ADD ins_discipline_key NUMBER(10)
|
||||
REFERENCES ins_tab_discipline(ins_discipline_key) ON DELETE CASCADE; // Scherpere bedrijfadres bepaling, vooral reserveringen?
|
||||
@@ -90,6 +93,7 @@ CREATE_TABLE(fac_task, 0)
|
||||
fac_task_code VARCHAR(32) NOT NULL,
|
||||
fac_task_nextrun DATE,
|
||||
fac_task_lastrun DATE,
|
||||
fac_task_flags NUMBER(3) DEFAULT 0 NOT NULL, -- +1=disable
|
||||
fac_task_aanmaak DATE DEFAULT SYSDATE NOT NULL,
|
||||
CONSTRAINT fac_u_fac_task UNIQUE(fac_cust_key, fac_task_code)
|
||||
);
|
||||
@@ -99,7 +103,7 @@ CREATE SEQUENCE fac_s_fac_task_key MINVALUE 1;
|
||||
|
||||
DEF_FAC_SRTNOT('RESSND', 1, 'lcl_noti_RESSND', 'res/res_reservering.asp?rsv_ruimte_key=', '0', 'reservering', 60);
|
||||
|
||||
DEF_MENUITEM(2, 'lcl_menu_prs_bedrijf_system' , '', 'FAC', 'appl/mgt/prs_bedrijf.asp?intern=2', 0, 0, 'WEB_PRSSYS', 'W', '1', '');
|
||||
DEF_MENUITEM(2, 'lcl_menu_prs_bedrijf_system' , '', 'FAC', 'appl/prs/prs_bedrijf_search.asp?intern=2', 0, 0, 'WEB_PRSSYS', 'W', '1', '');
|
||||
MENU_INS_AFTER('lcl_menu_prs_bedrijf_system', 'lcl_menu_fac_eigen_tabellen', 1);
|
||||
/////////////////////////////////////////////////////////////////////////////////////////// FCLT#80469
|
||||
|
||||
|
||||
Reference in New Issue
Block a user