Commit graph

796 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
9bd6e29d44 Fix problem with session zoom level in project Gantt view
If the zoom level was changed in other view inside a project, Gantt view didn't
notice it.

FEA: ItEr77S15FilteringEnhancements
2013-02-07 13:07:29 +01:00
Manuel Rego Casasnovas
abe2313b69 Remove Planner.fixedZoomByUser attribute
The attribute is removed as the zoom is going to be managed from the session.

FEA: ItEr77S15FilteringEnhancements
2013-02-06 13:47:10 +01:00
Manuel Rego Casasnovas
dbc24f0833 Revert "Added global zoom level session variable"
This reverts commit 235f6de48c.
2013-02-06 13:42:52 +01:00
Lorenzo Tilve Álvaro
235f6de48c Added global zoom level session variable
FEA: ItEr77S15FilteringEnhancements
2013-02-05 13:19:09 +01:00
Manuel Rego Casasnovas
2b4be85656 Revert "Bug #1590: Fix problem calling several times the same method in OrderModel"
This reverts commit 7ca0d43883.
2012-12-11 16:33:33 +01:00
Manuel Rego Casasnovas
7ca0d43883 Bug #1590: Fix problem calling several times the same method in OrderModel
The problem was that OrderModel.getOrders() was been called several times to
show the list of projects.

After reviewing the problem several issues were detected:
* Util.createBindingsFor was always calling .loadAll() for each binder it
  creates, however this was not needed. Moreover a lot of times
  Util.reloadBindings is called just after Util.createBindings so the same thing
  is called twice.
* If you go via the entry point or the icon to the project list, the binder for
  the page is properly initialized or not. If you come from the entry point, the
  binder is already working as expected, however if you come from the icon the
  binder has to be created manually. It has been added a method
  CreatedOnDemandTab.afterCreateAction() that is called or not depending if the
  user comes from the entry point or the icon.

FEA: ItEr77S04BugFixing
2012-12-07 12:01:59 +01:00
Manuel Rego Casasnovas
9937f00e76 Bug #1587: Fix issue only resetting index of progress combo if it has items
FEA: ItEr77S04BugFixing
2012-12-04 09:42:30 +01:00
Manuel Rego Casasnovas
2c51ef98a1 Bug 1581: Avoid exception in LongOperationFeedback if desktop is not ready
FEA: ItEr77S04BugFixing
2012-12-03 14:55:41 +01:00
Lorenzo Tilve Álvaro
b3f557f58a Fixed NPE when deleting nodes too fast on project or template WBS trees
This was happening when clicking too fast on the node deletion
column on the tree, wich caused an exception due to trying to remove
an already deleted element.

FEA: ItEr77S04BugFixing
2012-11-29 09:58:32 +01:00
Manuel Rego Casasnovas
8d9a92d7ba Bug 1581: Avoid exception when desktop is not alive in LongOperationFeedback
FEA: ItEr77S04BugFixing
2012-11-28 09:48:22 +01:00
Lorenzo Tilve Álvaro
e79b532d95 Added onClick listener to project names on company view to enter into the planning
This is done using the entry point /planner/index.zul;order=order-code which also helps
browser history management to enable bookmarking, refreshing or use the back button.

The link to the taks from the project view is not added due to an interaction it has with
the system to prevent from leaving the current URL, which would need to be written with anchors
to avoid this interaction.

FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Lorenzo Tilve Álvaro
fc424944d1 Exposed project and tasks codes from fundamental properties to generate entry point URLs
FEA: ItEr77S03Community
2012-11-26 16:30:10 +01:00
Jacobo Aragunde Pérez
7ab8e7f07c Bug #1541: Fix issue reseting selected element when progress is hidden
FEA: ItEr77S04BugFixing
2012-11-23 12:58:57 +01:00
Manuel Rego Casasnovas
872520dac2 Calculate progress and hours bars always proportionally to task size
Both bars will work like the money cost bar was already working.

