Commit graph

3957 commits

Author SHA1 Message Date
Óscar González Fernández
cbd9fcfcdd ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #488] Fix bug.
Calling useSchedulingDataFor
2010-06-10 18:37:59 +02:00
Óscar González Fernández
efaa551030 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #496] Fix bug.
Calling useSchedulingDataFor on a reattached entity to fix the bug.
2010-06-10 18:09:47 +02:00
Óscar González Fernández
3ae4b9ccd0 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #493] Fix bug.
The validation annotations were applied to fields. This fails when the
object is a proxy. Now they are placed at accessors instead.
2010-06-10 02:35:11 +02:00
Óscar González Fernández
2ed9f663a0 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #493] Show to the user that an error has happened. 2010-06-10 02:35:01 +02:00
Óscar González Fernández
43ee242e8c ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #493] Make it exit from modal mode.
withAsyncUpdates must wait for showing all updates when an exception happens
2010-06-10 02:34:43 +02:00
Óscar González Fernández
5191f6cde0 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: Fix typo 2010-06-10 01:21:45 +02:00
Óscar González Fernández
ede7870ae7 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #489] Fix bug.
ReturningNewAssignments was always adding the initial new assignments
(assignments for the current order and scenario that are still not
saved). But removals and addings can happen on these new assignments
but ReturningNewAssignments kept using the initial new assignments.

Instead of passing the initial new assignmetns to
ReturningNewAssignments, they are added to resource using @AfterCopy
mechanism.
2010-06-10 01:00:11 +02:00
Óscar González Fernández
b263ea5baf ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #489] Fix error at resource load chart.
Take into account the day assignments for the current scenario, not
all.
2010-06-09 21:43:11 +02:00
Óscar González Fernández
185b2c0737 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: Add method for filtering by Scenario 2010-06-09 21:34:52 +02:00
Óscar González Fernández
0af1279839 ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #489] Remove spurious containers.
This fixes the bug for the planning view. It removes the containers
for the current scenario at all SchedulingDataForVersions but the new
current one so their day assignments don't interfere when calculating
the external load.

The newly created SchedulingDataForVersion has also spurious
containers resulting from the deep copy. These are removed too.

