Commit graph

5002 commits

Author SHA1 Message Date
Farruco Sanjurjo
3c401a05d0 Skeletal code for TimeTracker widget-class
FEA: ItEr02S03MigracionZK5
2010-12-03 13:58:36 +01:00
Farruco Sanjurjo
d391d7b2ef Explicitly set width to solve shrinking problems with chrome
FEA: ItEr02S03MigracionZK5
2010-11-30 13:09:50 +01:00
Farruco Sanjurjo
091762e072 Fixed shrinked tables on labels tab
* The tables on labels tab use now 100% of all avaliable widt avaliable widthh

FEA: ItEr02S03MigracionZK5
2010-11-30 11:04:12 +01:00
Farruco Sanjurjo
fb00c28278 Added missing closing symbol
* As a result of it, the names of resources appeared on the chart

FEA: ItEr02S03MigracionZK5
2010-11-29 12:49:47 +01:00
Óscar González Fernández
b4ea86c80f FEA: ItEr02S03MigracionZK5
Avoid uses of Mode#goToOrderMode that cause unnecessary repaintings

Now the mode is changed after hiding the previous tab, so the previous
tab is not repainted and the new tab is showed with the correct mode.

FEA: ItEr63S03BugFixing
2010-11-29 12:35:20 +01:00
Farruco Sanjurjo
9a99ef5b0f Changed valing attribute to pack
*This is deprecated on ZK 5

FEA: ItEr02S03MigracionZK5
2010-11-29 12:24:49 +01:00
Farruco Sanjurjo
2f3e6f3096 Replaced DOM methods with jQuery
* We go back to jQuery after checking that using directly DOM methods didn't improve performance

FEA: ItEr02S03MigracionZK5
2010-11-23 11:46:52 +01:00
Farruco Sanjurjo
5a92a1542f Fixed bug that caused Duplicated ID exception
* The listener must be removed or we'll be appending the same object twice

FEA: ItEr02S03MigracionZK5
2010-11-19 13:30:55 +01:00
Farruco Sanjurjo
4464734858 Fixed onflicts:
ganttzk/src/main/java/org/zkoss/ganttz/TaskComponent.java
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/company/CompanyPlanningModel.java

FEA: ItEr02S03MigracionZK5
2010-11-15 14:05:22 +01:00
Farruco Sanjurjo
e39d57e33f Missing commit
* This commit had to be created back on time but I forgot to do it : (

FEA: ItEr02S03MigracionZK5
2010-11-15 12:36:26 +01:00
Farruco Sanjurjo
5d49d113b1 Revert comments that prevented the use of timeplot
* All problems have been fixed so it's safe to use it now

FEA: ItEr02S03MigracionZK5
2010-11-15 12:34:24 +01:00
Farruco Sanjurjo
5a697262fa Polished version of previous commit (load chart on demand)
FEA: ItEr02S03MigracionZK5
2010-11-15 12:28:39 +01:00
Farruco Sanjurjo
38fd09db85 First approach for loading charts on demand
* Code needs to be polished

FEA: ItEr02S03MigracionZK5
2010-11-15 12:09:16 +01:00
Farruco Sanjurjo
96cb860594 Added named parameters for TaskComponent widget-events
FEA: ItEr02S03MigracionZK5
2010-10-29 11:43:25 +02:00
Farruco Sanjurjo
f83d779e79 Added resize capabilities to tasks
* When tasks are resized an onUpdateWidth event is fired to the server

FEA: ItEr02S03MigracionZK5
2010-10-29 11:07:59 +02:00
Farruco Sanjurjo
9412d2f204 Fixed bug regarding Widget.addAft() function
* After creating a new dependency the server responded with a call to addAft for adding the dependecy. But as we were deleting all dependecy lines, addAft failed to find the hook point (where to add after)

* Now only the unlinked dependency (temporary) is deleted

FEA: ItEr02S03MigracionZK5
2010-10-29 10:11:51 +02:00
Óscar González Fernández
bb53ec7060 Merge branch 'master' into migration-to-ZK5-dev
Conflicts:
	ganttzk/src/main/java/org/zkoss/ganttz/DependencyComponent.java
	ganttzk/src/main/java/org/zkoss/ganttz/TaskComponent.java
	ganttzk/src/main/resources/web/ganttz/zul/plannerLayout.zul
	navalplanner-webapp/src/main/java/org/navalplanner/web/planner/chart/ChartFiller.java
	pom.xml
2010-10-26 17:17:49 +02:00
Farruco Sanjurjo
ce6832a731 Added missing setClass method for TaskComponent widget-class
* This method is invoked from the server after composing the component

FEA: ItEr02S03MigracionZK5
2010-10-26 12:36:15 +02:00
Farruco Sanjurjo
50072a0f01 Deleted deprecated code
* This code was used for handling onIncrease and onDecrease (zoomLevel) events but those are now longer used

FEA: ItEr02S03MigracionZK5
2010-10-26 12:34:25 +02:00
Farruco Sanjurjo
a93970fd98 Ganttpanel changed to scroll on zoomlevel change
* It's not working yet, but I prefer to do small commits

FEA: ItEr02S03MigracionZK5
2010-10-26 09:58:35 +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
Farruco Sanjurjo
6e52fa9c57 Sent timetracker's scroll_left value when planner's zoom level changes
* It's sent on the same event as the chosen zoom level

FEA: ItEr02S03MigracionZK5
2010-10-22 13:31:47 +02:00
Farruco Sanjurjo
6db8cfed95 Added a token for referencing elements on event data
* Now you can individually pick elements within the event data

FEA: ItEr02S03MigracionZK5
2010-10-22 13:28:47 +02:00
Farruco Sanjurjo
d85543e0b3 Replaced listener on zul code with listener on widget
* When GanttPannel's zoomLevel is changed we have to update the timetracker and scroll the pannel, so
we need the timetracker's scrollLeft value. Instead of asking for it to the GanttPannel after the listener
is executed at Planner.java we will send both the selected zoomLevel and the scroll value. We replaced the
listener at the zul file and added a new listener at Planner's widget class. Currently we are only sending the
desired zoomLevel

FEA: ItEr02S03MigracionZK5
2010-10-22 09:54:37 +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