Commit 8014dd02 authored by Georgios Dagkakis's avatar Georgios Dagkakis

cosmetic changes

parent b9e38d62
...@@ -10,10 +10,12 @@ class BatchesOperatorSpreadsheet(plugin.OutputPreparationPlugin): ...@@ -10,10 +10,12 @@ class BatchesOperatorSpreadsheet(plugin.OutputPreparationPlugin):
rowIndex=0 rowIndex=0
scheduleFile = xlwt.Workbook() scheduleFile = xlwt.Workbook()
scheduleSheet = scheduleFile.add_sheet('Operator Schedule', cell_overwrite_ok=True) scheduleSheet = scheduleFile.add_sheet('Operator Schedule', cell_overwrite_ok=True)
scheduleSheet.write(rowIndex,0,'Operator') headingStyle=xlwt.easyxf("font: bold on; borders: bottom dashed;font: color red;")
scheduleSheet.write(rowIndex,1,'Machine') PBstyle=xlwt.easyxf("font: bold on;font: color red;")
scheduleSheet.write(rowIndex,2,'Start Time') scheduleSheet.write(rowIndex,0,'Operator',headingStyle)
scheduleSheet.write(rowIndex,3,'End Time') scheduleSheet.write(rowIndex,1,'Machine',headingStyle)
scheduleSheet.write(rowIndex,2,'Start Time',headingStyle)
scheduleSheet.write(rowIndex,3,'End Time',headingStyle)
rowIndex+=1 rowIndex+=1
# get the result the the router gives # get the result the the router gives
...@@ -55,7 +57,7 @@ class BatchesOperatorSpreadsheet(plugin.OutputPreparationPlugin): ...@@ -55,7 +57,7 @@ class BatchesOperatorSpreadsheet(plugin.OutputPreparationPlugin):
# output the results in excel # output the results in excel
for operator in normalizedSchedule.keys(): for operator in normalizedSchedule.keys():
scheduleSheet.write(rowIndex,0,operator) scheduleSheet.write(rowIndex,0,operator,PBstyle)
for record in normalizedSchedule[operator]: for record in normalizedSchedule[operator]:
# skip the records that have 'None' # skip the records that have 'None'
if not record[0]: if not record[0]:
......
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