The change is done due to the problem that appears when you adapt the planning,
and some planning remains before the start of the task. In that cases the bars
were not being printed properly.

Moreover current implementation was quite complex, and even if it gives some
useful information in specific cases, it also causes some misunderstandings to
the users.

FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-19 13:57:20 +01:00
Manuel Rego Casasnovas
e1fbcd6ac9 Change style of tasks that cannot be moved in the Gantt
Set a new class for fixed tasks showing a shadow under the task box and changing
the border color.

FEA: ItEr77S04BugFixing
2012-11-15 12:48:29 +01:00
Manuel Rego Casasnovas
d258b989f9 Merge branch 'libreplan-1.3' into adapt-planning-according-timesheets 2012-11-15 09:45:27 +01:00
Manuel Rego Casasnovas
9e4cbd2484 Show marks from timesheet dates in tasks when showing reported hours bar
FEA: ItEr77S12AdaptPlanningAccordingTimesheets
2012-11-13 18:37:15 +01:00
Manuel Rego Casasnovas
6177a5eee0 Bug #1560: Fire property change for task dates after closing allocation pop-up
FEA: ItEr77S04BugFixing
2012-11-13 13:59:25 +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
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
82e18fb77d Revert "Bug #1320: Recalculate position of siblings when moving a task"
This reverts commit 125146ebd2 because of the
solution for bug #1320 was causing a new bug #1540.
2012-10-09 09:29:16 +02:00
Jacobo Aragunde Pérez
519ac2a5aa Simplify the way to calculate the length of money cost bars on the tasks in the
Gantt diagram.

Until now, the percentace of money was transformed into a date and then again
into a percentage.
2012-09-24 13:08:52 +02:00
Manuel Rego Casasnovas
125146ebd2 Bug #1320: Recalculate position of siblings when moving a task
When a task is moved in the Gantt, the constraint changes and it could causes
that some of its siblings should be moved, because of the parent element is
moved too.

FEA: ItEr77S04BugFixing
2012-09-21 18:32:10 +02:00
Manuel Rego Casasnovas
172c9ba195 Using debug method for logging some messages that are meant for debugging 2012-09-14 10:17:50 +02:00
Jacobo Aragunde Pérez
1295617a1d Bug #1508: Display the correct task end date in the task properties window.
FEA: ItEr76S04BugFixing
2012-07-16 16:59:44 +02:00
Lorenzo Tilve Álvaro
2d5273b1a6 Bug #1493: Modified project deadline vertical line position to show it after the deadline date
FEA: ItEr76S04BugFixing
2012-07-11 11:28:15 +02:00
Lorenzo Tilve Álvaro
201bb6e363 Bug #1493: Modified task deadline mark position to show it just after the deadline date
FEA: ItEr76S04BugFixing
2012-07-11 11:28:15 +02:00
Manuel Rego Casasnovas
9028b56c3d Remove unneeded check in TabsRegistry related to limiting resources tab
FEA: ItEr76S04BugFixing
2012-07-04 20:36:14 +02:00
Manuel Rego Casasnovas
181ed61c48 Remove unused methods and variable in TaskComponent
FEA: ItEr76S04BugFixing
2012-06-08 08:52:06 +02:00
Manuel Rego Casasnovas
5506482e42 Bug #1454: Force update task size after reassignations
FEA: ItEr76S04BugFixing
2012-06-07 18:32:43 +02:00
Susana Montes Pedreira
7364bb000d Merge branch 'master' into subcontracting 2012-05-08 18:16:09 +01:00
Manuel Rego Casasnovas
e1f91e4900 Bug #1263: Fix issue reseting the value of the textbox
The problem is fixed both in forwards and backwards planning

FEA: ItEr76S04BugFixing
2012-04-30 18:22:22 +02:00
Manuel Rego Casasnovas
7d9f997f3c Bug #1416: Reload resources text in parent tasks too
Removed call to reload resources text from progress consolidation window and
advanced allocation window as it was not needed.

