Exemple #1
0
 def __init__(self,  parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbMedicinesGroup')
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog | QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Группа лекарственных препаратов')
     self.setupDirtyCather()
     self.edtCode.setFocus()
Exemple #2
0
    def __init__(self, parent):
        CItemEditorBaseDialog.__init__(self, parent, 'Organisation')
        self.addModels('OrganisationAccounts',
                       COrganisationAccountsModel(self))
        self.addModels('OrganisationPolicySerials',
                       COrganisationPolicySerialsModel(self))

        self.setupUi(self)
        self.tblOrganisationAccounts.addPopupDelRow()
        self.tabWidget.setTabEnabled(2, False)
        self.setWindowTitleEx(u'Организация')

        self.setModels(self.tblOrganisationAccounts,
                       self.modelOrganisationAccounts,
                       self.selectionModelOrganisationAccounts)
        self.setModels(self.tblOrganisationPolicySerials,
                       self.modelOrganisationPolicySerials,
                       self.selectionModelOrganisationPolicySerials)
        self.tblOrganisationPolicySerials.addPopupDelRow()

        self.cmbNet.setTable(rbNet, True)
        self.cmbOKPF.setTable(rbOKPF, True)
        self.cmbOKFS.setTable(rbOKFS, True)
        self.cmbArea.setAreaSelectable(True)
        self.setupDirtyCather()
Exemple #3
0
 def __init__(self,  parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbNomenclatureKind')
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog | QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Вид ЛСиИМН')
     self.cmbClass.setTable('rbNomenclatureClass', True)
     self.setupDirtyCather()
Exemple #4
0
    def __init__(self, parent):
        self.isPostUISet = False
        CItemEditorBaseDialog.__init__(self, parent, 'Job_Ticket')
        CJobTicketReserveMixin.__init__(self)

        self.setupUi(self)

        self.clientSex = self.clientBirthDate = self.clientAge = self.isVipClient = self.date = self.datetime = \
            self.eventEditor = None
        self.vipColor = CMonitoringModel.vipClientColor
        self.modelJobTicketProbe = CJobTicketProbeModel(self, self.tblTreeProbe)
        self.selectionModelJobTicketProbe = QtGui.QItemSelectionModel(self.modelJobTicketProbe, self)
        self.modelActionProperties = CActionPropertiesTableModel(self, CActionPropertiesTableModel.visibleInJobTicket)
        self.selectionModelActionProperties = QtGui.QItemSelectionModel(self.modelActionProperties, self)
        self.setModels(self.tblTreeProbe, self.modelJobTicketProbe, self.selectionModelJobTicketProbe)
        self.setModels(self.tblProps, self.modelActionProperties, self.selectionModelActionProperties)

        self.selectionModelJobTicketProbe.currentRowChanged.connect(self.currentTreeItemChanged)
        self.modelJobTicketProbe.externalIdChanged.connect(self.externalIdChanged)

        self.btnPrint = getPrintButton(self, u'jobTicket')
        self.connect(self.btnPrint, QtCore.SIGNAL('printByTemplate(int)'), self.on_printByTemplate)
        self.buttonBox.addButton(self.btnPrint, QtGui.QDialogButtonBox.ActionRole)

        self.actionStatusChanger = self.actionPersonChanger = self.actionDateChanger = self.jobStatusModifier = 0

        self.btnLoadTemplate.setModelCallback(self.templateModel)
Exemple #5
0
    def __init__(self, parent):
        CItemEditorBaseDialog.__init__(self, parent, 'rbMenu')
        self.addModels('MenuContent', CMenuContent(self))
        self.setupUi(self)
        self.setWindowFlags(QtCore.Qt.Dialog
                            | QtCore.Qt.WindowMaximizeButtonHint
                            | QtCore.Qt.WindowCloseButtonHint)
        self.setWindowTitleEx(u'Шаблон питания')
        self.setModels(self.tblMenuContent, self.modelMenuContent,
                       self.selectionModelMenuContent)
        self.setupDirtyCather()
        self.cmbDiet.setTable('rbDiet')
        self.cmbCourtingDiet.setTable('rbDiet')

        # self.addObject('actDelRows', QtGui.QAction(u'Удалить выделенные строки', self))
        # self.addObject('mnuMenuContent', QtGui.QMenu(self))
        # self.mnuMenuContent.addAction(self.actDelRows)
        # self.tblMenuContent.setPopupMenu(self.mnuMenuContent)
        db = QtGui.qApp.db
        tableRBDiet = db.table('rbDiet')
        records = db.getRecordList(tableRBDiet)
        self.dietMap = {}
        for record in records:
            dietId = forceInt(record.value('id'))
            dietCode = forceString(record.value('code'))
            dietName = forceString(record.value('name'))
            allowMeals = forceBool(record.value('allow_meals'))
            self.dietMap[dietId] = {
                'code': dietCode,
                'name': dietName,
                'allow_meals': allowMeals
            }
        self.tblMenuContent.addPopupDelRow()
Exemple #6
0
    def __init__(self, parent):
        CItemEditorBaseDialog.__init__(self, parent, 'TakenTissueJournal')
        self.setupUi(self)

        self.addModels('SamplePreparation',
                       CSamplePreparationInDocTableModel(self))
        self.setModels(self.tblSamplePreparation, self.modelSamplePreparation,
                       self.selectionModelSamplePreparation)

        self.cmbEquipment.setTable('rbEquipment', addNone=True)
        self.cmbTestGroup.setTable('rbTestGroup', addNone=True)

        self.loadLastEquipment()

        self.setWindowTitleEx(u'Пробоподготовка')

        #        self.setupDirtyCather([self.cmbEquipment, self.cmbTestGroup])
        #        self.setIsDirty(False)

        self._tissueIdentifier = None
        self._tissueTypeId = None
        self._datetimeTaken = QtCore.QDate()

        self.actUncheckItems = QtGui.QAction(u'Снять отметки', self)
        self.connect(self.actUncheckItems, QtCore.SIGNAL('triggered()'),
                     self.on_uncheckItems)
        self.tblSamplePreparation.createPopupMenu([self.actUncheckItems])
Exemple #7
0
    def __init__(self, parent):
        CItemEditorBaseDialog.__init__(self, parent, 'rbTest')
        self.setupUi(self)
        self.addModels('TestEquipments', CTestEquipmentModel(self))
        self.addModels('TestAnalog', CTestAnalogModel(self))
        self.setModels(self.tblEquipments, self.modelTestEquipments,
                       self.selectionModelTestEquipments)
        self.setModels(self.tblTestAnalog, self.modelTestAnalog,
                       self.selectionModelTestAnalog)

        self.tblEquipments.addPopupSelectAllRow()
        self.tblEquipments.addPopupClearSelectionRow()
        self.tblEquipments.addPopupDelRow()

        self.setWindowFlags(QtCore.Qt.Dialog
                            | QtCore.Qt.WindowMaximizeButtonHint
                            | QtCore.Qt.WindowCloseButtonHint)
        self.setWindowTitleEx(u'Показатель исследования')

        self.cmbTestGroup.setTable('rbTestGroup', addNone=True)

        self.actSyncTestAnalogList = QtGui.QAction(
            u'Синхронизировать аналоги тестов по текущему', self)
        self.tblTestAnalog.createPopupMenu(
            actions=[self.actSyncTestAnalogList])
        self.connect(self.actSyncTestAnalogList, QtCore.SIGNAL('triggered()'),
                     self.syncTestAnalogListByCurrent)

        self.connect(self.tblTestAnalog.popupMenu(),
                     QtCore.SIGNAL('aboutToShow()'), self.on_aboutToShow)

        self.setupDirtyCather()
Exemple #8
0
    def __init__(self, parent):
        CItemEditorBaseDialog.__init__(self, parent, rbService)
        self.addModels('Services', CServiceContentsModel(self))
        self.addModels('MedicalAidProfiles', CMedicalAidProfilesModel(self))
        self.addModels('Goals', CServiceGoalModel(self))
        self.addModels('MKB', CMKBModel(self))
        self.setupUi(self)
        self.setWindowFlags(QtCore.Qt.Dialog
                            | QtCore.Qt.WindowMaximizeButtonHint
                            | QtCore.Qt.WindowCloseButtonHint)
        self.setWindowTitleEx(u'Услуга')
        self.cmbServiceGroup.setTable('rbServiceGroup')
        self.cmbMedicalAidProfile.setTable('rbMedicalAidProfile')
        self.cmbMedicalAidKind.setTable('rbMedicalAidKind')
        self.cmbMedicalAidType.setTable('rbMedicalAidType')
        self.cmbServiceCategory.setTable('rbServiceCategory')
        self.setModels(self.tblServices, self.modelServices,
                       self.selectionModelServices)
        self.setModels(self.tblMedicalAidProfiles,
                       self.modelMedicalAidProfiles,
                       self.selectionModelMedicalAidProfiles)
        self.setModels(self.tblGoals, self.modelGoals,
                       self.selectionModelGoals)
        self.setModels(self.tblMKB, self.modelMKB, self.selectionModelMKB)
        self.tblMedicalAidProfiles.addMoveRow()
        self.tblMedicalAidProfiles.addPopupDelRow()
        self.tblGoals.addMoveRow()
        self.tblGoals.addPopupDelRow()
        self.tblMKB.addMoveRow()
        self.tblMKB.addPopupDelRow()
        self.tblServices.addMoveRow()
        self.tblServices.addPopupDelRow()
        self.cmbCaseCast.setTable('rbCaseCast')

        self.setupDirtyCather()
Exemple #9
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbAgreementType')
     self.setupUi(self)
     self.setWindowTitleEx(u'Тип согласования')
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
Exemple #10
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'Diagnosis')
     self.setupUi(self)
     self.setWindowTitleEx(u'Исправить шифр МКБ')
     self.setupDirtyCather()
     self.oldMKB = ''
     self.oldCharacterId = None
     self.characterId = None
Exemple #11
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbTariffCategory)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Тарифная категория')
     self.setupDirtyCather()
