예제 #1
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getLabelImageValue(self.loadedFile, record, 'image', self.tableName)
     getSpinBoxValue(self.edtMarkSize, record, 'markSize')
     return record
예제 #2
0
    def getRecord(self):
        record = CItemEditorBaseDialog.getRecord(self)
        pType = '%.2d' % (self.cmbPaymentType.currentIndex() + 1)
        codePart = '%.2d' % (self.cmbCodePart.currentIndex() + 1)

        if (pType, codePart) in self.codes.keys():
            code = '%s.%s.%.3d' % (pType, codePart, self.codes[(pType,
                                                                codePart)])
        else:
            code = '%s.%s.%.3d' % (pType, codePart, 1)

        record.setValue(rbCode, toVariant(code))
        record.setValue('type', toVariant(self.type))
        getRBComboBoxValue(self.cmbOKPF, record, 'OKPF_id')
        getRBComboBoxValue(self.cmbOrgId, record, 'org_id')
        getLineEditValue(self.edtContractNumber, record, 'contractNumber')
        getDateEditValue(self.edtDate, record, 'contractDate')
        getDateEditValue(self.edtEndDate, record, 'contractEndDate')
        getLineEditValue(self.edtContractSum, record, 'contractSum')
        if QtGui.qApp.checkGlobalPreference('68', u'нет') and type == 2:
            getLineEditValue(self.edtContragent, record, 'contragent')
            getLineEditValue(self.edtProtocolNum, record, 'protocolNumber')
            getLineEditValue(self.edtProtocolPhase, record, 'protocolPhase')
            getLineEditValue(self.edtProtocolName, record, 'protocolName')
            getComboBoxValue(self.cmbRecPatients, record, 'protocolRecruit')
        elif QtGui.qApp.checkGlobalPreference('68', u'нет') and type == 1:
            getLineEditValue(self.edtContragent, record, 'contragent')
            getLineEditValue(self.edtContractItem, record, 'contractItem')
            getLineEditValue(self.edtAddress, record, 'address')
        return record
예제 #3
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getComboBoxValue(self.cmbCharacterRelation, record,
                      'characterRelation')
     return record
예제 #4
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, rbCode)
     getLineEditValue(self.edtFlatCode, record, 'flatCode')
     getLineEditValue(self.edtName, record, rbName)
     getCheckBoxValue(self.chkIsSelectable, record, 'isSelectable')
     return record
예제 #5
0
파일: RBService.py 프로젝트: dio4/vista_1
    def getRecord(self):
        record = CItemEditorBaseDialog.getRecord(self)

        getRBComboBoxValue(self.cmbServiceGroup, record, 'group_id')
        getLineEditValue(self.edtCode, record, rbCode)
        getTextEditValue(self.edtName, record, rbName)
        getCheckBoxValue(self.chkeisLegacy, record, 'eisLegacy')
        getCheckBoxValue(self.chkNomenclatureLegacy, record,
                         'nomenclatureLegacy')
        getComboBoxValue(self.cmbLicense, record, 'license')
        getRBComboBoxValue(self.cmbCaseCast, record, 'caseCast_id')
        getLineEditValue(self.edtInfis, record, 'infis')
        getDateEditValue(self.edtBegDate, record, 'begDate')
        getDateEditValue(self.edtEndDate, record, 'endDate')
        getDoubleBoxValue(self.edtUetAdultDoctor, record, 'adultUetDoctor')
        getDoubleBoxValue(self.edtUetChildDoctor, record, 'childUetDoctor')
        getDoubleBoxValue(self.edtUetAdultAvarageMedWorker, record,
                          'adultUetAverageMedWorker')
        getDoubleBoxValue(self.edtUetChildAvarageMedWorker, record,
                          'childUetAverageMedWorker')
        getDoubleBoxValue(self.edtQualityLevel, record, 'qualityLevel')
        getDoubleBoxValue(self.edtSuperviseComplexityFactor, record,
                          'superviseComplexityFactor')
        getRBComboBoxValue(self.cmbMedicalAidProfile, record,
                           'medicalAidProfile_id')
        getRBComboBoxValue(self.cmbMedicalAidKind, record, 'medicalAidKind_id')
        getRBComboBoxValue(self.cmbMedicalAidType, record, 'medicalAidType_id')
        getRBComboBoxValue(self.cmbServiceCategory, record, 'category_id')
        return record
예제 #6
0
파일: RBTest.py 프로젝트: dio4/vista_1
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, rbCode)
     getLineEditValue(self.edtName, record, rbName)
     getRBComboBoxValue(self.cmbTestGroup, record, 'testGroup_id')
     getSpinBoxValue(self.edtPosition, record, 'position')
     return record
