Esempio n. 1
0
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())
Esempio n. 2
0
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())
Esempio n. 3
0
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())
Esempio n. 4
0
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())
Esempio n. 5
0
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())
Esempio n. 6
0
    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))
Esempio n. 7
0
 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 = {}
Esempio n. 8
0
    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
Esempio n. 9
0
    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))
Esempio n. 10
0
    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))
Esempio n. 11
0
    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))
Esempio n. 12
0
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())