Commit graph

3002 commits

Author SHA1 Message Date
Óscar González Fernández
25cdd83e30 Use mechanism for auto updating snapshots of data in ResourceAllocationMultipleFiltersFinder
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-09 03:17:30 +02:00
Óscar González Fernández
57a5190303 Remove unused field 2010-09-09 03:17:30 +02:00
Susana Montes Pedreira
344383e663 it improves the behaviour of the quick selector component of allocation resources.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-08 13:19:07 +02:00
Lorenzo Tilve
535f51e573 Predefined order column width adjustments
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-08 12:14:11 +02:00
Lorenzo Tilve
a727dd771f Fixing nullpointer exception when managing criteria tree 2010-09-08 12:14:11 +02:00
Lorenzo Tilve
333486fe51 [Bug #629] Fixing bug and other i18n issues
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-08 12:05:02 +02:00
Lorenzo Tilve
7de7259a82 Adapting column widths of resources list grid
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-08 10:41:10 +02:00
Lorenzo Tilve
9ee9034c5a Added help tooltip with limiting resources information in resources edition
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-08 10:41:10 +02:00
Susana Montes Pedreira
5fd712a4ed [Bug #617] sets the scale of advances to 4, so it are shown its decimals.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-08 09:14:47 +02:00
Óscar González Fernández
9dcfff4878 Remove unused method
FEA: ItEr60S19TimeUnitDataType
2010-09-07 20:41:38 +02:00
Óscar González Fernández
81d3193b5b [Bug #628] Fix bug.
Getting the scenario was causing the order to be associated to the
session. In order to fix this, the orders are reattached first.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 18:31:52 +02:00
Óscar González Fernández
e8340b1bd6 [Bug #621] Fix bug
The advance type retrieved from a QualityForm is a proxy and never had
its data loaded. Now it's data is forced to be loaded.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 17:28:29 +02:00
Diego Pino Garcia
bef57194e3 [Bug #623] Fix bug Error creating order from template
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 17:09:29 +02:00
Diego Pino Garcia
b9c04d5d90 Localize predefined criterion types
Adds new component <l10n> suited to localized strings that come from
properties from business objets
2010-09-07 12:24:38 +02:00
Óscar González Fernández
b15359bb6b [Bug #622] Ensure the transaction is rollback so the real error is returned
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 21:34:34 +02:00
Óscar González Fernández
8550c351cc Do the defensive copy so the data provided can't be inconspicuously manipulated
Effective Java, Item 24.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 21:34:34 +02:00
Óscar González Fernández
3d3fe3e32f If default constructor called ensure that the list is not null
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 21:34:34 +02:00
Óscar González Fernández
c5c1fbd8d0 Remove excesive white space
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 21:34:34 +02:00
Jacobo Aragunde Pérez
735f191320 Deleted the code that pre-loaded all the ResourceAllocations for every task in advance.
FEA: ItEr60S17CambiosPantallaVistaEmpresa
2010-09-06 18:38:39 +02:00
Jacobo Aragunde Pérez
6e37e99c81 Don't show the button 'Show/Hide resources' in the company gantt view.
FEA: ItEr60S17CambiosPantallaVistaEmpresa
2010-09-06 18:38:38 +02:00
Jacobo Aragunde Pérez
d03748cb81 Iterate over an order's children to retrieve its criteria when filtering by criteria.
We make sure the criteria are being loaded, preventing the need of pre-loading them.

FEA: ItEr60S17CambiosPantallaVistaEmpresa
2010-09-06 18:38:38 +02:00
Jacobo Aragunde Pérez
af96a69ca1 Remove useless methods, some of them to force loading some data.
FEA: ItEr60S17CambiosPantallaVistaEmpresa
2010-09-06 18:38:38 +02:00
Jacobo Aragunde Pérez
2f5f3049f1 Replace the use of OrderElementDAO.getAssignedHours() with SumChargedHours.getTotalChargedHours().
FEA: ItEr60S17CambiosPantallaVistaEmpresa
2010-09-06 18:38:38 +02:00
Óscar González Fernández
3a33780299 Extract variable for avoiding repetition of query
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 18:27:58 +02:00
Susana Montes Pedreira
3f8e06e7cf [Bug #620] Updating the current scenary for each order and its children when the report is shown.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 17:52:05 +02:00
Óscar González Fernández
80aebef0db Remove no longer used deprecated methods on ChartFiller 2010-09-05 21:03:09 +02:00
Óscar González Fernández
83ab4dccfe Migrate ResourceLoadController from BigDecimals to EffortDuration
FEA: ItEr60S19TimeUnitDataType
2010-09-05 20:52:44 +02:00
Óscar González Fernández
f91034fc1b Fix problem in test
It was not throwing the exception due to the cause stated in the test.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 19:11:52 +02:00
Óscar González Fernández
5472ba7ac4 Rename to less confusing name
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:22:05 +02:00
Óscar González Fernández
ed44373b2c Migrate OrderPlanningModel from BigDecimals to EffortDurations
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:31 +02:00
Óscar González Fernández
1873ca1edc Move min method to ChartFiller so it can be reused easily
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:30 +02:00
Óscar González Fernández
ddf0dbd85c Rename sumDurationsForDay to sumAvailabilitiesForDay to reflect better meaning
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:30 +02:00
Óscar González Fernández
7e3fcaf8e5 Migrate CompanyPlanningModel's overload from BigDecimals to EffortDurations
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:30 +02:00
Óscar González Fernández
690d78c140 Migrate CompanyPlanningModel's calendarMaximumAvailability from BigDecimals to EffortDurations
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:30 +02:00
Óscar González Fernández
cc96cbba10 Migrate CompanyPlanningModel's getLoad from BigDecimals to EffortDurations
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:30 +02:00
Óscar González Fernández
2745cf68c5 Add new methods that work with durations instead of hours
The old methods are kept to not break existing code and allow a
gradual phase out. They are marked as deprecated.

FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:30 +02:00
Óscar González Fernández
6f7ef1a310 Simplify method
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:29 +02:00
Óscar González Fernández
b7ac478eda Add method for converting a map of EffortDurations into one of BigDecimals
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:29 +02:00
Óscar González Fernández
7137d97953 Refactor createPlofInfo method
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:28 +02:00
Óscar González Fernández
9e411c80d8 Remove unnecessary methods from interface
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:28 +02:00
Óscar González Fernández
f27803e583 Extract multiplication
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:27 +02:00
Óscar González Fernández
95a59d9a19 Refactor. Create mechanisms for operating on maps aligning the values for each key.
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:27 +02:00
Óscar González Fernández
396abb3a58 Extract substraction operation
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:26 +02:00
Óscar González Fernández
0a6d5a9259 Refactor. Extract method for dividing two indicator maps
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:25 +02:00
Susana Montes Pedreira
0557b68d6f [Bug #608] Include direct access to new resources/criterium allocation in Resource Allocations popup
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 14:32:08 +02:00
Susana Montes Pedreira
92581897b5 [Bug #608] Create the new component to allocate resources directly.
The bandboxMultipleSearch changes to adapt to the behaviour
of the new component.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 14:02:21 +02:00
Susana Montes Pedreira
8e4226204f [Bug #610] The bandboxMultipleSearch component does not allow to select the dotted line.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-03 13:46:01 +02:00
Diego Pino Garcia
a3cded16db Fix bug detect if there are duplicated codes between the order to be
saved and that order already saved in the DB

It's necessary to check if any of the codes in an order that's going
to be saved contain duplicated values comparing also against that very
same order in the DB.

Order codes must be unique. There's a case where it may not be any
duplicated code in an order, neither in other orders, but a unique
constraint violation still may happen.

Imagine the following scenario:

order
   |-- order1(1, 'code1')
   |-- order2(2, 'code2')

The first time _order_ is persisted, everything goes OK. However if the
value of codes are swapped, that is:

order
   |-- order1(1, 'code2')
   |-- order2(2, 'code1')

None code is repeated within the order, however as data is persisted one by
one, when _order1_ is going to be saved into DB, the value of
_order2.code_ is still 'code2', resulting into an unique code constraint
violation.

This is a limitation of the backend database and how unique fields work.
The best thing to do is to check there's no other orderelement with the
same code value in the DB (except for the one that's going to be saved).

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-02 17:56:28 +02:00
Lorenzo Tilve
8a63145e3f Adding onOK listener to resources filtering
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-02 13:05:36 +02:00
Lorenzo Tilve
c2feb4e703 Adding default date value and tooltiptext for workreportlines
FEA: ItEr60S16AdaptacionsPantallasNavalPlan
2010-09-02 13:05:35 +02:00