예제 #7
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     getRBComboBoxValue(self.cmbDocumentType, record, 'documentType_id')
     return record
예제 #8
0
파일: RBMeal.py 프로젝트: dio4/vista_1
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue(rbCode,       toVariant(forceStringEx(self.edtCode.text())))
     record.setValue(rbName,       toVariant(forceStringEx(self.edtName.text())))
     record.setValue('amount',     toVariant(forceStringEx(self.edtAmount.text())))
     record.setValue('unit',       toVariant(forceStringEx(self.edtUnit.text())))
     return record
예제 #9
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtSerial, record, 'serial')
     getLineEditValue(self.edtNumber, record, 'number')
     getDateEditValue(self.edtDate, record, 'date')
     getRBComboBoxValue(self.cmbPerson, record, 'person_id')
     getRBComboBoxValue(self.cmbExpert, record, 'expert_id')
     getLineEditValue(self.edtDestination, record, 'destination')
     getRBComboBoxValue(self.cmbReason, record, 'reason_id')
     getTextEditValue(self.edtNote, record, 'note')
     getCheckBoxValue(self.chkInsuranceOfficeMark, record,
                      'insuranceOfficeMark')
     record.setValue('tempInvalid_id', toVariant(self.tempInvalidId))
     getLineEditValue(self.edtPlaceWork, record, 'placeWork')
     if not self.defaultBlankMovingId:
         blankMovingId = self.edtSerial.value()
     else:
         blankMovingId = self.defaultBlankMovingId
     if blankMovingId:
         db = QtGui.qApp.db
         tableBlankTempInvalidMoving = db.table('BlankTempInvalid_Moving')
         recordMoving = db.getRecordEx(tableBlankTempInvalidMoving, u'*', [
             tableBlankTempInvalidMoving['deleted'].eq(0),
             tableBlankTempInvalidMoving['id'].eq(blankMovingId)
         ])
         if recordMoving:
             used = forceInt(recordMoving.value('used'))
             recordMoving.setValue('used', toVariant(used + 1))
             db.updateRecord(tableBlankTempInvalidMoving, recordMoving)
     return record
예제 #10
0
파일: RCFieldList.py 프로젝트: dio4/vista_1
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtName, record, 'name')
     getLineEditValue(self.edtTable, record, 'table')
     getTextEditValue(self.edtDescription, record, 'description')
     getLineEditValue(self.edtGroup, record, 'group')
     return record
예제 #11
0
파일: RBVisitType.py 프로젝트: dio4/vista_1
    def getRecord(self):
        record = CItemEditorBaseDialog.getRecord(self)
        record.setValue(rbCode, toVariant(forceStringEx(self.edtCode.text())))
        record.setValue(rbName, toVariant(forceStringEx(self.edtName.text())))
        modifier = u''

        if self.chkReplaceService.isChecked():
            action = 1
            text = forceStringEx(self.edtReplaceService.text())
            modifier = createModifier(action, text)

        # Этот модификатор может выставляться/сохраняться/применяться вместе с ModifyTailService
        if self.chkModifyHeadService.isChecked():
            action = 2
            text = forceStringEx(self.edtModifyHeadService.text())
            n = forceInt(self.edtModifyHeadService_N.text())
            modifier = createModifier(action, text, n)

        # Этот модификатор может выставляться/сохраняться/применяться вместе с ModifyHeadService
        if self.chkModifyTailService.isChecked():
            action = 3
            text = forceStringEx(self.edtModifyTailService.text())
            n = forceInt(self.edtModifyTailService_N.text())
            if modifier:
                modifier = modifier + u'/' + createModifier(action, text, n)
            else:
                modifier = createModifier(action, text, n)

        # Если было кликнуто ничего или chkNoModifyService, то modifier должен быть равен u''

        record.setValue('serviceModifier', toVariant(modifier))
        return record
예제 #12
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getComboBoxValue(self.cmbQuotaStatusModifier, record,
                      'quotaStatusModifier')
     return record
