def getRecord(self): record = CRCReportEditorBase.getRecord(self) getLineEditValue(self.edtReportName, record, 'name') # getTextEditValue(self.textSQL, record, 'sql') self.modelTableCap.saveItems(self.itemId()) self.modelParams.saveItems(self.itemId()) return record
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
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getComboBoxValue(self.cmbCharacterRelation, record, 'characterRelation') return record
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
def getRecord(self, record): dateTime = QDateTime(self.edtDate.date(), QTime().currentTime()) record.setValue('dateTime', dateTime) i = self.cmbSocCodes.currentIndex() socCode = forceString(self.cmbSocCodes.itemData(i)) record.setValue('socCode', socCode) pregCard = forceInt(self.edtPregCard.text()) if pregCard > 0: record.setValue('pregCard', pregCard) else: record.setNull('pregCard') getRBComboBoxValue(self.cmbFinance, record, 'finance_id') record.setValue('mkb', toVariant(self.cmbMKB.text())) getRBComboBoxValue(self.cmbDrug, record, 'formularyItem_id') getLineEditValue(self.edtDosage, record, 'dosage') getSpinBoxValue(self.spbQnt, record, 'qnt') getLineEditValue(self.edtSigna, record, 'signa') getSpinBoxValue(self.spbDuration, record, 'duration') getSpinBoxValue(self.spbNumPerDay, record, 'numPerDay') record.setValue('isVk', int(self.rbtnVkYes.isChecked())) record.setValue('printMnn', int(self.rbtnPrintMNN.isChecked())) record.setValue('percentage', int(50 if self.rbtn50proc.isChecked() else 100)) getComboBoxValue(self.cmbTerm, record, 'term') record.setValue( 'status', self.modelRecipeStatus.getCode(self.cmbStatus.currentIndex())) record.setValue('deleted', 0)
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
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getComboBoxValue(self.cmbQuotaStatusModifier, record, 'quotaStatusModifier') return record
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
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
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
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
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getLineEditValue(self.edtDescr, record, 'descr') getLineEditValue(self.edtRegionalCode, record, 'regionalCode') getLineEditValue(self.edtFederalCode, record, 'federalCode') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') setLineEditValue(self.edtTicketPrefix, record, 'ticketPrefix') getRBComboBoxValue(self.edtOrgStructure, record, 'orgStructure_id') getCheckBoxValue(self.chkImmediatelyReady, record, 'isImmediatelyReady') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue( self.edtCode, record, 'code') getLineEditValue( self.edtName, record, 'name') getComboBoxValue( self.cmbProtocol, record, 'protocol') getLineEditValue( self.edtAddress, record, 'address') getLineEditValue( self.edtOwnName, record, 'ownName') getLineEditValue( self.edtLabName, record, 'labName') return record
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
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getComboBoxValue(self.cmbType, record, 'type') getLineEditValue(self.edtCode, record, rbCode) getLineEditValue(self.edtName, record, rbName) # getCheckBoxValue(self.chkAble, record, 'able') getComboBoxValue(self.cmbClosed, record, 'closed') getComboBoxValue(self.cmbStatus, record, 'status') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue( self.edtCode, record, rbCode) getLineEditValue( self.edtName, record, rbName) record.setValue('color', QtCore.QVariant(self.cmbColor.colorName())) getDoubleBoxValue(self.edtAmount, record, 'amount') getRBComboBoxValue( self.cmbUnit, record, 'unit_id') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getDateEditValue(self.edtDate, record, 'date') getDatetimeEditValue(self.edtDeadlineDate, self.edtDeadlineTime, record, 'deadline', True) getCheckBoxValue(self.chkRevoked, record, 'revoked') getRBComboBoxValue(self.cmbSupplier, record, 'supplier_id') getRBComboBoxValue(self.cmbRecipient, record, 'recipient_id') getLineEditValue(self.edtNote, record, 'note') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtName, record, 'name') getTextEditValue(self.edtDescription, record, 'description') getCheckBoxValue(self.chkVisible, record, 'visible') record.setValue('rcTable_id', toVariant(self.tableId)) record.setValue('ref_id', toVariant(self.getReferenceValue())) record.setValue('field', toVariant((self.fields[self.cmbField.currentIndex()]))) return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getComboBoxValue(self.cmbType, record, 'type') getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getCheckBoxValue(self.checkBox, record, 'requiredDiagnosis') getComboBoxValue(self.cmbGrouping, record, 'grouping') getSpinBoxValue(self.spinPrimary, record, 'primary') getSpinBoxValue(self.spinProlongate, record, 'prolongate') getSpinBoxValue(self.spinRestriction, record, 'restriction') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtSubject, record, 'subject') getTextEditHTML(self.edtText, record, 'text') idx = self.cbxUserGroup.currentIndex() record.setValue( 'addressee', QVariant(self.user_profiles[idx - 1] if idx > 0 else None)) return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getCheckBoxValue(self.chkEditable, record, 'isEditable') getCheckBoxValue(self.chkShowInClientInfo, record, 'showInClientInfo') getCheckBoxValue(self.chkIsUnique, record, 'isUnique') getCheckBoxValue(self.chkAutoIdentificator, record, 'autoIdentificator') getRBComboBoxValue(self.cmbCounter, record, 'counter_id') return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getCheckBoxValue(self.chkShowInClientInfo, record, 'isShowInClientInfo') getCheckBoxValue(self.chkTightControl, record, 'tightControl') if u'онко' in QtGui.qApp.currentOrgInfis(): getCheckBoxValue(self.chkSoftControl, record, 'softControl') getCheckBoxValue(self.chkAutoDateClose, record, 'autoCloseDate') record.setValue('group_id', toVariant(self.groupId)) return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getRBComboBoxValue(self.cmbType, record, 'type_id') getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtRegionalCode, record, 'regionalCode') getLineEditValue(self.edtName, record, 'name') getLineEditValue(self.edtProducer, record, 'producer') getLineEditValue(self.edtATC, record, 'ATC') getSpinBoxValue(self.spnPackSize, record, 'packSize') record.setValue('analog_id', toVariant(self.modelAnalogs.correctAlanogId())) return record
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') record.setValue( 'name', QtCore.QVariant(self.edtName.toPlainText().replace('\n', ' '))) group_code = self.cmbGroup.code() if group_code != '0': record.setValue('group_code', QtCore.QVariant(group_code)) else: record.setValue('group_code', QtCore.QVariant()) getComboBoxValue(self.cmbClass, record, 'class') return record
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
def getRecord(self): record = CItemEditorBaseDialog.getRecord(self) getLineEditValue(self.edtCode, record, 'code') getLineEditValue(self.edtName, record, 'name') getComboBoxValue(self.cmbSex, record, 'sex') record.setValue( 'age', toVariant( composeAgeSelector(self.cmbBegAgeUnit.currentIndex(), forceStringEx(self.edtBegAgeCount.text()), self.cmbEndAgeUnit.currentIndex(), forceStringEx(self.edtEndAgeCount.text())))) getCheckBoxValue(self.chkUseInCreateClients, record, 'flags') return record
def getRecord(self): record = CEventEditDialog.getRecord(self) showTime = getEventShowTime(self.eventTypeId) getLineEditValue(self.edtCardNo, record, 'externalId') getDatetimeEditValue(self.edtBegDate, self.edtBegTime, record, 'setDate', showTime) getDatetimeEditValue(self.edtEndDate, self.edtEndTime, record, 'execDate', showTime) getRBComboBoxValue(self.cmbPerson, record, 'execPerson_id') getRBComboBoxValue(self.cmbResult, record, 'result_id') # getComboBoxValue(self.cmbOrder, record, 'order') record.setValue('order', toVariant(self.cmbOrder.code())) getCheckBoxValue(self.chkLock, record, 'locked') return record
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
def getRecord(self): self.getQueryRecord() self._recordQuery.setValue('mainTable_id', toVariant(self.cmbMainTable.value())) self._recordQuery.setValue('stateTree', toVariant(self.modelTree.getState())) queryId = self.saveQueryRecord() self.modelCols.saveItems(queryId) self.modelGroups.saveItems(queryId) self.modelOrders.saveItems(queryId) self.modelConditions.saveItems(queryId) record = CRCReportEditorBase.getRecord(self) getLineEditValue(self.edtReportName, record, 'name') record.setValue('query_id', toVariant(queryId)) return record