Now the data is stored correctly so when you get back after saving the
load is shown correctly. But while the planning is being edited the
chart shows wrong data.
2010-06-09 21:19:53 +02:00
Manuel Rego Casasnovas
8b50f60f51 ItEr59S24AdaptacionsFinaisEscenarios: Creating order subcontracted in master and all derived scenarios. 2010-06-09 18:08:32 +02:00
Manuel Rego Casasnovas
1a5ba8dc88 ItEr59S24AdaptacionsFinaisEscenarios: Show only the orders of master scenario in the list of subcontracted tasks. 2010-06-09 18:08:32 +02:00
Óscar González Fernández
2eb7cca768 ItEr58S14RecalculosConexionEscenariosItEr57S15: Avoid the creation of spurious domain dependencies.
When creating a Dependency is automatically added to the tasks. This
was causing the invisible dependencies to be created.
2010-05-23 13:44:18 +02:00
Óscar González Fernández
8357c60ca7 ItEr58S14RecalculosConexionEscenariosItEr57S15: Fix bug.
When a tasks is removed its dependencies must be removed too. Otherwise when the task is not preexistent a TransientObjectException happens.
2010-05-23 13:34:28 +02:00
Óscar González Fernández
90c24974e1 ItEr58S14RecalculosConexionEscenariosItEr57S15: Guarantee removed tasks sources are removed from order element.
Using taskSourceRemoval the order element is updated.
2010-05-22 20:32:42 +02:00
Óscar González Fernández
8f375a7891 ItEr58S14RecalculosConexionEscenariosItEr57S15: It's better to do it after the transaction 2010-05-22 20:28:34 +02:00
Óscar González Fernández
2d1a5682f0 ItEr58S14RecalculosConexionEscenariosItEr57S15: [Bug #465] Fix bug.
The condition was wrong. When the tasks are not preexistent the tasks cannot be removed
2010-05-22 20:19:46 +02:00
Óscar González Fernández
f3bd2501e5 ItEr58S14RecalculosConexionEscenariosItEr57S15: [Bug #466] Fix bug.
The error happened doing a validation against an hibernate proxy
object. This is an old issue. The validation annotations were applied
to fields, but they should be applied to getters to avoid problems
when the entity being validated is a proxy.
2010-05-22 17:17:51 +02:00
Óscar González Fernández
2b3417af56 ItEr58S14RecalculosConexionEscenariosItEr57S15: Add feedback.
Progress information is shown when doing reassignations.
2010-05-20 18:07:38 +02:00
Óscar González Fernández
7d32f40c47 ItEr58S14RecalculosConexionEscenariosItEr57S15: Make available functionality for making updates asynchronous 2010-05-19 20:06:02 +02:00
Óscar González Fernández
b182b3bab2 ItEr58S14RecalculosConexionEscenariosItEr57S15: Do reassignations for each order needing to be reassigned 2010-05-19 17:45:15 +02:00
Óscar González Fernández
9ad88a2dc6 ItEr58S14RecalculosConexionEscenariosItEr57S15: Copy the containers 2010-05-19 17:45:15 +02:00
Óscar González Fernández
5c6231feac ItEr58S14RecalculosConexionEscenariosItEr57S15: Expose method to retrieve the constraints 2010-05-19 17:45:15 +02:00
Óscar González Fernández
84cf8cacb5 ItEr58S14RecalculosConexionEscenariosItEr57S15: Add method for adding dependencies without enforcing restrictions 2010-05-19 17:45:15 +02:00
Óscar González Fernández
02d3d94347 ItEr58S14RecalculosConexionEscenariosItEr57S15: Adding create method to avoid repeating generic types on constructor 2010-05-19 17:45:15 +02:00
Óscar González Fernández
add12b9079 ItEr58S14RecalculosConexionEscenariosItEr57S15: Add method to retrieve the smallest start date of all children 2010-05-19 17:45:15 +02:00
Óscar González Fernández
f48b9e6d50 ItEr58S14RecalculosConexionEscenariosItEr57S15: Add method for copying assignments from one scenario to another 2010-05-19 17:45:14 +02:00
Óscar González Fernández
6ff29715e6 ItEr58S14RecalculosConexionEscenariosItEr57S15: Expose methods for getting start constraints 2010-05-19 17:45:14 +02:00
Óscar González Fernández
8a17ed629c ItEr58S14RecalculosConexionEscenariosItEr57S15: Rename method to a more meaningful name 2010-05-19 17:45:14 +02:00
Óscar González Fernández
008f581d2f ItEr58S14RecalculosConexionEscenariosItEr57S15: Allow to reuse DependencyType with another types of tasks 2010-05-19 17:45:14 +02:00
Óscar González Fernández
123103ed2e ItEr58S14RecalculosConexionEscenariosItEr57S15: Let create a IDependenciesEnforcerHook without specifying a notificator.
A default one is specified. It does nothing.
2010-05-19 17:45:13 +02:00
Óscar González Fernández
6cb780d95c ItEr58S14RecalculosConexionEscenariosItEr57S15: Add interceptor mechanism to TaskElemnt.
This allows to do things when start date or end date change
2010-05-19 17:45:07 +02:00
Óscar González Fernández
27264acef0 ItEr58S14RecalculosConexionEscenariosItEr57S15: Extract getLengthMilliseconds method and move it to TaskElement 2010-05-19 17:45:01 +02:00
Óscar González Fernández
f34140ae2c ItEr58S14RecalculosConexionEscenariosItEr57S15: Make doNothingHook method available 2010-05-18 21:43:03 +02:00
Óscar González Fernández
881fca18b9 ItEr58S14RecalculosConexionEscenariosItEr57S15: Add method to retrieve the OrderVersions needing reassignation 2010-05-17 19:28:33 +02:00
Óscar González Fernández
6e03d8b143 ItEr58S14RecalculosConexionEscenariosItEr57S15: Refactor.
Extract method for finding the user.
2010-05-17 18:43:27 +02:00
Óscar González Fernández
ffb284ec8c ItEr58S14RecalculosConexionEscenariosItEr57S15: Modify modificationByOwnerTimestamp when saving an order. 2010-05-17 16:02:06 +02:00
Óscar González Fernández
62852bf38f ItEr58S14RecalculosConexionEscenariosItEr57S15: Refactor. Necessary DAOs are provided at constructor 2010-05-17 15:17:47 +02:00
Óscar González Fernández
41e84e8bea ItEr58S14RecalculosConexionEscenariosItEr57S15: Modify modificationByOwnerTimestamp when saving a scheduling. 2010-05-17 14:30:55 +02:00
Óscar González Fernández
2fb906338e ItEr58S14RecalculosConexionEscenariosItEr57S15: Add fields for tracking the reassignations that must be done. 2010-05-17 13:37:50 +02:00
Óscar González Fernández
948b60dc47 Merge branch 'master' into scenarios
Conflicts:

	navalplanner-business/src/main/java/org/navalplanner/business/planner/daos/DayAssignmentDAO.java
	navalplanner-business/src/main/java/org/navalplanner/business/planner/daos/IDayAssignmentDAO.java
	navalplanner-business/src/main/java/org/navalplanner/business/planner/daos/ResourceAllocationDAO.java
	navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/ResourceAllocation.java
	navalplanner-business/src/main/java/org/navalplanner/business/planner/entities/SpecificResourceAllocation.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/ITaskElementAdapter.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/TaskElementAdapter.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/allocation/ResourceAllocationController.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/company/CompanyPlanningModel.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/order/OrderPlanningModel.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/order/SaveCommand.java
2010-05-16 23:47:13 +02:00
Óscar González Fernández
1ebc117466 ItEr57S15RecalculosConexionEscenarios: Fix bug.
The bug happens when moving a task if the final position is the same
as before moving it. In that case the task is left in the position
onto which is moved instead of the correct position(the initial
position). This happens because a no event is produced, old value is
equal to new value. Checking for this on TaskComponent.
2010-05-16 23:24:16 +02:00
Óscar González Fernández
eeefaf5362 ItEr57S15RecalculosConexionEscenarios: Introduce adapter so GanntDiagramGraph could be applied on another types 2010-05-16 23:24:15 +02:00
Óscar González Fernández
b9eaa0d4f6 ItEr57S15RecalculosConexionEscenarios: Use factory method instead of constructor 2010-05-16 23:24:15 +02:00
Óscar González Fernández
a21e6e1bfd ItEr57S15RecalculosConexionEscenarios: Move to top level IAction interface.
It's being used in more places than just
PreAndPostNotReentrantActionsWrapper, so it's better to move it to its
own file.
2010-05-16 23:24:07 +02:00
Diego Pino Garcia
9591152be9 ItEr58S10CUAsignacionRecursosLimitantesItEr57S11: Refactorization of logic related to allocation of queue elements into limiting resources
* Created class LimitingResourceAllocation for handling all this logic
2010-05-16 12:52:08 +02:00
Diego Pino Garcia
d7442ccbc9 ItEr58S10CUAsignacionRecursosLimitantesItEr57S11: Add support for generic resource allocation for queue elements 2010-05-16 12:52:05 +02:00
Diego Pino Garcia
a40c965cfc ItEr58S10CUAsignacionRecursosLimitantesItEr57S11: Refactor method get criterion names out of a list of criteria 2010-05-16 12:52:01 +02:00
Diego Pino Garcia
a8169baa29 ItEr58S10CUAsignacionRecursosLimitantesItEr57S11: Initialize criteria for generic resource allocation and show criteria on list of unassigned queue elements 2010-05-16 12:51:58 +02:00
Diego Pino Garcia
5d4d22e50e ItEr58S10CUAsignacionRecursosLimitantesItEr57S11: Fix NullPointerException on accessing queueElement.Resource 2010-05-16 12:51:55 +02:00