pull/1/head
Caozhenhui 2021-03-03 16:04:49 +08:00
parent d719e95ab0
commit 25a96729ae
2 changed files with 28 additions and 30 deletions

View File

@ -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

View File

@ -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__():