예제 #13
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getLineEditValue(self.edtShortName, record, 'shortName')
     getLineEditValue(self.edtOKSOName, record, 'OKSOName')
     getLineEditValue(self.edtOKSOCode, record, 'OKSOCode')
     getLineEditValue(self.edtFederalCode, record, 'federalCode')
     getLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     getLineEditValue(self.edtSyncGUID, record, 'syncGUID')
     getRBComboBoxValue(self.cmbLocalService, record, 'service_id')
     getRBComboBoxValue(self.cmbProvinceService, record,
                        'provinceService_id')
     getRBComboBoxValue(self.cmbOtherService, record, 'otherService_id')
     getRBComboBoxValue(self.cmbFundingService, record, 'fundingService_id')
     getComboBoxValue(self.cmbSex, record, 'sex')
     record.setValue(
         'age',
         toVariant(
             composeAgeSelector(self.cmbBegAgeUnit.currentIndex(),
                                forceStringEx(self.edtBegAgeCount.text()),
                                self.cmbEndAgeUnit.currentIndex(),
                                forceStringEx(self.edtEndAgeCount.text()))))
     record.setValue(
         'versSpec',
         toVariant({
             0: '',
             1: 'V004',
             2: 'V015'
         }.get(self.cmbVersSpec.currentIndex(), '')))
     getLineEditValue(self.edtMKBFilter, record, 'mkbFilter')
     return record
예제 #14
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getDatetimeEditValue(self.edtDate, self.edtTime, record, 'date', True)
     getRBComboBoxValue(self.cmbSupplier, record, 'supplier_id')
     getRBComboBoxValue(self.cmbSupplierPerson, record, 'supplierPerson_id')
     getLineEditValue(self.edtNote, record, 'note')
     return record
예제 #15
0
    def getRecord(self):
        record = CItemEditorBaseDialog.getRecord(self)
        getLineEditValue(self.edtCode, record, 'code')
        getLineEditValue(self.edtName, record, 'name')
        getRBComboBoxValue(self.cmbUnit, record, 'unit_id')
        getRBComboBoxValue(self.cmbGroup, record, 'group_id')

        if self.otherTable:
            getLineEditValue(self.edtMnn, record, 'MNN')
            getLineEditValue(self.edtMnnLat, record, 'latinMNN')
        else:
            getLineEditValue(self.edtMnn, record, 'mnn')
            getLineEditValue(self.edtMnnLat, record, 'latinMnn')

        getLineEditValue(self.edtTradeName, record, 'tradeName')
        getLineEditValue(self.edtIssueForm, record, 'issueForm')
        getLineEditValue(self.edtIssueFormLat, record, 'latinIssueForm')
        getLineEditValue(self.edtConcentration, record, 'concentration')
        record.setValue('isDrugs', self.rbtnIsDrugYes.isChecked())
        getRBComboBoxValue(self.cmbBaseUnit, record, 'baseUnit_id')
        getRBComboBoxValue(self.cmbMinIndivUnit, record,
                           'minIndivisibleUnit_id')
        getLineEditValue(self.edtBaseUnitsInMinIndiv, record,
                         'baseUnitsInMinIndivisibleUnit')
        getLineEditValue(self.edtMinIndivInPacking, record,
                         'minIndivisibleUnitsInPackingUnit')
        getRBComboBoxValue(self.cmbPackingUnit, record, 'packingUnit_id')
        return record
예제 #16
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue(rbCode, toVariant(forceStringEx(self.edtCode.text())))
     record.setValue('regionalCode',
                     toVariant(forceStringEx(self.edtRegionalCode.text())))
     record.setValue(rbName, toVariant(forceStringEx(self.edtName.text())))
     return record
예제 #17
0
파일: MKB.py 프로젝트: dio4/vista_1
    def getRecord(self):
        db = QtGui.qApp.db
        record = CItemEditorBaseDialog.getRecord(self)
        getLineEditValue(self.edtCode, record, 'DiagID')
        record.setValue(
            'Prim', QtCore.QVariant('*' if self.chkPrim.isChecked() else ''))
        getTextEditValue(self.edtName, record, 'DiagName')
        if self.cmbMKBSubclass.isEnabled():
            getRBComboBoxValue(self.cmbMKBSubclass, record, 'MKBSubclass_id')
        else:
            record.setValue('MKBSubclass_id', QtCore.QVariant())
        getComboBoxValue(self.cmbCharacters, record, 'characters')
        getComboBoxValue(self.cmbSex, record, 'sex')
        record.setValue(
            'age',
            toVariant(
                composeAgeSelector(self.cmbBegAgeUnit.currentIndex(),
                                   forceStringEx(self.edtBegAgeCount.text()),
                                   self.cmbEndAgeUnit.currentIndex(),
                                   forceStringEx(self.edtEndAgeCount.text()))))
        getSpinBoxValue(self.edtDuration, record, 'duration')
        self.modelServiceSpecialty.saveItems(self.itemId())
        record.setValue('begDate', toVariant(self.edtBegDate.date()))
        record.setValue('endDate', toVariant(self.edtEndDate.date()))
        record.setValue('OMS', toVariant(self.chkOMS.isChecked()))
        record.setValue('MTR', toVariant(self.chkMTR.isChecked()))
        record.setValue('parent_code', toVariant(self.parentCode))

        clearCache()
        return record
