HPJI#73431 import aanpassen voor Portalis
svn path=/Customer/trunk/; revision=57840
This commit is contained in:
@@ -2733,8 +2733,15 @@ AS
|
||||
AND prs_perslid_key IS NOT NULL
|
||||
AND prs_perslid_key NOT IN (SELECT prs_perslid_key
|
||||
FROM prs_perslid );
|
||||
v_portalis NUMBER;
|
||||
|
||||
BEGIN
|
||||
|
||||
SELECT fac_groep_key
|
||||
INTO v_portalis
|
||||
FROM fac_groep
|
||||
WHERE fac_groep_upper = 'BASIS PORTALIS';
|
||||
|
||||
-- plaats personen in de juiste autorisatie groepen
|
||||
FOR rec IN c_auth_default
|
||||
LOOP
|
||||
@@ -2743,19 +2750,22 @@ BEGIN
|
||||
VALUES (rec.prs_perslid_key, 1);
|
||||
END;
|
||||
END LOOP;
|
||||
|
||||
FOR rec IN c_auth_portalis
|
||||
LOOP
|
||||
BEGIN
|
||||
INSERT INTO FAC_GEBRUIKERSGROEP (prs_perslid_key, fac_groep_key)
|
||||
VALUES (rec.prs_perslid_key, 1541);
|
||||
|
||||
DELETE FAC_GEBRUIKERSGROEP
|
||||
WHERE prs_perslid_key = rec.prs_perslid_key
|
||||
AND fac_groep_key = 1;
|
||||
|
||||
END;
|
||||
END LOOP;
|
||||
|
||||
IF v_portalis IS NOT NULL
|
||||
THEN
|
||||
FOR rec IN c_auth_portalis
|
||||
LOOP
|
||||
BEGIN
|
||||
INSERT INTO FAC_GEBRUIKERSGROEP (prs_perslid_key, fac_groep_key)
|
||||
VALUES (rec.prs_perslid_key, 1541);
|
||||
|
||||
DELETE FAC_GEBRUIKERSGROEP
|
||||
WHERE prs_perslid_key = rec.prs_perslid_key
|
||||
AND fac_groep_key = 1;
|
||||
|
||||
END;
|
||||
END LOOP;
|
||||
END IF;
|
||||
|
||||
FOR rec IN c_fin_default
|
||||
LOOP
|
||||
|
||||
Reference in New Issue
Block a user