Exemple #12
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbMedicalAidUnit)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Единица учета медицинской помощи')
     self.setupDirtyCather()
Exemple #13
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbEmergencyTypeAsset)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Активное посещение')
     self.setupDirtyCather()
Exemple #14
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbEventProfile')
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Профиль события')
     self.setupDirtyCather()
Exemple #15
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbContactType)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Способ связи с пациентом')
     self.setupDirtyCather()
Exemple #16
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbMealTime')
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Период питания')
     self.setupDirtyCather()
Exemple #17
0
 def __init__(self,  parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbLaboratory')
     self.addModels('Tests', CTestsModel(self))
     self.setupUi(self)
     self.setModels(self.tblTests, self.modelTests, self.selectionModelTests)
     self.tblTests.addPopupDelRow()
     self.setWindowTitleEx(u'Лабораторная информационная система')
     self.setupDirtyCather()
Exemple #18
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbThesaurus')
     self.setupUi(self)
     self.setWindowTitleEx(u'Жалоба')
     self.setupDirtyCather()
     self.groupId = None
     self.prevName = self.edtName.text()
     self.edtTemplate.setText(self.autoTemplate(self.prevName))
Exemple #19
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbEmergencyDiseased)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Больной')
     self.setupDirtyCather()
Exemple #20
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbEmergencyCauseCall)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Повод к вызову')
     self.setupDirtyCather()
