Commit 3cf189e3 authored by xiao-hesheng's avatar xiao-hesheng
Browse files

流程五脚本提交

parent 5f590d7a
......@@ -312,7 +312,14 @@ def main_text():
button.pack()
root.mainloop()
def del_other_branch_info():
branch_id_list=delData().get_branch_id_bydb( FileUtils().r_info8('b2_herp3_bs', "院区新增", 'message')['branch_id'])
if len(branch_id_list)==0:
print('无其他院区数据')
messagebox.showinfo("提示信息","无其他院区数据需要删除")
else:
for i in branch_id_list:
button_clicked(i)
def button_clicked(branch_id):
result = confirm()
if result == True:
......@@ -426,7 +433,8 @@ def main_text():
column=2)
Button(root, text='删除5天前\n产品数据', anchor='center', width=8, height=3, command=del_goods_info).grid(row=6,
column=4)
Button(root, text='一键删除其他\n院区数据', anchor='center', width=8, height=3, command=del_other_branch_info).grid(row=6,
column=6)
Button(root, text='退 出', anchor='center', width=8, height=2, command=exit).grid(row=5, column=10)
# Button(root, text='anchor', anchor='e', width=30, height=4).pack()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment