-
Notifications
You must be signed in to change notification settings - Fork 0
AnA04S01NavalPlanEntities
TWiki> LibrePlan Web>AnA04S01NavalPlanEntities (20 Aug 2012, ManuelRego)EditAttach
Story summary | Tasks related with the entities |
Iteration | AnA04Architecture |
FEA | AnA04S01NavalPlanEntities |
Story Lead | |
Next Story | |
Passed acceptance test | No |
This task consists of subtituting the sequence mechanism which is being used currently in LibrePlan (which is a random UUID) by another mechanism.
The problem of the current system is that codes generated are not human friendly: They are too long and are not related each other (they do not have an order relationship).
The codes that will be generated will have an scheme similar to the codes used for the orders. The codes will have the following scheme:
- PREFIX: An alphanumeric part for the beginning of the code.
- NUMBER: Correlative sequence of numbers.
Each entity will have its prefix and number. These data will be stored in a new table: EntitySequence
with the following description:
- entityName: Name of the entity the configuration of the code generation is for.
- lastValue: Last number used of this sequence.
- numberOfDigits: Number of digits that the NUMBER part has.
- active: If the current sequence is the active.
It is needed to add the following restriction: For all the rows sharing the same entityName only one of them has and can be active at the same time.
NOTES:
- It would be suitable to integrate the entity
OrderSequence
in the generalEntitySequence
. This means that the currentOrderSequence
would be deleted and the sequences for orders will be managed through rows with entityName=ORDER ofEntitySequence
.
The interface will be the same as the one used for administration the codes for Orders. It will be a new grid for each entity.
A change over the current interface will be that because of the fact only one row per entityName (per grid) can be activated it is better to gather the active one through a radio button instead of a checkbox. Moreover, it will be good to include the fixed dash which separated PREFIX part from NUMBER in the PREFIX part - in this way it is converted in optional or changeable by another character the separator -.
The entities which use code generation and, therefore, will have a grid in the configuration window are:
- Criterio
- Label
- Machine
- Worker
- UnitType
- Calendar
On the startup of the application it has to be included the insertion of the default sequences for the entities with code generation. These default sequences will be:
- PREFIX: The name of the entity: ORDER, CRITERIO, LABEL, MACHINE, WORKER
- Number Of Digits: 5
Once the entities and the interface in order to manage the sequences for code generation for each of the entities with code generation is finished, it will be replaced in each of the windows of use cases are created entities of these types by the new mechanism in case the generation of code is requested by the interface or configured.
This task consists of doing the configuration screen more usable.
The steps are the following:
Create two tabs
One tab called Main preferences which includes the first table.
A second tab called Entity sequences for all the sequences of the entities with integration.
Change the way to edit/create the entity sequences
It will be needed to show all the entity sequences in the same table. However there will be an area inside the table for each entity.
The effect is the one showed in this widget: http://www.zkoss.org/zkdemo/grid/grouping
It will be needed to add the boxes to get the values to add:
- Entity: Combo to select the entity to which add the new sequence.
- Prefix: Textbox to get the prefix.
- Number of digits: Textbox with just numbers allowed to get the number of digits of the chain.
On the other hand, the rows of the table will be editable in the same way that they are editable currently.
Finally it will be needed to implement the fact that each section of the table will have a group of radio button which corresponds only to the sequences over the same entities.
- ItEr61S04NavalPlanEntities
- ItEr62S04NavalPlanEntities
- ItEr63S07NavalPlanEntities
- ItEr64S06NavalPlanEntities
Copyright (c) by the contributing authors. All material on this collaboration platform is the property of the contributing authors.