Concept voor Bezoekers/Visitors. Moet nog van MACRO's worden voorzien!

svn path=/Database/trunk/; revision=7550
This commit is contained in:
Peter Feij
2000-11-03 15:21:00 +00:00
parent 77c6f31117
commit be855cc2e2
8 changed files with 253 additions and 0 deletions

67
BEZ/BEZ_INI.SRC Normal file
View File

@@ -0,0 +1,67 @@
#ifdef BEZ // 03-11-2000 PF
/* REVISIONS:
*
* 03-11-20000 PF CREATION (concept).
*/
#include "comsql.h"
#include "FAC\fac_hlp.h"
#define DEF_FAC_ROL(c, o) INSERT INTO fac_rol (fac_rol_role, fac_rol_omschrijving) VALUES(c, o)
#define DEF_FAC_FUNCTIE(c, o, m, l) INSERT INTO fac_functie (fac_functie_code, fac_functie_omschrijving,fac_functie_module,fac_functie_min_level) VALUES(c, o, m, l)
/*
** Bij installatie van modules moet de tabel FAC_MODULE gevuld of ge-update worden.
*/
_FAC_MODULE('BEZ','Intranet access')
/*
** Definieer de rollen voor de RES module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
*/
DEF_FAC_ROL (USER||'_BEZ_SMALL_ROLE' ,'Bezoekers kijken');
DEF_FAC_ROL (USER||'_BEZ_FULL_ROLE' ,'Bezoekers muteren');
DEF_FAC_ROL (USER||'_BEZ_ARCHIVE_ROLE','Bezoekers beheren');
INSERT INTO fac_gebruiker (fac_gebruiker_username,
fac_gebruiker_module,
fac_gebruiker_tabel,
fac_gebruiker_kolom,
fac_gebruiker_kolomkey)
SELECT USER,'FAC','FAC_ROL','FAC_ROL_KEY', fac_rol_key
FROM fac_rol
WHERE fac_rol_role LIKE USER||'_BEZ_ARCHIVE_ROLE';
/*
** Voeg de functies voor de BEZ module toe en geef de hoofuser toegang op all functies.
*/
INSERT INTO fac_gebruiker (fac_gebruiker_username,
fac_gebruiker_module,
fac_functie_key,
fac_gebruiker_soort)
SELECT USER,fac_functie_module, fac_functie_key, '1'
FROM fac_functie
WHERE fac_functie_module = 'BEZ';
/*
** De ENTITY_NAMES van de BEZ module.
*/
/*
** De MESSAGES van de BEZ module.
*/
INSERT INTO bez_actie
VALUES ( 1, 'Onbekend');
INSERT INTO bez_actie
VALUES ( 2, 'Afspraak met bezoeker kon niet tijdig worden afgemeld');
INSERT INTO bez_actie
VALUES ( 3, 'Bezoeker begeleiden naar locatie ontvanger ');
INSERT INTO bez_actie
VALUES ( 4, 'Bezoeker verwijzen naar locatie ontvanger ');
INSERT INTO bez_actie
VALUES ( 5, 'Bezoeker moet worden opgehaald door ontvanger');
#endif // BEZ