def __init__(self, accountId, accountItemIdList): QtGui.QDialog.__init__(self) self.setupUi(self) CXMLimport.__init__(self, self.log, db=QtGui.qApp.db) self.accountId = accountId self.accountItemIdList = accountItemIdList self.progressBar.setFormat('%p%') self.checkName() self.errorPrefix = u'Ошибка: ' self.nProcessed = 0 self.nPayed = 0 self.nRefused = 0 self.nNotFound = 0 self.refuseTypeIdCache = {} self.mapAccountIdToPayStatusMask = {} self.mapIdPacToClientId = {} self.insurerInfis = None self.tblEvent = self.db.table('Event') self.setWindowTitle(u'Импорт отказов по счетам для Республики Крым') self.chkImportPayed.setVisible(False) self.chkImportRefused.setVisible(False) self.chkOnlyCurrentAccount.setVisible(False) self.edtConfirmation.setVisible(False) self.label_2.setVisible(False) self.btnView.setVisible(False)
def __init__(self, args=None): CXMLimport.__init__(self, self.log if args is None else None) self.nProcessed = 0 self.nUpdated = 0 self.miacCode = forceString( QtGui.qApp.db.translate('Organisation', 'id', QtGui.qApp.currentOrgId(), 'miacCode'))
def __init__(self): QtGui.QDialog.__init__(self) self.setupUi(self) CXMLimport.__init__(self, self.log) self.checkName() self.nProcessed = 0 self.nUpdated = 0 self.nAdded = 0 self.mapPurposeCodeToId = {} self.mapResultCodeToId = {}
def __init__(self, args=None): self.args = args if args: connectionInfo = { 'driverName': 'MYSQL', 'host': args['host'], 'port': args['port'], 'database': args['database'], 'user': args['user'], 'password': args['password'], 'connectionName': 'IEMK', 'compressData': True, 'afterConnectFunc': None } QtGui.qApp.db = connectDataBaseByInfo(connectionInfo) CXMLimport.__init__(self, self.log if args is None else None) self.nProcessed = 0 self.nUpdated = 0 self.nAdded = 0