Commit graph

4609 commits

Author SHA1 Message Date
Ó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
bb4d61426f Fix bug field 'code' should not be copied from template to order, as it may collapse with another existing code
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 17:10: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
d1a1cba1ab Fix bug orderElement.getSumChargedHours() returned null caused runtime
error

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 12:54: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
50696ee4d6 [Bug #625] Fix bug
By default code generation properties are true.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 12:01:12 +02:00
Óscar González Fernández
5087351eaf [Bug #622] Fix bug.
The problem lied in that it was checking checkConstraintUniqueCode
from IntegrationEntity and used IntegrationEntity code instead of the
code from OrderElement. So the method is overriden to bypass that
check.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-07 11:41:32 +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
1ab627e485 Remove more uses of deprecated methods
FEA: ItEr60S19TimeUnitDataType
2010-09-06 12:23:14 +02:00
Óscar González Fernández
5e6d7c2800 Use the current specified scenario instead of retrieving it each time
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-06 12:21:30 +02:00
Óscar González Fernández
84525951d3 Remove deprecated methods on BaseCalendar
FEA: ItEr60S19TimeUnitDataType
2010-09-06 11:57:10 +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
51738e447a Fix broken build, zkex dependency not found.
The zkex dependency was moved to professional edition ZK repository in
version 3.6.4. This move must have been done after our migration to
3.6.4 from 3.6.3. This error happens when doing a maven
install on a machine that hasn't dowloaded the zkex dependency
previously.

The solution is to add professional edition ZK repository. Taking a
look at the source code of zkex it turns out it's GPL 3 licensed (at
least for 3.6.4) so this is safe.

FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-04 18:23:31 +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
75c1110d1d Expose method that always returns a not null IWorkHours for a resource
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
29fb596569 Add method to convert an EffortDuration to a BigDecimal
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
Óscar González Fernández
5f386128c1 Add method for substracting EffortDurations
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:25 +02:00
Óscar González Fernández
7b939dbd8c Expose DayAssignment's duration
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:24 +02:00
Óscar González Fernández
e0e8c7eed9 Add divideBy method to EffortDuration
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:24 +02:00
Óscar González Fernández
b1995f3b8e Use #getCapacityDurationAt for calculating the capacity between two dates
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:23 +02:00
Óscar González Fernández
e887942893 Document method.
It's important to warn that it can overflow.

FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:23 +02:00
Óscar González Fernández
8334cc2b2e Add method for summing EffortDurations
FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:22 +02:00
Óscar González Fernández
bef951f827 Add new method for retrieving exact capacity duration.
The old method working with hours is now deprecated so its use is
discouraged. Eventually it will be phased out. Change calendar test
method to test the new method.

FEA: ItEr60S19TimeUnitDataType
2010-09-03 18:19:18 +02:00