Commit graph

4891 commits

Author SHA1 Message Date
Óscar González Fernández
e129fdfec2 Now can schedule backwards when the resources per day and the hours are fixed
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-11-03 17:03:24 +01:00
Óscar González Fernández
eb597ac7ce Fix bug
When the start was inside a day and the hours to allocate just
completed the day, the end date should be moved to the next day but it
was returning the same day.

FEA: ItEr62S05BugFixing
2010-11-03 17:02:55 +01:00
Óscar González Fernández
ed34c999b8 Rename classes
The new names reflect better their meaning, since they don't are an
allocation, they do the allocation.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-11-03 17:02:45 +01:00
Óscar González Fernández
197e4cfae0 Rename method to be consistent with resourcesPerDayFromEndUntil
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-11-03 17:02:36 +01:00
Óscar González Fernández
3d013b36c5 Fix error that is causing the taks to increase one day in length when moving
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 19:22:10 +02:00
Óscar González Fernández
0aa81a6109 Now resources per day from end until some start date can be allocated
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 19:22:09 +02:00
Óscar González Fernández
db60766295 Ensuring the start is after the consolidated assignments
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 19:22:06 +02:00
Óscar González Fernández
3c9f569099 The start and end date are always set when reseting all allocations
By default, if they are not specified, the start and end are taken
from the task. This allows to calculate resources per day correctly
when doing backwards scheduling. The external behavior is the same for
resource allocations' start date. For the end date now instead of
returning the date of the last day assignment, the date set at the
reset method would be returned.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 19:21:20 +02:00
Óscar González Fernández
8596aeef8a Now can allocate some hours from end of the task to some date 2010-10-29 18:28:14 +02:00
Óscar González Fernández
9d0bc64dd9 Add test for fromStartUntil
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 18:28:14 +02:00
Óscar González Fernández
70150fd9d7 Provide the resources per day for the part not consolidated
Otherwise in subsequent updates on a allocation with a consolidated
part the resources per day could be different than the specified in
the last modification.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 18:28:14 +02:00
Óscar González Fernández
b953937a4a Copy the intraDayStart
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 18:28:14 +02:00
Óscar González Fernández
f42d909588 Remove unnecessary given for test
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 18:28:13 +02:00
Óscar González Fernández
c82d2531cf Remove unused method
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 15:24:40 +02:00
Óscar González Fernández
7c7b942c85 Add additional tests to ensure that the resources per day specified are kept
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-29 10:36:08 +02:00
Óscar González Fernández
ca22a8d172 Now DayAssignmentsState has a intraDayStart property
If not null the start of a ResourceAllocation is that value

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-28 17:20:24 +02:00
Óscar González Fernández
a52adc6783 The start date when merging the allocation is defined by the task
In the future the start will be defined by the aggregate of resource
allocations if the task is planned backwards.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-28 13:30:15 +02:00
Óscar González Fernández
4df83498fb Add intraDayStart property to containers
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-28 13:10:15 +02:00
Óscar González Fernández
eb74eded59 Remove unused fields and methods
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-28 12:37:40 +02:00
Óscar González Fernández
79a9fb9f99 Reduce visibility of DayAssignmentsState and subclasses
No longer needed to be protected since only is subclassed in the same
class.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-28 12:36:46 +02:00
Óscar González Fernández
409b2c21eb Pull up dayAssignmentsState field in SpecificResourceAllocation and GenericResourceAllocation
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 21:00:57 +02:00
Óscar González Fernández
90339d0262 Remove NoExplicitlySpecifiedScenario from specific and generic allocations
Using base class in ResourceAllocation instead.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 20:18:30 +02:00
Óscar González Fernández
b945d4f512 Remove ExplicitlySpecifiedScenarioState for specific and generic resource allocation.
Using base class in ResourceAllocation instead.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:12 +02:00
Óscar González Fernández
5086f3cb9b Extracting interface IDayAssignmentsContainer
This allows the two types of containers to be handled in a generic
way.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:12 +02:00
Óscar González Fernández
12d47edb1f Remove TransientState classes at SpecificResourceAllocation and GenericResourceAllocation
Now the superclass at ResourceAllocation can handle both cases. Some
new abstract methods at ResourceAllocation had to be added.

FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:12 +02:00
Óscar González Fernández
1d61e93e78 Pull up switchTo implementation
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:12 +02:00
Óscar González Fernández
303078bf5a Extract TransientState superclass for both generic and specific cases
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:12 +02:00
Óscar González Fernández
26133b00ff Now clearFieldsCalculatedFromAssignments is unneeded
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:12 +02:00
Óscar González Fernández
b8cd2a839f Remove caching at getOrderedAssignmentsFor
FEA: ItEr62OTS04PlanificacionHaciaAtras
2010-10-27 19:18:11 +02:00
Óscar González Fernández
ca71b2961c Remove trailing whitespaces
FEA: ItEr62S05BugFixing
2010-10-27 18:43:28 +02:00
Óscar González Fernández
c352bb282a Convert control statements one liners to blocks
The code convention we are using forbids the use of one liners control
statements.

