示例#1
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     self.edtCode.setText(forceString(record.value(rbCode)))
     self.edtName.setText(forceString(record.value(rbName)))
     timeRange = forceTime(record.value('begTime')), forceTime(
         record.value('endTime'))
     self.edtRangeTime.setTimeRange(timeRange)
示例#2
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtMKB, record, 'MKB')
     setLineEditValue(self.edtMKBEx, record, 'MKBEx')
     self.oldMKB = forceStringEx(self.edtMKB.text())
     self.oldCharacterId = record.value('character_id')
     self.setIsDirty(False)
示例#3
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     setLineEditValue(self.edtEISRegionalCode, record, 'eisCode')
     setLineEditValue(self.edtName, record, 'name')
     setRBComboBoxValue(self.cmbService, record, 'service_id')
示例#4
0
    def setRecord(self, record):
        CItemEditorBaseDialog.setRecord(self, record)
        setLineEditValue(self.edtCode, record, 'code')
        setLineEditValue(self.edtName, record, 'name')
        setRBComboBoxValue(self.cmbUnit, record, 'unit_id')
        setRBComboBoxValue(self.cmbGroup, record, 'group_id')

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

        setLineEditValue(self.edtTradeName, record, 'tradeName')
        setLineEditValue(self.edtIssueForm, record, 'issueForm')
        setLineEditValue(self.edtIssueFormLat, record, 'latinIssueForm')
        setLineEditValue(self.edtConcentration, record, 'concentration')
        if forceBool(record.value('isDrugs')):
            self.rbtnIsDrugYes.setChecked(True)
        else:
            self.rbtnIsDrugNo.setChecked(True)
        setRBComboBoxValue(self.cmbBaseUnit, record, 'baseUnit_id')
        setRBComboBoxValue(self.cmbMinIndivUnit, record,
                           'minIndivisibleUnit_id')
        setLineEditValue(self.edtBaseUnitsInMinIndiv, record,
                         'baseUnitsInMinIndivisibleUnit')
        setLineEditValue(self.edtMinIndivInPacking, record,
                         'minIndivisibleUnitsInPackingUnit')
        setRBComboBoxValue(self.cmbPackingUnit, record, 'packingUnit_id')
示例#5
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     setLineEditValue(self.edtFlatCode, record, 'flatCode')
     setLineEditValue(self.edtSyncGUID, record, 'syncGUID')
示例#6
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(     self.edtCode,   record, rbCode)
     setLineEditValue(     self.edtName,   record, rbName)
     self.cmbColor.setColor(forceString(record.value('color')))
     setDoubleBoxValue(self.edtAmount, record, 'amount')
     setRBComboBoxValue(   self.cmbUnit,   record, 'unit_id')
示例#7
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setLineEditValue(self.edtDescr, record, 'descr')
     setLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     setLineEditValue(self.edtFederalCode, record, 'federalCode')
示例#8
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(   self.edtCode,          record, 'code')
     setLineEditValue(   self.edtName,          record, 'name')
     self.groupId = forceRef(record.value('group_id'))
     self.modelInItems.loadItems(self.itemId())
     self.modelOutItems.loadItems(self.itemId())
示例#9
0
文件: RBDiet.py 项目: dio4/vista_1
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     self.edtCode.setText(forceString(record.value(rbCode)))
     self.edtName.setText(forceString(record.value(rbName)))
     self.chkAllowMeals.setChecked(forceBool(record.value('allow_meals')))
     self.chkNoCourting.setChecked(
         forceBool(record.value('noCourtingAtReanimation')))
示例#10
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setLineEditValue(self.edtShortName, record, 'shortName')
     setLineEditValue(self.edtOKSOName, record, 'OKSOName')
     setLineEditValue(self.edtOKSOCode, record, 'OKSOCode')
     setLineEditValue(self.edtFederalCode, record, 'federalCode')
     setLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     setLineEditValue(self.edtSyncGUID, record, 'syncGUID')
     setRBComboBoxValue(self.cmbLocalService, record, 'service_id')
     setRBComboBoxValue(self.cmbProvinceService, record,
                        'provinceService_id')
     setRBComboBoxValue(self.cmbOtherService, record, 'otherService_id')
     setRBComboBoxValue(self.cmbFundingService, record, 'fundingService_id')
     setComboBoxValue(self.cmbSex, record, 'sex')
     (begUnit, begCount, endUnit,
      endCount) = parseAgeSelector(forceString(record.value('age')))
     versSpec = forceStringEx(record.value('versSpec'))
     self.cmbVersSpec.setCurrentIndex({
         'v004': 1,
         'v015': 2
     }.get(versSpec.lower(), 0))
     self.cmbBegAgeUnit.setCurrentIndex(begUnit)
     self.edtBegAgeCount.setText(str(begCount))
     self.cmbEndAgeUnit.setCurrentIndex(endUnit)
     self.edtEndAgeCount.setText(str(endCount))
     setLineEditValue(self.edtMKBFilter, record, 'mkbFilter')
     self.modelQueueShare.load(self.itemId())
