Commit graph

8666 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
51f3d75038 Invalidate planner in order to repaint dependencies after updating tasks in Gantt
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 10:54:29 +01:00
Manuel Rego Casasnovas
48b4783524 Update tasks in Gantt after adapting start and end date of all tasks
First all tasks are proccesed and the start and end date adapted accordingly.
Then all the tasks updated from timesheets are updated in the Gantt view.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 10:53:00 +01:00
Manuel Rego Casasnovas
9bd527c32f Remove assignments after end date for tasks marked as finished in the timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 08:08:16 +01:00
Manuel Rego Casasnovas
b8f17c7235 Disable drag & drop for tasks updated from timesheets in the WBS
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 23:05:04 +01:00
Manuel Rego Casasnovas
a1f4ece458 Disable new, new from template, up, down, indent and unindent buttons in WBS
Depending on selected node and if it's or not updated from templates the
different buttons are enabled or disabled accordingly.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 22:32:38 +01:00
Manuel Rego Casasnovas
43d4b9b805 Remove unused code in TreeController
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 19:54:21 +01:00
Manuel Rego Casasnovas
5fda1969a4 Prevent tasks updated from timesheets to be reassigned
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 19:14:15 +01:00
Manuel Rego Casasnovas
8e8c12dd74 Disable advanced allocation window for tasks updated from timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 15:42:51 +01:00
Manuel Rego Casasnovas
62d9221e6f Disable tasks movement for tasks updated from timesheets
Mark updatedFromTimesheets is reseted before adapting the planing in order to
move the tasks if needed.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 15:30:25 +01:00
Manuel Rego Casasnovas
2c98e99d63 Disable resource allocation pop-up for tasks updated from timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-12 13:00:44 +01:00
Manuel Rego Casasnovas
f25897a6a4 Disable change of scheduling state point in WBS for tasks updated from timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-07 15:42:43 +01:00
Manuel Rego Casasnovas
4397d43133 Disable constraints combo in tasks updated from timesheets
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-07 15:42:43 +01:00
Manuel Rego Casasnovas
80601c2034 Set properly task position for tasks updated from timesheets even if dependencies have priority
The task is marked as fixed if it has been updated from timesheets even in the
case that dependencies have priority and it should be moved to a different
position. The dependencies will appear as violated.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-07 15:42:33 +01:00
Manuel Rego Casasnovas
acacba7911 Implement main operations in adapt planning command
* TaskElements are marked or not as updatedFromTimesheets
* TaskElement start date is set with a START_IN_FIXED_DATE constraint to the
  first date in the timesheets
* TaskElement end date is set to the last date in the timesheets if this is
  later than the current end date of the task
* Depending on if the task is marked as finishedFromTimesheets, a progress of
  type TIMESHEETS is added or not. If the task is finished, the end date is set
  according to last date in the timesheets
* TaskElement size and position is updated in the Gantt

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-06 19:20:41 +01:00
Manuel Rego Casasnovas
e9365ed1b0 Add new button to adapt planning according to timesheets
It has been added a new method ICommand.isPlannerCommand() to define if a button
should be added in the planner toolbar or in the common toolbar (save and cancel
buttons).

For the moment, we are using a hard-coded value to know how many buttons we
should add in the plannerToolbar. At this moment we have 2 buttons: reassign and
adapt planning.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-05 09:52:23 +01:00
Manuel Rego Casasnovas
82bad8a1a7 Add new field updatedFromTimesheets to TaskElement
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-05 08:03:41 +01:00
Manuel Rego Casasnovas
58928b208b Add implementation to calculate if a task is finished according to timesheets
It has been modified the calculation of SumChargedEffort to include the new
field finishedTimesheets.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-02 13:20:20 +01:00
Manuel Rego Casasnovas
33d43babf7 Add new attribute finishedTimesheets in SumChargedEffort
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-02 13:00:56 +01:00
Manuel Rego Casasnovas
d07686af7e Disable finished checkbox in work reports UI if the task is already finished
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-02 12:36:27 +01:00
Manuel Rego Casasnovas
6c3a915b8d Implement constraint to check that only one WorkReportLine per task is finished
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-02 12:36:21 +01:00
Manuel Rego Casasnovas
a8ba46e505 Add checkbox in work reports standard edition UI
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-02 09:31:07 +01:00
Manuel Rego Casasnovas
69c842350f Add new attribute finished to WorkReportLine
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-02 07:42:37 +01:00
Manuel Rego Casasnovas
e4bd4b980f Create new default progress type TIMESHEETS
The new progress type is read-only, so a new field to mark it in AdvanceType has
been added and used in the UI accordingly.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-10-30 13:24:04 +01:00
Manuel Rego Casasnovas
4adc1ec71f Calculate first/last timesheets dates when saving/editing/deleting a timesheet
In order to do that, a set of order elements affected by the lines
added/edit/removed in a timesheet is calculated before saving the timesheet.
Afterwards the first/last dates are recalculated for all the order elements in
the set.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-10-30 13:24:04 +01:00
Manuel Rego Casasnovas
460896ee8b Calculate first/last timesheet dates when recalculating a SumChargedEffortDAO
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-10-30 13:24:04 +01:00
Manuel Rego Casasnovas
ba2ce0371d Add new columns in SumChargedEffort for first and last timesheet date
The first and last date of the task depending on the timesheets will be stored
in these two new fields in SumChargedEffort.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-10-30 13:24:04 +01:00
Manuel Rego Casasnovas
47600797d8 Bug #1549: Avoid exception avoiding checking lines resource if there are no lines
In
ExpenseSheet.checkConstraintPersonalExpenseSheetMustHaveTheSameResourceInAllLines
we check that the resource is the same in all the lines. However, if there are
no lines an exception arises.

