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):
id=element['id'],
text='Project %s' % element['id'],
type='project',
color='DodgerBlue',
open=False)
# loop in the project schedule to create the sub-tasks
......@@ -42,7 +43,8 @@ class CapacityProjectGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
record['exitTime']).strftime(date_format),
open=False,
duration=int(record['exitTime'])-int(record['entranceTime']),
entranceTime=record['entranceTime']
entranceTime=record['entranceTime'],
color='cyan'
)
# return the result to the gadget
......
......@@ -25,7 +25,8 @@ class CapacityStationGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=element['id'],
text='Station %s' % element['id'],
type='station',
open=False)
open=False,
color='DodgerBlue')
# loop in the project schedule to create the sub-tasks
detailedWorkPlan=element['results'].get('detailedWorkPlan',{})
......@@ -49,6 +50,7 @@ class CapacityStationGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
stop_date=self.convertToRealWorldTime(exitTime).strftime(date_format),
open=False,
duration=exitTime-entranceTime,
color='cyan',
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