示例#11
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     setRBComboBoxValue(self.cmbDocumentType, record, 'documentType_id')
     self.setIsDirty(False)
示例#12
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     self.firstAT = CActionTypeCache.getById(forceRef(record.value('firstActionType_id')))
     self.secondAT = CActionTypeCache.getById(forceRef(record.value('secondActionType_id')))
     self.cmbSimilarityType.setCurrentIndex(forceInt(record.value('similarityType')))
     self.updateLabels()
     self.setIsDirty(False)
示例#13
0
文件: Banks.py 项目: dio4/vista_1
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtBIK,           record, 'BIK')
     setLineEditValue(self.edtName,          record, 'name')
     setLineEditValue(self.edtBranchName,    record, 'branchName')
     setLineEditValue(self.edtCorrAccount,   record, 'corrAccount')
     setLineEditValue(self.edtSubAccount,    record, 'subAccount')
示例#14
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setLineEditValue(self.edtTicketPrefix, record, 'ticketPrefix')
     setRBComboBoxValue(self.edtOrgStructure, record, 'orgStructure_id')
     setCheckBoxValue(self.chkImmediatelyReady, record,
                      'isImmediatelyReady')
示例#15
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setComboBoxValue(self.cmbType, record, 'type')
     setLineEditValue(self.edtCode, record, rbCode)
     setLineEditValue(self.edtName, record, rbName)
     #        setCheckBoxValue(self.chkAble, record, 'able')
     setComboBoxValue(self.cmbClosed, record, 'closed')
     setComboBoxValue(self.cmbStatus, record, 'status')
示例#16
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode,        record, 'code')
     setLineEditValue(self.edtName,        record, 'name')
     setLineEditValue(self.edtMKB,         record, 'MKB')
     setRBComboBoxValue(self.cmbQuotaType, record, 'quotaType_id')
     setCheckBoxValue(self.chkIsObsolete, record, 'isObsolete')
     self.modelTypeMetodCure.loadItems(self.itemId())
示例#17
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setCheckBoxValue(self.checkBox, record, 'temporary')
     setCheckBoxValue(self.chkOutcome, record, 'outcome')
     setRBComboBoxValue(self.cmbFinance, record, 'finance_id')
     setSpinBoxValue(self.edtGroup, record, 'grp')
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setRBComboBoxValue(self.cmbFirstActionType, record,
                        'firstActionType_id')
     setRBComboBoxValue(self.cmbSecondActionType, record,
                        'secondActionType_id')
     setTextEditValue(self.edtReason, record, 'reason')
     self.setIsDirty(False)
示例#19
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(   self.edtName,         record, 'name')
     setLineEditValue(   self.edtTemplate,     record, 'template')
     setCheckBoxValue(   self.chkTabRegistry,  record, 'tabRegistry')
     setCheckBoxValue(   self.chkTabEvents,    record, 'tabEvents')
     setCheckBoxValue(   self.chkTabAmbCard,   record, 'tabAmbCard')
     setCheckBoxValue(   self.chkTabActions,   record, 'tabActions')
示例#20
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     self.edtDate.setDate(forceDate(record.value('date')))
     self.cmbCashOperation.setValue(
         forceRef(record.value('cashOperation_id')))
     self.edtSum.setValue(forceDecimal(record.value('sum')))
     self.eventId = forceRef(record.value('master_id'))
     self.cashBox = forceString(record.value('cashBox'))
示例#21
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtRegionalCode, record, 'regionalCode')
     setLineEditValue(self.edtFederalCode, record, 'federalCode')
     setLineEditValue(self.edtName, record, 'name')
     setRBComboBoxValue(self.cmbPurpose, record, 'eventTypePurpose_id')
     setLineEditValue(self.edtVisitCount, record, 'visitCount')
