Commit graph

2044 commits

Author SHA1 Message Date
Jacobo Aragunde Pérez
6d2444e5fb ItEr36S14CUAdministracionCategoriaCosteItEr35S15: corrected a bug to validate HourCosts when saved through CostCategoryDAO 2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
0d60630d78 ItEr36S14CUAdministracionCategoriaCosteItEr35S15: added the interfaces to manage HourCosts and TypesOfWorkHours to the top menu 2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
36bbea7e18 ItEr36S14CUAdministracionCategoriaCosteItEr35S15: added validation for negative time intervals in HourCost entity
I have implemented entity-level validation using hibernate validators, and
interface-level validation using ZK constraints modified dinamically in the
onChange event.
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
073d60c501 ItEr36S14CUAdministracionCategoriaCosteItEr35S15: modified the listener of the "type" field to set the "price" field to the default one
The code of the listener has also been cleaned. A validation has
been removed because it's done in other point.
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
9f72725b7e ItEr36S14CUAdministracionCategoriaCosteItEr35S15: added "not empty" constraints to the CostCategory edition form 2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
560518086f ItEr36S14CUAdministracionCategoriaCosteItEr35S15: implemented the interface for the relation between CostCategory and HourCost 2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
e98db057c0 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: edition and creation of CostCategories
Interface to create and edit CostCategories.
At the moment, only the simple attributes can be edited,
the relation with HourCost is not managed yet.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
4d4c565ba7 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: listing of CostCategories
Implemented the basics of the XXModel, XXController and .zul files to be able
to list the existing CostCategories.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
407b777317 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: some visual improvements
Using a checkbox to show the value of 'enabled'.
Deleted the 'delete' buttons.
Corrected the error message when the code is invalid.
InstanceNotFoundException is thrown with the correct parameters.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
3afefed2c0 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: implemented creation of TypeOfWorkHours 2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
4f2cfbb243 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: style/indentation revision 2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
68335cf0e9 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: implemented unique validator for code in TypeOfWorkHours
Implemented a validator method in TypeOfWorkHours entity. It checks if the code of that entity is unique.
To do it, I had to implement methods to find a TypeOfWorkHours by its code in TypeOfWorkHoursDAO.
Some tests were written to verify it's working correcty.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
c37fba6fa7 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: implemented null validation
TODO: unique constraints produce an Exception; it has to be transformed into
a ValidationException to be treated correctly by the web application.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
4b6ac2bbb2 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: implemented confirmation messages 2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
7bc5018e1a ItEr35S15CUAdministracionCategoriaCosteItEr34S15: administration web interface: editing TypesOfWorkHours
Implemented the web interface to edit TypeOfWorkHours entities.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
9b120369e8 ItEr35S15CUAdministracionCategoriaCosteItEr34S15: administration web interface: listing TypesOfWorkHours
First revision of the web interface. It can list the existing TypesOfWorkHours.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
0edab300dd ItEr35S15CUAdministracionCategoriaCosteItEr34S15: Date attributes using org.joda.time.LocalDate
Implemented Date attributes using the class org.joda.time.LocalDate instead of java.util.Date.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
529bfc2456 ItEr34S15CUAdministracionCategoriaCoste: implementing the relation between HourCost and CostCategory.
Implemented the necessary methods to manage it so it can be navigated bidirectionally.
Implemented tests to try it.
TODO: implement Date attributes using the class org.joda.time.LocalDate instead of java.util.Date.
TODO: implement the validator HourCostNotOverlapping.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
2a5add0c35 ItEr34S15CUAdministracionCategoriaCoste: implemented the relation between HourCost and TypeOfWorkHours
This relation is only navigable from HourCost,
we are not interested in the other direction (not yet at least).
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
3f9bb54450 ItEr34S15CUAdministracionCategoriaCoste: test for DAOs and bugfix
Written tests for the thee DAOs.
Corrected a bug in HourCost entity, found using the tests.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
ae50c21520 ItEr34S15CUAdministracionCategoriaCoste: Skeleton for DAOs and file hbm.xml
Created the DAOs, interfaces for DAOS, the file hbm.xml and added it to spring configuration.
2009-12-03 11:37:26 +01:00
Jacobo Aragunde Pérez
cc9ae3fef7 ItEr34S15CUAdministracionCategoriaCoste: Skeleton for entities CostCategory, HourCost and TypeOfWorkHours
Created the entities: CostCategory, HourCost and TypeOfWorkHours.
They have simple attributes and get/set methods for them.
2009-12-03 11:37:26 +01:00
Óscar González Fernández
8aef6af117 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: The total hours is kept synchronized with the hours inputs when they are changed. 2009-12-02 22:05:14 +01:00
Óscar González Fernández
e614632a01 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Renaming field to reflect better its meaning. 2009-12-02 22:05:13 +01:00
Óscar González Fernández
9987ab8858 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Creating default allocations when checking recommended checkbox 2009-12-02 22:05:13 +01:00
Óscar González Fernández
b95ff330f3 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Fixing message. Argument was missing 2009-12-02 22:05:13 +01:00
Óscar González Fernández
90e80c5714 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Renaming finder method and implementing it correctly 2009-12-02 22:05:13 +01:00
Óscar González Fernández
9eb82d661a ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Pulling up satisfies criteria methods 2009-12-02 22:05:13 +01:00
Óscar González Fernández
b3bdbc738d ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Being more generous receiving arguments for searching workers satisfying criterions 2009-12-02 22:05:13 +01:00
Óscar González Fernández
3583676f60 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Removing code that has no effect. AggregatedHoursGroup is not an entity 2009-12-02 22:05:13 +01:00
Óscar González Fernández
7b00ca6aa5 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Removing unused methods from ResourceAllocationModel 2009-12-02 22:05:13 +01:00
Óscar González Fernández
f011594686 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: When activating recommended allocation previous allocations are removed 2009-12-02 22:05:13 +01:00
Óscar González Fernández
543c75b2c8 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Providing the recommended allocation checkbox to FormBinder and create basic structure 2009-12-02 22:05:13 +01:00
Óscar González Fernández
ac2ffa1ca0 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Adding recommended allocation checkbox 2009-12-02 22:05:13 +01:00
Óscar González Fernández
07e582f527 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Changing title to a more general name 2009-12-02 22:05:12 +01:00
Diego Pino Garcia
aff77a6921 ItEr37S11CUAdministracionMateriaisItEr36S13: If delete material button is disabled do not highlight it on hovering it 2009-12-02 14:17:32 +01:00
Diego Pino Garcia
d8db1a8c3b ItEr37S11CUAdministracionMateriaisItEr36S13: Add onOK event for adding new categories 2009-12-02 14:17:29 +01:00
Diego Pino Garcia
a3a8e55ae2 ItEr37S11CUAdministracionMateriaisItEr36S13: Show all materials if not category is selected 2009-12-02 14:17:27 +01:00
Diego Pino Garcia
5a9d27bbd5 ItEr37S11CUAdministracionMateriaisItEr36S13: [FixBug] Keep selected item after reloading categories tree 2009-12-02 14:17:24 +01:00
Diego Pino Garcia
235ac08856 ItEr37S11CUAdministracionMateriaisItEr36S13: Set unitprice as double 2009-12-02 14:17:20 +01:00
Diego Pino Garcia
dcb75f07a8 ItEr37S11CUAdministracionMateriaisItEr36S13: Fix bug on saving categories after deleting a persistent category 2009-12-02 14:17:17 +01:00
Diego Pino Garcia
360ae42715 ItEr37S11CUAdministracionMateriaisItEr36S13: Referesh material categories after adding new element 2009-12-02 14:17:14 +01:00
Diego Pino Garcia
a63067c196 ItEr37S11CUAdministracionMateriaisItEr36S13: Cannot remove material category if it has subcategories or materials 2009-12-02 14:17:11 +01:00
Diego Pino Garcia
ef8977da8f ItEr37S11CUAdministracionMateriaisItEr36S13: Add spacing between upper buttons and grid 2009-12-02 14:17:09 +01:00
Diego Pino Garcia
3399e544ec ItEr37S11CUAdministracionMateriaisItEr36S13: Add option Unselect selected item in categories tree 2009-12-02 14:17:07 +01:00
Diego Pino Garcia
297a3d0b67 ItEr37S11CUAdministracionMateriaisItEr36S13: [FixBug] Set parent on adding new category 2009-12-02 14:17:05 +01:00
Diego Pino Garcia
7fddf59852 ItEr37S11CUAdministracionMateriaisItEr36S13: [FixBug] Remove category via DAO and update list of categories 2009-12-02 14:17:02 +01:00
Diego Pino Garcia
d5bdb1c623 ItEr37S11CUAdministracionMateriaisItEr36S13: Set tree style to z-dottree 2009-12-02 14:16:59 +01:00
Óscar González Fernández
a9dd2a3093 ItEr37S06ValidacionEProbasFuncionaisItEr36S07: [Bug #112] Fixing bug. When copying an allocation the criterions are copied too. 2009-12-02 13:17:46 +01:00
Óscar González Fernández
d0a47c5408 ItEr37S08CUCreacionUnidadesPlanificacionItEr36S11: Renaming class to a less confusing name 2009-12-02 01:27:39 +01:00