示例#1
0
 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)
示例#2
0
 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)
示例#3
0
    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()
示例#4
0
    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()
示例#5
0
    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()