FEA: ItEr76S04BugFixing
2012-04-19 16:11:59 +02:00
Manuel Rego Casasnovas
41610cad2b Change the order and labels of the filtering area
FEA: ItEr76S23ImproveFilteringArea
2012-04-13 09:50:43 +02:00
Susana Montes Pedreira
2008ea6744 Merge branch 'master' into subcontracting-merger-master 2012-04-10 16:36:55 +01:00
Manuel Rego Casasnovas
3ca4f222f1 Bug #1402: Invalidate the TaskComponents instead of the whole GanttPanel
FEA: ItEr76S04BugFixing
2012-04-10 13:39:50 +02:00
Manuel Rego Casasnovas
979ac144b1 Merge branch 'money-cost-monitoring-system' 2012-03-27 17:51:02 +02:00
Manuel Rego Casasnovas
120534e6ff Disable Money Cost Bar in company view to avoid performance issues
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-26 10:27:15 +02:00
Manuel Rego Casasnovas
7500675a41 Add option to print money cost bar
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-20 17:58:13 +01:00
Susana Montes Pedreira
755387110d Merge branch 'master' into subcontracting 2012-03-20 10:03:51 +00:00
Manuel Rego Casasnovas
0d1cff5feb Remove method getMoneyCostBarPercentage from ITaskFundamentalProperties
This method is not need as it's only used in a private method inside
TaskElementAdapter.

FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-19 12:44:38 +01:00
Manuel Rego Casasnovas
ac430aba6a Using the new MoneyCostCalculator to print the new Money Cost bar
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-19 12:23:18 +01:00
Manuel Rego Casasnovas
abb5851afb Add new money cost bar at this moment using value, icon and color of reported hours
FEA: ItEr76S17MoneyCostMonitoringSystem
2012-03-16 11:51:32 +01:00
Lorenzo Tilve Álvaro
b3338e7246 Bug 1383: Fixed corner case of deadline and current day right position
The background position of the current day and deadline was outside the
visible area in the timetracker watermark columns when it was on the
last day of the interval.

A better alignment with the tasks layer (reducing the 3px max deviation)
on this cases can be achieved by revamping how lines and borders are
represented on the watermark layer.

FEA: ItEr76S04BugFixing
2012-12-31 15:18:02 +01:00
Lorenzo Tilve Álvaro
1ec4d83e95 Bug 1383: Fixed corner case of deadline and current day right position
The background position of the current day and deadline was outside the
visible area in the timetracker watermark columns when it was on the
last day of the interval.

A better alignment with the tasks layer (reducing the 3px max deviation)
on this cases can be achieved by revamping how lines and borders are
represented on the watermark layer.

FEA: ItEr76S04BugFixing
2012-03-05 12:22:42 +01:00
Lorenzo Tilve Álvaro
01741d2de6 Added vertical line in scheduling perspective to display project start date
FEA: ItEr76S04BugFixing
2012-03-05 12:22:05 +01:00
Jacobo Aragunde Pérez
bc94cb2c3d Bug #1344: Fix bug moving the addition of ConstraintViolationListeners to
doAfterCompose instead of constructor.

When doAfterCompose is run, we are sure we are ready to send messages to the
client side.

FEA: ItEr76S04BugFixing
2012-03-02 13:47:48 +01:00
Jacobo Aragunde Pérez
4c25361d1d Bug #1344: Fix bug moving the addition of ConstraintViolationListeners to
doAfterCompose instead of constructor.

When doAfterCompose is run, we are sure we are ready to send messages to the
client side.

FEA: ItEr76S04BugFixing
2012-03-02 13:44:26 +01:00
Óscar González Fernández
7665af0247 Some API docs for the entering/reentering part 2012-03-01 18:21:30 +01:00