示例#22
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtName, record, 'name')
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtText, record, 'title')
     setLineEditValue(self.edtRbTableName, record, 'tableName')
     setRBComboBoxValue(self.cmbValueType, record, 'valueType_id')
     setRBComboBoxValue(self.cmbParamType, record, 'type_id')
     self.modelCmbValue.loadItems(self.itemId())
示例#23
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setTextEditValue(self.edtName, record, 'name')
     setComboBoxValue(self.cmbClass, record, 'class')
     self.cmbGroup.setCode(forceString(record.value('group_code')))
     self.setInputCodeSettings()
     setLineEditValue(self.edtCode, record, 'code')
     self.oldCode = self.edtCode.text()
     self.setIsDirty(False)
示例#24
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setComboBoxValue(self.cmbType, record, 'type')
     setDateEditValue(self.edtBegDate, record, 'begDate')
     setDateEditValue(self.edtEndDate, record, 'endDate')
     setCheckBoxValue(self.chkIsActive, record, 'isActive')
     if forceInt(record.value('isReadOnly')):
         self.tblItems.model().setEditable(False)
     self.modelItems.loadItems(self.itemId())
示例#25
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(   self.edtCode,      record, 'code')
     setLineEditValue(   self.edtName,      record, 'name')
     setComboBoxValue(   self.cmbProtocol,  record, 'protocol')
     setLineEditValue(   self.edtAddress,   record, 'address')
     setLineEditValue(   self.edtOwnName,   record, 'ownName')
     setLineEditValue(   self.edtLabName,   record, 'labName')
     self.modelTests.loadItems(self.itemId())
     self.setIsDirty(False)
示例#26
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     self.edtCode.setText(forceString(record.value(rbCode)))
     self.edtName.setText(forceString(record.value(rbName)))
     self.cmbCheckingSerial.setCurrentIndex(
         forceInt(record.value('checkingSerial')))
     self.cmbCheckingNumber.setCurrentIndex(
         forceInt(record.value('checkingNumber')))
     self.cmbCheckingAmount.setCurrentIndex(
         forceInt(record.value('checkingAmount')))
示例#27
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setComboBoxValue(self.cmbType, record, 'type')
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setCheckBoxValue(self.checkBox, record, 'requiredDiagnosis')
     setComboBoxValue(self.cmbGrouping, record, 'grouping')
     setSpinBoxValue(self.spinPrimary, record, 'primary')
     setSpinBoxValue(self.spinProlongate, record, 'prolongate')
     setSpinBoxValue(self.spinRestriction, record, 'restriction')
示例#28
0
文件: RBTest.py 项目: dio4/vista_1
    def setRecord(self, record):
        CItemEditorBaseDialog.setRecord(self, record)
        setLineEditValue(self.edtCode, record, rbCode)
        setLineEditValue(self.edtName, record, rbName)
        setRBComboBoxValue(self.cmbTestGroup, record, 'testGroup_id')
        setSpinBoxValue(self.edtPosition, record, 'position')

        itemId = self.itemId()
        self.modelTestEquipments.loadItems(itemId)
        self.modelTestAnalog.loadItems(itemId)
示例#29
0
 def setRecord(self, record):
     CItemEditorBaseDialog.setRecord(self, record)
     setLineEditValue(self.edtCode, record, 'code')
     setLineEditValue(self.edtName, record, 'name')
     setCheckBoxValue(self.chkEditable, record, 'isEditable')
     setCheckBoxValue(self.chkShowInClientInfo, record, 'showInClientInfo')
     setCheckBoxValue(self.chkIsUnique, record, 'isUnique')
     setCheckBoxValue(self.chkAutoIdentificator, record,
                      'autoIdentificator')
     setRBComboBoxValue(self.cmbCounter, record, 'counter_id')
示例#30
0
    def setRecord(self, record):
        CItemEditorBaseDialog.setRecord(self, record)
        setLineEditValue(self.edtSubject, record, 'subject')
        setTextEditHTML(self.edtText, record, 'text')

        addressee = record.value('addressee').toInt()[0]
        self.cbxUserGroup.setCurrentIndex(
            self.user_profiles.index(addressee) + 1 if addressee else 0)

        self.setIsDirty(False)