From 1e83c988839b80d67a35744cabcc0fc1e2a6f4a0 Mon Sep 17 00:00:00 2001 From: fengbohan <1953356163@qq.com> Date: Wed, 3 Jul 2024 16:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A2=9D=E5=A4=96=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen_word.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gen_word.py b/gen_word.py index d173dc2..30a0813 100644 --- a/gen_word.py +++ b/gen_word.py @@ -92,19 +92,20 @@ class WEEK_REPORT: table.Cell(Row=i, Column=2).Range.Text = "\n".join(["{}:".format(i) for i in self.project_name]) table.Cell(Row=i, Column=3).Range.Text = "\n".join(["{}:".format(i) for i in self.project_name]) - table.Cell(Row=i, Column=2).Range.Font.Bold = True - table.Cell(Row=i, Column=3).Range.Font.Bold = True + # table.Cell(Row=i, Column=2).Range.Font.Bold = True + # table.Cell(Row=i, Column=3).Range.Font.Bold = True table.Cell(Row=i, Column=2).Range.Font.Name = "Times New Roman" table.Cell(Row=i, Column=3).Range.Font.Name = "Times New Roman" table.Cell(Row=i, Column=2).Range.Text = table.Cell(Row=i, Column=2).Range.Text.upper() table.Cell(Row=i, Column=3).Range.Text = table.Cell(Row=i, Column=3).Range.Text.upper() # 额外工作记录 - table.Cell(Row=13, Column=1).Range.Text = '' + str_tmp = "\n" + " ;".join([" {}:".format(i) for i in self.project_name]); + table.Cell(Row=13, Column=1).Range.Text = "周一(0h){0}\n周二(0h){0}\n周三(0h){0}\n周四(0h){0}\n周五(0h){0}\n周六(0h){0}\n周日(0h){0}\n".format(str_tmp) # 工作完成情况 table.Cell(Row=15, Column=1).Range.Text = "\n".join(["{}(xx%)".format(i) for i in self.project_name]) - table.Cell(Row=15, Column=1).Range.Font.Bold = True + #table.Cell(Row=15, Column=1).Range.Font.Bold = True table.Cell(Row=15, Column=1).Range.Font.Name = "Times New Roman" table.Cell(Row=15, Column=1).Range.Text = table.Cell(Row=15, Column=1).Range.Text.upper() @@ -113,7 +114,7 @@ class WEEK_REPORT: # 下周工作重点 table.Cell(Row=19, Column=1).Range.Text = "\n".join(["{}:".format(i) for i in self.project_name]) - table.Cell(Row=19, Column=1).Range.Font.Bold = True + #table.Cell(Row=19, Column=1).Range.Font.Bold = True table.Cell(Row=19, Column=1).Range.Font.Name = "Times New Roman" table.Cell(Row=19, Column=1).Range.Text = table.Cell(Row=19, Column=1).Range.Text.upper()