def importPayRefuseR85(widget, orgId, isFLC = False): importWindow = CImportPayRefuseR85Dialog(QtGui.qApp.db, orgId, parent=widget, isFLC = isFLC) params = getPref(QtGui.qApp.preferences.appPrefs, getClassName(importWindow), {}) importWindow.setParams(params) importWindow.setLastExceptionHandler(QtGui.qApp.logCurrentException) importWindow.exec_() setPref(QtGui.qApp.preferences.appPrefs, getClassName(importWindow), importWindow.params())
def importR85ERZCentral(widget): importWindow = CImportDialog(QtGui.qApp.db) params = getPref(QtGui.qApp.preferences.appPrefs, getClassName(importWindow), {}) importWindow.setParams(params) importWindow.engine().setLastExceptionHandler(QtGui.qApp.logCurrentException) importWindow.exec_() setPref(QtGui.qApp.preferences.appPrefs, getClassName(importWindow), importWindow.params())
def exportR85Multiple(widget, accountIdList): exportWindow = CMultipleExportDialog(QtGui.qApp.db, accountIdList, widget) params = getPref(QtGui.qApp.preferences.appPrefs, getClassName(exportWindow), {}) exportWindow.setParams(params) exportWindow.exec_() setPref(QtGui.qApp.preferences.appPrefs, getClassName(exportWindow), exportWindow.params())
def exportR85MTR(widget, accountId): exportWindow = CExport85MTR_Refused(QtGui.qApp.db, accountId, widget) params = getPref(QtGui.qApp.preferences.appPrefs, getClassName(exportWindow), {}) exportWindow.setParams(params) exportWindow.exec_() setPref(QtGui.qApp.preferences.appPrefs, getClassName(exportWindow), exportWindow.params())
def importR85MTR(widget, contractId): importWindow = CImport85MTR_Refused(QtGui.qApp.db, contractId) params = getPref(QtGui.qApp.preferences.appPrefs, getClassName(importWindow), {}) importWindow.setParams(params) importWindow.engine().setLastExceptionHandler( QtGui.qApp.logCurrentException) importWindow.exec_() setPref(QtGui.qApp.preferences.appPrefs, getClassName(importWindow), importWindow.params())
def retranslateUi(self): context = unicode(getClassName(self)) self.setWindowTitle(forceTr(u'Импорт. Крым. ЦС ЕРЗ.', context)) self.gbInit.setTitle(forceTr(u'Параметры импорта', context)) self.gbImport.setTitle(forceTr(u'Импорт', context)) self._actionNames = {self.InitState: forceTr(u'Импорт',context), self.ImportState: forceTr(u'Прервать', context)} self.btnClose.setText(forceTr(u'Закрыть', context))
def __init__(self, db, orgStructureId, date, progressInformer=None): self.db = db self.orgStructureId = orgStructureId self.date = date self.progressInformer = progressInformer if isinstance( progressInformer, CProgressInformer) else CProgressInformer( processEventsFlag=None) self.logger = logging.getLogger(name=getClassName(self)) self.logger.setLevel(logging.INFO) self.documents = {}
def __init__(self, progressInformer=None): self._progressInformer = progressInformer if isinstance(progressInformer, CProgressInformer) \ else CProgressInformer(processEventsFlag=None) self._logger = logging.getLogger(name=getClassName(self)) self._logger.setLevel(logging.NOTSET) self.totalPhases = 0 self.currentPhase = 0 self.isAbort = False self._lastExceptionHandler = None
def retranslateUi(self): context = unicode(getClassName(self)) self.setWindowTitle(forceTr(u'Экспорт. Крым. ФЛК', context)) # self.gbInit.setTitle(forceTr(u'Параметры экспорта', context)) self.gbExport.setTitle(forceTr(u'Экспорт', context)) self.gbSave.setTitle(forceTr(u'Сохранение результата', context)) self.btnSave.setText(forceTr(u'Сохранить', context)) self._actionNames = { self.InitState: forceTr(u'Экспорт', context), self.ExportState: forceTr(u'Прервать', context), self.SaveState: forceTr(u'Повторить', context) } self.btnClose.setText(forceTr(u'Закрыть', context))
def retranslateUi(self): context = unicode(getClassName(self)) self.setWindowTitle( forceTr(u'Экспорт. Крым. МежТер. Возврат.', context)) self.gbInit.setTitle(forceTr(u'Параметры экспорта', context)) self.lblAccountNumber.setText( forceTr(u'Номер выгрузки по счету', context)) self.gbExport.setTitle(forceTr(u'Экспорт', context)) self.gbSave.setTitle(forceTr(u'Сохранение результата', context)) self.btnSave.setText(forceTr(u'Сохранить', context)) self._actionNames = { self.InitState: forceTr(u'Экспорт', context), self.ExportState: forceTr(u'Прервать', context), self.SaveState: forceTr(u'Повторить', context) } self.btnClose.setText(forceTr(u'Закрыть', context))
def retranselateUi(self): context = unicode(getClassName(self)) self.setWindowTitle( forceTr(u'Экспорт прикрипленного населения. Краснодарский край', context)) self.grInit.setTitle(forceTr(u'Параметры экспорта', context)) self.lblOrgStructure.setText(forceTr(u'Подразделение', context)) self.btnMiac.setText(forceTr(u'Экспорт МИАЦ', context)) self.btnSMO.setText(forceTr(u'Экспорт СМО', context)) self.lblDate.setText(forceTr(u'Отчетная дата', context)) self.grExport.setTitle(forceTr(u'Экспотр', context)) self.grSave.setTitle(forceTr(u'Сохранение результата', context)) self.btnSave.setText(forceTr(u'Сохранить', context)) self.actionNames = { self.InitState: forceTr(u'Экспорт', context), self.ExportState: forceTr(u'Прервать', context), self.SaveState: forceTr(u'Повторить', context) } self.btnClose.setText(forceTr(u'Закрыть', context))
def ImportFormularyDLOMiac(widget): dlg = CImportFormularyDLOMiac(widget) params = getPref(QtGui.qApp.preferences.appPrefs, getClassName(dlg), {}) dlg.setParams(params) dlg.exec_() setPref(QtGui.qApp.preferences.appPrefs, getClassName(dlg), dlg.params())