Entity Code » History » Version 3
Blaise Carrupt, 23.07.2014 10:53
1 | 1 | Blaise Carrupt | h1. Code Entity |
---|---|---|---|
2 | 1 | Blaise Carrupt | |
3 | 1 | Blaise Carrupt | A code is a common [[Thesaurus#Entity|entity]] that regroups [[Thesaurus#Entity|entites]] having following fields : |
4 | 1 | Blaise Carrupt | * a translatable [[Thesaurus#Code (Field)|code field]] |
5 | 1 | Blaise Carrupt | * a translatable description |
6 | 1 | Blaise Carrupt | |
7 | 1 | Blaise Carrupt | Typical codes are "Type of...". |
8 | 1 | Blaise Carrupt | |
9 | 1 | Blaise Carrupt | A code has two aspects : |
10 | 1 | Blaise Carrupt | * the definition of the code (the code itself) |
11 | 1 | Blaise Carrupt | * the list of values that can be selected in digest |
12 | 1 | Blaise Carrupt | |
13 | 2 | Blaise Carrupt | The definition gives the meaning of the code, and says what it's used for. "Type of [[Thesaurus#Screen|screen]]" is a code, as well as "[[Entity Invoice|Invoice]] status". |
14 | 1 | Blaise Carrupt | |
15 | 1 | Blaise Carrupt | The code has a type (which obsiously are codes too) : |
16 | 1 | Blaise Carrupt | * System : |
17 | 1 | Blaise Carrupt | **user cannot modify the code except for its description |
18 | 1 | Blaise Carrupt | **user cannot add or remove values, neither modify an existing value except its description |
19 | 1 | Blaise Carrupt | * System/User : |
20 | 1 | Blaise Carrupt | **user cannot modify the code except for its description |
21 | 1 | Blaise Carrupt | **user can add and remove values or modify existing values |
22 | 1 | Blaise Carrupt | * User : user created the code |
23 | 1 | Blaise Carrupt | **user can delete or modify the code |
24 | 1 | Blaise Carrupt | **user can add and remove values or modify existing values |
25 | 1 | Blaise Carrupt | |
26 | 1 | Blaise Carrupt | Each value also has a type : |
27 | 1 | Blaise Carrupt | * System : user cannot modify the value, except its description |
28 | 1 | Blaise Carrupt | * User : user can modify the value |
29 | 1 | Blaise Carrupt | |
30 | 3 | Blaise Carrupt | Codes marked System or System/User and code values marked System have to exist or digest might not work well. digest directly refers to system codes, and different system values might change the behaviour of screens. For example, some status of the [[Entity Invoice|invoice]] might set it as [[Thesaurys#Read-only|read-only]]. |
31 | 3 | Blaise Carrupt | |
32 | 3 | Blaise Carrupt | |
33 | 1 | Blaise Carrupt | Accessible by a [[Thesaurus#Code (Field)|code field]] |
34 | 1 | Blaise Carrupt | Translatable |
35 | 1 | Blaise Carrupt | |
36 | 1 | Blaise Carrupt | Using entities : |
37 | 1 | Blaise Carrupt | * [[Entity Code|code]] : type of message |
38 | 1 | Blaise Carrupt | |
39 | 1 | Blaise Carrupt | |
40 | 1 | Blaise Carrupt | Examples : |
41 | 3 | Blaise Carrupt | * SCR_TYP - Type of screen, Type d'écran - System |
42 | 3 | Blaise Carrupt | ** SEARCH, RECH - Search, Recherche - System |
43 | 3 | Blaise Carrupt | ** INPUT, SAISIE - Input, Saisie - System |
44 | 3 | Blaise Carrupt | * ADR_TIT - Address title, Civilité - System/User |
45 | 3 | Blaise Carrupt | ** Mr, M - Mister, Monsieur - User |
46 | 3 | Blaise Carrupt | ** Ms, Mme - Mis, Madame - User |