Beispiel #1
0
 def __init__(self):
     PathUtils.initDir()  # 创建目录
     # 数据库操作
     dbUtils = DbUtils('config_3_series')
     # self.queryItems = dbUtils.select({"id": 511})
     # self.queryItems = dbUtils.select(None)
     self.queryItems = dbUtils.selectByPage(None, 0, 1)
Beispiel #2
0
 def save(self):
     PathUtils.initDir()
     rootPath = PathUtils.getRootPath()
     self.workBook.save(rootPath + '/output/config/config_6_config.xlsx')
Beispiel #3
0
 def save(self, workBook, folderName, sheetName):
     PathUtils.initDir()
     rootPath = PathUtils.getRootPath()
     workBook.save(rootPath + '/output/%s/%s.xlsx' % (folderName, sheetName))
Beispiel #4
0
 def __init__(self):
     PathUtils.initDir()  # 初始化文件夹
     dbUtils = DbUtils('config_5_spec')  # 加载数据库
     self.queryItems = dbUtils.select(None)  # 查询数据