Jacobo Aragunde Pérez
ff2e2c5b0c
ItEr37S12CUAdministracionCategoriaCosteItEr36S14: basic implementation of the entity ResourcesCostCategoryAssignment
...
Implemented the entity, its DAO and a basic test.
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
ca986edb17
ItEr37S12CUAdministracionCategoriaCosteItEr36S14: added the field 'enabled' to the entity CostCategory in all layers
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
e469b4a9ee
ItEr37S12CUAdministracionCategoriaCosteItEr36S14: fixed the exception thrown when the combobox for TypeOfWorkHours is null
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
698a43a819
ItEr37S12CUAdministracionCategoriaCosteItEr36S14: only active TypesOfWorkHours are listed when creating HourCosts.
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
9ab5742382
ItEr37S12CUAdministracionCategoriaCosteItEr36S14: implemented equals() and hashCode() functions on TypeOfWorkHours
...
Now equals() is used to compare the types of two HourCosts, instead of using their ids.
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
ff54d5314d
ItEr37S12CUAdministracionCategoriaCosteItEr36S14: implemented validator for time intervals inside a CostCategory
...
Implemented a method to ensure that two HourCosts with the same type
don't overlap inside the same CostCategory.
The method canAddHourCost() was modified to take into account the
type of the HourCosts.
Tests for checkHourCostsOverlap were written.
Renamed a validator method to match naming conventions.
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
9410511169
ItEr36S14CUAdministracionCategoriaCosteItEr35S15: deleted a 'unique' attribute validator in TypeOfWorkHours which is not working anymore
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
f2c97a6236
ItEr36S14CUAdministracionCategoriaCosteItEr35S15: corrected bugs with Constraints when adding empty HourCosts to a CostCategory
2009-12-03 11:37:27 +01:00
Jacobo Aragunde Pérez
5ad7efd31d
ItEr36S14CUAdministracionCategoriaCosteItEr35S15: corrected a bug in unit tests
2009-12-03 11:37:27 +01:00
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