2021/3/3
parent
d719e95ab0
commit
25a96729ae
|
@ -30,7 +30,6 @@ def export(report,
|
||||||
if report is None:
|
if report is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
####################################################################################################################
|
####################################################################################################################
|
||||||
# Step 2: Generate excel file from the report data
|
# Step 2: Generate excel file from the report data
|
||||||
####################################################################################################################
|
####################################################################################################################
|
||||||
|
@ -392,7 +391,6 @@ def generate_excel(report,
|
||||||
ws['B' + str(rows)].border = f_border
|
ws['B' + str(rows)].border = f_border
|
||||||
|
|
||||||
for index in range(0, ca_len):
|
for index in range(0, ca_len):
|
||||||
|
|
||||||
col_average = chr(ord('C') + index * 2)
|
col_average = chr(ord('C') + index * 2)
|
||||||
col_maximum = chr(ord('C') + index * 2 + 1)
|
col_maximum = chr(ord('C') + index * 2 + 1)
|
||||||
|
|
||||||
|
@ -412,7 +410,6 @@ def generate_excel(report,
|
||||||
|
|
||||||
# LineChart
|
# LineChart
|
||||||
for i in range(0, ca_len):
|
for i in range(0, ca_len):
|
||||||
|
|
||||||
lc = LineChart()
|
lc = LineChart()
|
||||||
lc.title = "报告期 最大负荷"
|
lc.title = "报告期 最大负荷"
|
||||||
lc.style = 10
|
lc.style = 10
|
||||||
|
|
|
@ -7,6 +7,7 @@ from core import utilities
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import excelexporters.shopfloorload
|
import excelexporters.shopfloorload
|
||||||
|
|
||||||
|
|
||||||
class Reporting:
|
class Reporting:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def __init__():
|
def __init__():
|
||||||
|
|
Loading…
Reference in New Issue