Commit 2db61a50 authored by Georgios Dagkakis's avatar Georgios Dagkakis

gantt changed to output different colors to parent and sub-tasks

parent 32e0f392
...@@ -26,6 +26,7 @@ class CapacityProjectGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -26,6 +26,7 @@ class CapacityProjectGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=element['id'], id=element['id'],
text='Project %s' % element['id'], text='Project %s' % element['id'],
type='project', type='project',
color='DodgerBlue',
open=False) open=False)
# loop in the project schedule to create the sub-tasks # loop in the project schedule to create the sub-tasks
...@@ -42,7 +43,8 @@ class CapacityProjectGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -42,7 +43,8 @@ class CapacityProjectGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
record['exitTime']).strftime(date_format), record['exitTime']).strftime(date_format),
open=False, open=False,
duration=int(record['exitTime'])-int(record['entranceTime']), duration=int(record['exitTime'])-int(record['entranceTime']),
entranceTime=record['entranceTime'] entranceTime=record['entranceTime'],
color='cyan'
) )
# return the result to the gadget # return the result to the gadget
......
...@@ -25,7 +25,8 @@ class CapacityStationGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -25,7 +25,8 @@ class CapacityStationGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=element['id'], id=element['id'],
text='Station %s' % element['id'], text='Station %s' % element['id'],
type='station', type='station',
open=False) open=False,
color='DodgerBlue')
# loop in the project schedule to create the sub-tasks # loop in the project schedule to create the sub-tasks
detailedWorkPlan=element['results'].get('detailedWorkPlan',{}) detailedWorkPlan=element['results'].get('detailedWorkPlan',{})
...@@ -49,6 +50,7 @@ class CapacityStationGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -49,6 +50,7 @@ class CapacityStationGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
stop_date=self.convertToRealWorldTime(exitTime).strftime(date_format), stop_date=self.convertToRealWorldTime(exitTime).strftime(date_format),
open=False, open=False,
duration=exitTime-entranceTime, duration=exitTime-entranceTime,
color='cyan',
entranceTime=entranceTime entranceTime=entranceTime
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment