def _savePicture(targetFolder, fileName): sourceFile = ShottedPictureService.getTempPicturePath() targetPath = os.path.join( targetFolder, fileName + CfgService.get(CfgKey.PICTURE_FORMAT)) unicTargetPath = ShottedPictureService._getUnicFileName(targetPath) FileFolderService.moveFile(sourceFile, unicTargetPath) return FileFolderService.getAbsoltPath(unicTargetPath)
def getTempPicturePath(): folder = os.path.join(ShottedPictureService._getSaveFolder(), CfgService.get(CfgKey.RAW_PICTURE_SUB_DIR)) FileFolderService.createFolderIfNotExist(folder) relativPath = os.path.join( folder, "temp" + CfgService.get(CfgKey.PICTURE_FORMAT)) return FileFolderService.getAbsoltPath(relativPath)
def __init__(self): self.dbConnection = None dbPathWithName = FileFolderService.getAbsoltPath(self._getDBPath()) FileFolderService.creatFolderByFileIfNotExist(dbPathWithName) self.TABLE_NAME = "PRINTING_LIMITATION" self.TABLE_COLUMN_PICTURE_NAME = "PICTURE_NAME" self.TABLE_COLUMN_ORDER_NUMBER = "ORDER_NUMBER" self.dbConnection = sqlite3.connect(dbPathWithName) self._createTableIfNotExist()
def __init__(self): self.dbConnection = None dbPathWithName = FileFolderService.getAbsoltPath(self._getDBPath()) FileFolderService.creatFolderByFileIfNotExist(dbPathWithName) self.TABLE_NAME = "PRINT" self.TABLE_COLUMN_ID = "ID" self.TABLE_COLUMN_PICTURE_NAME = "PICTURE_NAME" self.TABLE_COLUMN_JOBID = "JOB_ID" self.dbConnection = sqlite3.connect(dbPathWithName) self._createTableIfNotExist()
def __init__(self): self.dbConnection = None dbPathWithName = FileFolderService.getAbsoltPath(self._getDBPath()) FileFolderService.creatFolderByFileIfNotExist(dbPathWithName) self.TABLE_NAME = "BACKGROUND" self.TABLE_COLUMN_ID = "UUID" self.TABLE_COLUMN_CLEAN = "CLEAN_BEFORE" self.TABLE_COLUMN_TARGETPATH = "TARGET_PATH" self.dbConnection = sqlite3.connect(dbPathWithName) self._createTableIfNotExist()