FEA: ItEr62S05BugFixing
2010-10-27 18:41:18 +02:00
Óscar González Fernández
300e002add Remove unused private methods and fields
FEA: ItEr62S05BugFixing
2010-10-27 18:18:43 +02:00
Óscar González Fernández
b011982c2a Remove unused local variables
FEA: ItEr62S05BugFixing
2010-10-27 17:50:57 +02:00
Óscar González Fernández
8d04c36742 Remove unused imports
FEA: ItEr62S05BugFixing
2010-10-27 17:26:24 +02:00
Óscar González Fernández
1971aa4138 Remove deprecated factory methods
FEA: ItEr62S05BugFixing
2010-10-27 17:18:11 +02:00
Óscar González Fernández
ee8dca196c Avoid the use of deprecated method
FEA: ItEr62S05BugFixing
2010-10-27 17:10:46 +02:00
Jacobo Aragunde Pérez
c9de53aeb1 Updated i18n files.
FEA:ItEr62S07Internationalization
2010-10-27 13:31:15 +02:00
Jacobo Aragunde Pérez
caf9495f26 [Bug #695] Fixed bug, adding an event listener to the ON_SELECT event to undo the job and prevent conflict.
FEA: ItEr62S05BugFixing
2010-10-27 11:54:31 +02:00
Jacobo Aragunde Pérez
fd55ffe633 [Bug #696] Fixed bug, preventing the call to order.dontPoseAsTransientObjectAnymore().
It's unnecessary because it order is reloaded completely later from
OrderCRUDController.saveAndContinue(), in case of being a new object.

FEA: ItEr62S05BugFixing
2010-10-26 18:33:11 +02:00
Óscar González Fernández
3fe0a1466f Resolve the address
Otherwise in some systems a IPv6 was returned and CutyCapt couldn't
handle it.

FEA: ItEr62S05BugFixing
2010-10-25 19:40:06 +02:00
Óscar González Fernández
355f24f276 [Bug #694] Fix bug
Doing reload inside afterCompose so when accessing the bindings the
controllers are already initialized.

FEA: ItEr62S05BugFixing
2010-10-25 17:41:30 +02:00
Óscar González Fernández
ebea641c7a In Java fields must not start in uppercase.
FEA: ItEr62S05BugFixing
2010-10-25 17:27:06 +02:00
Óscar González Fernández
2b225b3d00 Remove try..catch
It was swallowing the exception, albeit it reported it. Let it happen.

FEA: ItEr62S05BugFixing
2010-10-25 17:23:21 +02:00
Óscar González Fernández
364e98c958 Remove no longer needed method
FEA: ItEr62S05BugFixing
2010-10-25 16:51:05 +02:00
Óscar González Fernández
fa7d860cc8 [Bug #689] Fix bug
The new end was not being calculated correctly. For durations lesser
than a day, getLengthMilliseconds returned zero. Now the parts that do
not reach a one day value are summed correctly.

FEA: ItEr62S05BugFixing
2010-10-25 16:48:54 +02:00
Jacobo Aragunde Pérez
bd10b8ef31 Remove code textboxes from the 'to refresh' list when the row they belong is deleted.
We do it to prevent deleted textboxes to be refreshed. Besides, the list has
been replaced with a map, for convenience.

FEA: ItEr62S08PerformanceOrderEdition
2010-10-25 10:14:15 +02:00
Diego Pino Garcia
dd30fff6e8 [Bug #688] Fix bug 'Not unique in the new ID space: expandAllButton'
FEA: ItEr62S05BugFixing
2010-10-24 18:19:11 +02:00
Manuel Rego Casasnovas
2d102d234f Fixing problem with order code validation in subcontract service.
* The order code has been validated before the new code was generated.
* Commented out the lines doing the validation and marking as FIXME to review in the future.

FEA: ItEr62S05BugFixing
2010-10-22 09:42:01 +02:00
Manuel Rego Casasnovas
77bee14fdb Avoiding NulPointerException subcontracting tasks if there are any problem in the server.
* Changed deprecated method at subcontract web service in order to return a valid InstanceConstraintViolationsDTO.

FEA: ItEr62S05BugFixing
2010-10-22 09:21:39 +02:00
Jacobo Aragunde Pérez
3f1535a183 Replace the call to initializeTabs() after save in OrderCRUDController with refreshCodeTextboxesOnly().
The application used to refresh the whole order elements tree to get the
updated values for the 'code' column. Now we only refresh that column.

FEA: ItEr62S08PerformanceOrderEdition
2010-10-21 17:59:15 +02:00