77 lines
2.3 KiB
Plaintext
77 lines
2.3 KiB
Plaintext
#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)
|
|
|
|
/*
|
|
** Bij installatie van modules moet de tabel FAC_MODULE gevuld of ge-update worden.
|
|
*/
|
|
_FAC_MODULE('BEZ','Bezoekersregistratie')
|
|
|
|
#ifdef NO_FSN1141
|
|
/*
|
|
** Definieer de rollen voor de RES module en geef de hoofduser (waaronder dit script wordt gedraaid) altijd de hoogste rol.
|
|
** NB: Er is (nu nog) geen LAN functionaliteit, dus WEB only!
|
|
*/
|
|
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';
|
|
|
|
#endif
|
|
|
|
/*
|
|
** De ENTITY_NAMES van de BEZ module.
|
|
*/
|
|
/*
|
|
** De MESSAGES van de BEZ module.
|
|
*/
|
|
|
|
#ifdef MS_SQL
|
|
_SET_SQLS(IDENTITY_INSERT bez_actie ON;)
|
|
#endif
|
|
|
|
INSERT INTO bez_actie (bez_actie_key, bez_actie_omschrijving)
|
|
VALUES ( 1, 'Onbekend');
|
|
INSERT INTO bez_actie (bez_actie_key, bez_actie_omschrijving)
|
|
VALUES ( 2, 'Ontvanger bellen');
|
|
INSERT INTO bez_actie (bez_actie_key, bez_actie_omschrijving)
|
|
VALUES ( 3, 'Begeleiden naar ontvanger');
|
|
INSERT INTO bez_actie (bez_actie_key, bez_actie_omschrijving)
|
|
VALUES ( 4, 'Verwijzen naar ontvanger');
|
|
INSERT INTO bez_actie (bez_actie_key, bez_actie_omschrijving)
|
|
VALUES ( 5, 'Op laten halen (bellen)');
|
|
|
|
#ifdef MS_SQL
|
|
_SET_SQLS(IDENTITY_INSERT bez_actie OFF;)
|
|
#endif
|
|
|
|
#endif // BEZ
|