Commit 07ec0182 authored by Georgios Dagkakis's avatar Georgios Dagkakis

decorative enhancements to JS gantt

parent 2ecc1fd9
...@@ -49,7 +49,7 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -49,7 +49,7 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=order_id, id=order_id,
text=order.get('name', order_id), text=order.get('name', order_id),
type='project', type='project',
open=True) open=False)
break break
# add the component in the task_dict # add the component in the task_dict
task_dict[element['id']] = dict( task_dict[element['id']] = dict(
...@@ -57,7 +57,8 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -57,7 +57,8 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
text=componentId, text=componentId,
type='project', type='project',
open=False, open=False,
parent=order_id) parent=order_id,
color='DodgerBlue')
k=1 k=1
...@@ -94,6 +95,7 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -94,6 +95,7 @@ class JSComponentGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
exitTime).strftime(date_format), exitTime).strftime(date_format),
open=False, open=False,
entranceTime=entranceTime, entranceTime=entranceTime,
color='cyan',
duration=exitTime-entranceTime, duration=exitTime-entranceTime,
) )
......
...@@ -42,7 +42,8 @@ class JSOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -42,7 +42,8 @@ class JSOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
id=operatorId, id=operatorId,
text=operatorId, text=operatorId,
type='operator', type='operator',
open=False) open=False,
color='DodgerBlue')
for record in schedule: for record in schedule:
entranceTime=record['entranceTime'] entranceTime=record['entranceTime']
...@@ -73,6 +74,7 @@ class JSOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin): ...@@ -73,6 +74,7 @@ class JSOperatorGantt(plugin.OutputPreparationPlugin, TimeSupportMixin):
exitTime).strftime(date_format), exitTime).strftime(date_format),
open=False, open=False,
entranceTime=entranceTime, entranceTime=entranceTime,
color='cyan',
duration=exitTime-entranceTime, duration=exitTime-entranceTime,
) )
if task_id == 'off-shift': if task_id == 'off-shift':
......
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