调整生成内容,每个单元格内都插入项目名称内容
This commit is contained in:
parent
d18d600334
commit
c47e49baaf
20
gen_word.py
20
gen_word.py
@ -90,20 +90,32 @@ class WEEK_REPORT:
|
||||
# 删除上周工作内容
|
||||
for i in range(7,12):
|
||||
|
||||
table.Cell(Row=i, Column=2).Range.Text = ''
|
||||
table.Cell(Row=i, Column=3).Range.Text = ''
|
||||
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.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 = ''
|
||||
|
||||
# 工作完成情况
|
||||
table.Cell(Row=15, Column=1).Range.Text = "\n".join(["{}(?%)".format(i) for i in self.project_name])
|
||||
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.Name = "Times New Roman"
|
||||
table.Cell(Row=15, Column=1).Range.Text = table.Cell(Row=15, Column=1).Range.Text.upper()
|
||||
|
||||
# 困难问题、经验教训及建议
|
||||
table.Cell(Row=17, Column=1).Range.Text = ''
|
||||
|
||||
# 下周工作重点
|
||||
table.Cell(Row=19, Column=1).Range.Text = ''
|
||||
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.Name = "Times New Roman"
|
||||
table.Cell(Row=19, Column=1).Range.Text = table.Cell(Row=19, Column=1).Range.Text.upper()
|
||||
|
||||
def close_file(self):
|
||||
logger.info("process: copy file ...")
|
||||
|
Loading…
x
Reference in New Issue
Block a user