FEA: ItEr77S04BugFixing
2012-10-25 14:10:24 +02:00
Manuel Rego Casasnovas
283cab8d23 Add filter by order authorizations in project status report
If you just filter by labels/criteria and you don't choose any specific project.
You were able to see tasks from projects that you are not allowed to read. Now
this is fixed.

FEA: ItEr77S09WBSReport
2012-10-25 12:52:56 +02:00
Manuel Rego Casasnovas
270aa99aee Merge branch 'master' into project-status-report 2012-10-25 12:19:50 +02:00
Manuel Rego Casasnovas
7f5d6c4ace Reset MoneyCostCalculator before generating project status report
If you generate the report and afterwards you report some expenses in a project,
the MoneyCostCalculator cache still keep the previous value for the report.

Now the MoneyCostCalculator cache is reseted every time the report is generated.

FEA: ItEr77S09WBSReport
2012-10-25 12:08:53 +02:00
Manuel Rego Casasnovas
1a8ab420f0 Add hours and cost mark in status report header too
FEA: ItEr77S09WBSReport
2012-10-25 11:23:03 +02:00
Manuel Rego Casasnovas
b64fc0892e Sort order elements by code in OrderElementDAO.findByLabelsAndCriteria
FEA: ItEr77S09WBSReport
2012-10-25 10:44:56 +02:00
Manuel Rego Casasnovas
d9575754a4 Add query to get OrderElements filtered by labels and criteria
FEA: ItEr77S09WBSReport
2012-10-24 12:35:39 +02:00
Manuel Rego Casasnovas
1ca57a5a00 Marking with red color special cases in project status report
FEA: ItEr77S09WBSReport
2012-10-23 18:57:19 +02:00
Manuel Rego Casasnovas
3681464dc9 Add exclamation mark in status report if hours or cost exceed the expected value
FEA: ItEr77S09WBSReport
2012-10-23 18:10:43 +02:00
Manuel Rego Casasnovas
33eb2ddcd0 Add information about filter in project status report header if no project is selected
FEA: ItEr77S09WBSReport
2012-10-23 14:33:48 +02:00
Manuel Rego Casasnovas
8f49d3b00a Avoid project in status report header if not selected
FEA: ItEr77S09WBSReport
2012-10-23 14:13:06 +02:00
Manuel Rego Casasnovas
ac99c98a82 Add project name in tasks when no project is selected in status report
FEA: ItEr77S09WBSReport
2012-10-23 13:56:45 +02:00
Manuel Rego Casasnovas
1f4a6e98f8 Add option to do not filter by project if you are filtering by labels or criteria
FEA: ItEr77S09WBSReport
2012-10-23 13:37:34 +02:00
Jacobo Aragunde Pérez
b0ab592785 Bug #1551: Added FIXME notes to two tests that are causing trouble.
I have identified a problem but I haven't the knowledge to fix it now.

FEA: ItEr77S04BugFixing
2012-10-23 13:27:57 +02:00
Jacobo Aragunde Pérez
2cc39d9dba Fix CriterionSatisfactionDAOTest when run individually.
It failed since the addition of Resource.checkMaxResources().

FEA: ItEr77S04BugFixing
2012-10-23 13:27:57 +02:00
Jacobo Aragunde Pérez
61162ad9fe Fix ResourceDAOTest when run individually.
It failed since the addition of Resource.checkMaxResources().

FEA: ItEr77S04BugFixing
2012-10-23 13:27:56 +02:00
Manuel Rego Casasnovas
535d2e3423 Fix criteria filtering discounting children with invalidated criteria
If any child has the filtering criteria invalidated, it's not taken into account
in order to calculate the values in the parent task that is part of the report.

FEA: ItEr77S09WBSReport
2012-10-22 18:08:54 +02:00
Manuel Rego Casasnovas
242cfa8e35 Implement filtering by criteria
Pending to remove children with invalidated criteria from the calculation of the
data for the containers.

FEA: ItEr77S09WBSReport
2012-10-22 18:08:54 +02:00
Manuel Rego Casasnovas
cdc733ce8d Add UI to filter by criteria
FEA: ItEr77S09WBSReport
2012-10-22 18:08:54 +02:00
Manuel Rego Casasnovas
474b349712 Add filter by labels to project status report
The tasks that will appear in the report are the ones that have directly
assigned all the labels, so the children will be hidden.

FEA: ItEr77S09WBSReport
2012-10-22 18:08:54 +02:00
Manuel Rego Casasnovas
da3a60e7cf Modify project status report to include new data
Add parameters in the controller and data for each colum in the DTOs.

Create a new Util class with utilities for report DTOs.

FEA: ItEr77S09WBSReport
2012-10-22 18:08:54 +02:00
Manuel Rego Casasnovas
12011733a3 Modify project status report layout to include information about costs
Add new columns: budget, hours cost, expenses cost and total cost. Together with
the summary fields in the header.

Update .properties file accordingly to the new columns and fields in the report.

FEA: ItEr77S09WBSReport
2012-10-22 18:08:54 +02:00
Manuel Rego Casasnovas
9cb91ad3f5 Add transactional readonly in findCode to avoid bug introduced in previous patch
FEA: ItEr77S04BugFixing
2012-10-22 09:42:03 +02:00
Manuel Rego Casasnovas
fd74722614 Use code to go to entry points when possible
Modify entry points converters for entities extending IntegrationEntity in order
to use code instead of id. In that way user can see the code in the UI without
having to query the database.

FEA: ItEr77S04BugFixing
2012-10-19 14:37:20 +02:00