First rough version

svn path=/Database/trunk/; revision=7854
This commit is contained in:
Peter Feij
2001-10-01 07:43:04 +00:00
parent 7565974739
commit 47a6c5cb61
8 changed files with 214 additions and 0 deletions

58
BES/BES_INI.SRC Normal file
View File

@@ -0,0 +1,58 @@
#ifdef BES // 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('BES','Bestellingen')
/*
** 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||'_BES_SMALL_ROLE' ,'Bestellingen kijken');
DEF_FAC_ROL (USER||'_BES_FULL_ROLE' ,'Bestellingen muteren');
DEF_FAC_ROL (USER||'_BES_ARCHIVE_ROLE','Bestellingen 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||'_BES_ARCHIVE_ROLE';
/*
** Voeg de functies voor de BES 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 = 'BES';
/*
** De ENTITY_NAMES van de BES module.
*/
/*
** De MESSAGES van de BES module.
*/
#endif // BES