Exemple #21
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'rbMesSpecification')
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Особенность выполнения МЭС')
     self.setupDirtyCather()
Exemple #22
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbDispanser)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Отметка диспансерного наблюдения')
     self.setupDirtyCather()
Exemple #23
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbCureType)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Вид лечения')
     self.setupDirtyCather()
Exemple #24
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbServiceGroup)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Группа услуг')
     self.setupDirtyCather()
Exemple #25
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbDiagnosisType)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Тип диагноза')
     self.setupDirtyCather()
Exemple #26
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, rbEmergencyAccident)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Несчастный случай')
     self.setupDirtyCather()
Exemple #27
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'Account')
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog
                         | QtCore.Qt.WindowMaximizeButtonHint
                         | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Счет')
     self.setupDirtyCather()
Exemple #28
0
    def __init__(self, parent):
        CItemEditorBaseDialog.__init__(self, parent, 'Action')
        CJobTicketReserveMixin.__init__(self)
        self.eventId = None
        self.eventTypeId = None
        self.clientId = None
        self.forceClientId = None
        self.clientSex = None
        self.clientAge = None
        self.personId = None
        self.personSpecialityId = None
        self.newActionId = None
        self.clientInfo = None
        self._mainWindowState = QtGui.qApp.mainWindow.windowState()

        self.addModels('ActionProperties', CExActionPropertiesTableModel(self))

        self.actEditClient = QtGui.QAction(u'Изменить описание клиента', self)

        self.actEditClient.setObjectName('actEditClient')
        self.btnPrint = getPrintButton(self, '')
        self.btnPrint.setObjectName('btnPrint')
        self.btnLoadTemplate = CActionTemplateChooseButton(self)
        self.btnLoadTemplate.setObjectName('btnLoadTemplate')
        self.btnLoadTemplate.setText(u'Загрузить шаблон')
        self.btnSaveAsTemplate = QtGui.QPushButton(u'Сохранить шаблон', self)
        self.btnSaveAsTemplate.setObjectName('btnSaveAsTemplate')
        self.setupUi(self)
        # Заполнение элементов комбобокса переведенными значениями из первоисточника
        self.cmbStatus.clear()
        self.cmbStatus.addItems(CActionType.retranslateClass(False).statusNames)
        self.setWindowFlags(QtCore.Qt.Dialog | QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.WindowCloseButtonHint)
        self.setWindowTitleEx(u'Мероприятие')
        self.edtDirectionDate.canBeEmpty(True)
        self.edtEndDate.canBeEmpty(True)
        self.edtBegDate.canBeEmpty(True)
        self.buttonBox.addButton(self.btnPrint, QtGui.QDialogButtonBox.ActionRole)
        self.buttonBox.addButton(self.btnLoadTemplate, QtGui.QDialogButtonBox.ActionRole)
        self.buttonBox.addButton(self.btnSaveAsTemplate, QtGui.QDialogButtonBox.ActionRole)
        self.setModelsEx(self.tblProps, self.modelActionProperties, self.selectionModelActionProperties)
        self.txtClientInfoBrowser.actions.append(self.actEditClient)
        self.actEditClient.setEnabled(QtGui.qApp.userHasAnyRight([urAdmin, urRegTabWriteRegistry]))

        self.setupDirtyCather()
        self.setIsDirty(False)

        self.actionTemplateCache = CActionTemplateCache(self)

        action = QtGui.QAction(self)
        self.actSetLaboratoryCalculatorInfo = action
        self.actSetLaboratoryCalculatorInfo.setObjectName('actSetLaboratoryCalculatorInfo')
        action.setShortcut(QtGui.QKeySequence(QtCore.Qt.Key_F3))
        self.addAction(action)
        self.connect(self.actSetLaboratoryCalculatorInfo, QtCore.SIGNAL('triggered()'),
                     self.on_actSetLaboratoryCalculatorInfo)
        self.connect(self.btnCloseWidgets, QtCore.SIGNAL('arrowTypeChanged(bool)'), self.on_arrowTypeChanged)
        self.setVisibleBtnCloseWidgets(False)
        self._canUseLaboratoryCalculatorPropertyTypeList = None
 def __init__(self,  parent):
     CItemEditorBaseDialog.__init__(self, parent, rbActionTypeSimilarity)
     self.setupUi(self)
     self.setWindowFlags(QtCore.Qt.Dialog | QtCore.Qt.WindowMaximizeButtonHint | QtCore.Qt.WindowCloseButtonHint)
     self.setWindowTitleEx(u'Взаимозаменяемые типы действий')
     self.setupDirtyCather()
     self.firstAT = None
     self.secondAT = None
     self.props = {}
Exemple #30
0
 def __init__(self, parent):
     CItemEditorBaseDialog.__init__(self, parent, 'QuotaType')
     self.setupUi(self)
     self._applyQuotaTypeClassComboBox()
     self.setWindowTitleEx(u'Вид квоты')
     self.isNew = False
     self.oldCode = None
     self.cmbGroup.setTable('QuotaType')
     self.setupDirtyCather()