예제 #18
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getLineEditValue(self.edtFederalCode, record, 'federalCode')
     getLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     return record
예제 #19
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue( self.edtCode,              record, 'code')
     getLineEditValue( self.edtName,              record, 'name')
     getLineEditValue( self.edtRegionalCode,      record, 'regionalCode')
     getCheckBoxValue(self.chkIsObsolete, record, 'isObsolete')
     return record
예제 #20
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue('finance_id', toVariant(self.cmbFinance.value()))
     record.setValue(rbCode, toVariant(forceStringEx(self.edtCode.text())))
     record.setValue(rbName, toVariant(forceStringEx(self.edtName.text())))
     record.setValue('rerun', toVariant(self.chkCanRerun.isChecked()))
     return record
예제 #21
0
 def getRecord(self):
     if self.firstAT is None or self.secondAT is None:
         return None
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue('firstActionType_id', toVariant(self.firstAT.id))
     record.setValue('secondActionType_id', toVariant(self.secondAT.id))
     record.setValue('similarityType', toVariant(self.cmbSimilarityType.currentIndex()))
     return record
예제 #22
0
파일: RBMenu.py 프로젝트: dio4/vista_1
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue(rbCode, toVariant(forceStringEx(self.edtCode.text())))
     record.setValue(rbName, toVariant(forceStringEx(self.edtName.text())))
     record.setValue('diet_id', toVariant(self.cmbDiet.value()))
     record.setValue('courtingDiet_id',
                     toVariant(self.cmbCourtingDiet.value()))
     return record
예제 #23
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode,        record, 'code')
     getLineEditValue(self.edtName,        record, 'name')
     getLineEditValue(self.edtMKB,         record, 'MKB')
     getRBComboBoxValue(self.cmbQuotaType, record, 'quotaType_id')
     getCheckBoxValue(self.chkIsObsolete, record, 'isObsolete')
     return record
예제 #24
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtName, record, 'name')
     getLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     getLineEditValue(self.edtFlatCode, record, 'flatCode')
     getLineEditValue(self.edtSyncGUID, record, 'syncGUID')
     return record
예제 #25
0
파일: Banks.py 프로젝트: dio4/vista_1
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtBIK,           record, 'BIK')
     getLineEditValue(self.edtName,          record, 'name')
     getLineEditValue(self.edtBranchName,    record, 'branchName')
     getLineEditValue(self.edtCorrAccount,   record, 'corrAccount')
     getLineEditValue(self.edtSubAccount,    record, 'subAccount')
     return record
예제 #26
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue('code', toVariant(forceStringEx(self.edtCode.text())))
     record.setValue('name', toVariant(forceStringEx(self.edtName.text())))
     record.setValue('mask', toVariant(forceStringEx(self.edtMask.text())))
     record.setValue('maskEnabled',
                     toVariant(forceBool(self.chkMaskEnabled.isChecked())))
     return record
예제 #27
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(self.edtCode, record, 'code')
     getLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     getLineEditValue(self.edtEISRegionalCode, record, 'eisCode')
     getLineEditValue(self.edtName, record, 'name')
     getRBComboBoxValue(self.cmbService, record, 'service_id')
     return record
예제 #28
0
 def getRecord(self):
     self.referencedField = self.cmbReference.value()[0]
     record = CItemEditorBaseDialog.getRecord(self)
     record.setValue('name', toVariant(self.edtName.text()))
     record.setValue('mainTable_id', toVariant(self.cmbMainTable.value()))
     record.setValue('stateTree', toVariant(self.modelTree.getState()))
     record.setValue('referencedField', toVariant(self.referencedField))
     return record
예제 #29
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getRBComboBoxValue(self.cmbFirstActionType, record,
                        'firstActionType_id')
     getRBComboBoxValue(self.cmbSecondActionType, record,
                        'secondActionType_id')
     getTextEditValue(self.edtReason, record, 'reason')
     return record
예제 #30
0
 def getRecord(self):
     record = CItemEditorBaseDialog.getRecord(self)
     getLineEditValue(   self.edtName,         record, 'name')
     getLineEditValue(   self.edtTemplate,     record, 'template')
     getCheckBoxValue(   self.chkTabRegistry,  record, 'tabRegistry')
     getCheckBoxValue(   self.chkTabEvents,    record, 'tabEvents')
     getCheckBoxValue(   self.chkTabAmbCard,   record, 'tabAmbCard')
     getCheckBoxValue(   self.chkTabActions,   record, 'tabActions')
     return record