Commit graph

4847 commits

Author SHA1 Message Date
Ó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
Jacobo Aragunde Pérez
a0a40f96bf Replaced OrderModel.initEditAfterSave() with calls to dontPoseAsTransientObjectAnymore().
Instead of reloading all the object after saving, they are just marked as not
transient anymore. The performance of this operation is quite better.

FEA: ItEr62S08PerformanceOrderEdition
2010-10-21 17:59:14 +02:00
Óscar González Fernández
322a94bf54 Add mechanism for allowing to define the order of execution of data bootstraps
FEA: ItEr62S04NavalPlanEntities
2010-10-20 19:49:14 +02:00
Óscar González Fernández
d10d463327 Rename method to a clearer name.
It's also moved closer to where it's used.

FEA: ItEr62S05BugFixing
2010-10-20 12:54:39 +02:00
Óscar González Fernández
3e6a7d3f40 [Bug #682] Fix bug
After saving the order in the order detail,
manageOrderElementAdvancesController is initialized and associated to
the order that is being saved. Then you go to the scheduling view
through a change of perspective and save. This causes the order to
increase its version number. If you return to the order detail view,
manageOrderElementAdvancesController keeps pointing to the former
Order. This is the reason that when executing its bussiness logic
fails with an org.hibernate.StaleObjectStateException.

Now when going back to the scheduling view the order is reloaded from
the DB and the controllers of each tab are set to null so they are
initialized on demand with the current Order instead of sticking to
the former one.

I think the problem was introduced at commit:
4bb7e1ffd4. The performance improvements
reported in that commit can be compromised by this.

FEA: ItEr62S05BugFixing
2010-10-20 01:13:37 +02:00
Jacobo Aragunde Pérez
e8848cd31a Use DB snapshots the precalculate the data of the earned value graph in company screen.
We prevent doing the calculation when the graph is shown. Now it's done when
the application starts, and updated when one of the involved entities changes.

FEA: ItEr62S03RFPerformanceCompanyView
2010-10-19 11:55:42 +02:00
Jacobo Aragunde Pérez
fe671aded5 Use DB snapshots the precalculate the data of the resource load graph in company screen.
We prevent doing the calculation when the graph is shown. Now it's done when
the application starts, and updated when one of the involved entities changes.

FEA: ItEr62S03RFPerformanceCompanyView
2010-10-19 11:55:37 +02:00
Óscar González Fernández
648e6d16fc [Bug #678] Fix bug
Now it shows messages explaining the cause of the problem.

FEA: ItEr62S05BugFixing
2010-10-19 03:44:51 +02:00
Óscar González Fernández
7bf51de582 If no allocations cant be done the task end is returned
FEA: ItEr62S05BugFixing
2010-10-19 01:53:06 +02:00
Óscar González Fernández
ca94734770 Add mechanism for being notified of ResourceAllocations for which there are no capacity
FEA: ItEr62S05BugFixing
2010-10-19 01:40:48 +02:00
Óscar González Fernández
56f38d0d9f Fix typos
FEA: ItEr62S05BugFixing
2010-10-19 00:05:02 +02:00
Óscar González Fernández
c59e5284bf ThereAreHoursOnWorkHoursCalculator.thereIsAvailableCapacityFor returns an object with extra information
This way the cause of not having enought capacity can be guessed.

FEA: ItEr62S05BugFixing
2010-10-19 00:01:56 +02:00
Óscar González Fernández
3f8308f53e Add tests to check if the allocations are satisfied
It asserts that allocations are unsatisfied if there are not enough
hours in order to do the required allocation.

FEA: ItEr62S05BugFixing
2010-10-18 20:11:36 +02:00
Óscar González Fernández
07306d9bf1 Rename class and associated test
Now their purpose is clearer.

FEA: ItEr62S05BugFixing
2010-10-18 20:11:32 +02:00
Lorenzo Tilve
75bc8e9a8d Changed cursor style when over 'more options' search header
FEA: ItEr62S05BugFixing
2010-10-17 23:52:27 +02:00
Lorenzo Tilve
5c83c6e41d Avoided cell break in order tree description field
FEA: ItEr62S05BugFixing
2010-10-17 23:51:14 +02:00
Lorenzo Tilve
6895acc677 Added explicit cast to fix compilation problems
FEA: ItEr62S05BugFixing
2010-10-17 23:50:56 +02:00
Jacobo Aragunde Pérez
87f0889168 Updated Galician literals.
FEA: ItEr62S07Internationalization
2010-10-15 20:05:41 +02:00
Jacobo Aragunde Pérez
d68e26baaf Updated Spanish literals.
FEA: ItEr62S07Internationalization
2010-10-15 20:05:41 +02:00
Jacobo Aragunde Pérez
ec36aa08d0 Updated keys files.
FEA: ItEr62S07Internationalization
2010-10-15 20:05:40 +02:00
Jacobo Aragunde Pérez
71f5c067f4 Corrections on English literals directly on the code.
FEA: ItEr62S07Internationalization
2010-10-15 20:05:40 +02:00
Óscar González Fernández
96cda4b9de [Bug #683] Fix bug
Return a more precise result.

FEA: ItEr62S05BugFixing
2010-10-15 19:19:22 +02:00
Óscar González Fernández
d8fd56c765 Add numberOfDaysUntil to IntraDayDate and associated tests
FEA: ItEr62S05BugFixing
2010-10-15 19:19:22 +02:00
Óscar González Fernández
a6712ebcf7 getAdvance methods on ITaskFundamentalProperties return GanttDates instead of dates
This is needed to allow more precision when showing advance dates.

FEA: ItEr62S05BugFixing
2010-10-15 19:19:21 +02:00
Manuel Rego Casasnovas
637a6a8bda [Bug #672] Fixed bug checkin if QualityForm is marked as report advance.
FEA: ItEr62S05BugFixing
2010-10-15 16:18:30 +02:00
Óscar González Fernández
86b7989315 [Bug #684] Fix bug
Provide the right object to the map

FEA: ItEr62S05BugFixing
2010-10-14 22:07:04 +02:00
Óscar González Fernández
4db668cefa Adjust the end date considering the assignments
FEA: ItEr62S05BugFixing
2010-10-14 19:39:38 +02:00
Óscar González Fernández
a178fa92d2 [Bug #681] Fix bug.
When creating the copy for the allocations the end day was lost. Now
it's copied.

FEA: ItEr62S05BugFixing
2010-10-14 18:16:06 +02:00
Óscar González Fernández
4643615a59 Add warning if there are no day with effort bigger than zero
FEA: ItEr62S05BugFixing
2010-10-14 17:05:57 +02:00
Óscar González Fernández
32e0806ca6 [Bug #680] Fix bug
The durations were less than an hour so when rounding it was given
zero hours. Now it uses durations so no precision is lost.

FEA: ItEr62S05BugFixing
2010-10-14 16:57:56 +02:00
Óscar González Fernández
1971377fb8 Copy the date end when switching from a transient scenario to a explicitly specified scenario
It was not being copied which was causing that the allocation end date
was lost when an allocation is added for the first time. This caused
the resources per day to appear as less the next time the allocations
are shown.

FEA: ItEr62S05BugFixing
2010-10-14 12:32:06 +02:00
Óscar González Fernández
d5e4fa5d33 When copying a day assignmnet pass the effort duration not the hours
Otherwise some of the duration is lost.

FEA: ItEr62S05BugFixing
2010-10-14 12:21:49 +02:00
Manuel Rego Casasnovas
f00ba4f3ce Exception type web services.
* Added new field to export service.
* Implemented import service and added example.

FEA: ItEr61S06ExceptionTypeEntity
2010-10-13 16:32:17 +02:00
Óscar González Fernández
6b07e6c7f6 [Bug #676] Fix bug
The taken effort must be added to the effort taken by the
day. Otherwise if the start date is in the middle of the day and the
allocation finishes the same day the calculated end is wrong.

FEA: ItEr62S05BugFixing
2010-10-12 22:08:55 +02:00
Óscar González Fernández
643de53a0e Improve thereAreHoursOn
If the start day is not complete it starts looking for available hours
in the next day.

FEA: ItEr62S05BugFixing
2010-10-12 21:37:13 +02:00
Óscar González Fernández
73a3f2cfaf Test if it's the same day doesn't make sense
FEA: ItEr62S05BugFixing
2010-10-12 21:32:44 +02:00
Óscar González Fernández
d1f79e1acf [Bug #675] Fix bug
FEA: ItEr62S05BugFixing
2010-10-12 20:43:08 +02:00
Óscar González Fernández
9add629f5d Add divideBy and remainder for EffortDuration
FEA: ItEr62S05BugFixing
2010-10-12 20:37:27 +02:00
Óscar González Fernández
8a36325016 Launch snapshots once the data bootstraping is done
FEA: ItEr62S05BugFixing
2010-10-12 17:27:20 +02:00
Óscar González Fernández
dfd824cfd2 Improve error reporting for snapshots
If an error was produced calculating a snapshot, the error was
reported when the snapshot was retrieved. Now the error is also
reported as soon it happens.

FEA: ItEr62S05BugFixing
2010-10-11 20:54:44 +02:00
Óscar González Fernández
8364d68019 Remove asDurationOn(LocalDate, ResourcesPerDay)
It's removed in interface and implementations.

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-11 19:42:03 +02:00
Óscar González Fernández
e8cc8df75e Remove uses of asDurationOn(LocalDate, ResourcesPerDay)
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-11 19:42:03 +02:00
Óscar González Fernández
be70db9c8a Remove use of method generateDayAssignments
daysUntil is used with its improved condition support

FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-11 19:42:02 +02:00
Óscar González Fernández
04a0abf05b Refactor daysUntil to allow more control for exit condition
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-11 19:40:52 +02:00
Óscar González Fernández
5a5b34f16e Refactor sumDurationUntil to use daysUntil method
FEA: ItEr61S08TimeUnitConfigurablePlanning
2010-10-11 19:40:52 +02:00