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()