def __init__(self, parent=None): CTreeModel.__init__(self, parent, CPaymentSchemeRootTreeItem(self)) self._types = range(2) # 2 - количество типов схемы оплаты self._clientId = None self._enrollmentIsOpen = None self._begDate = QtCore.QDate.currentDate() self._endDate = None
def __init__(self, parent): CTreeModel.__init__(self, parent, CJobTicketProbeRootItem(self)) self.rootItemVisible = False self._actionList = [] self._mapContainerTypeIdToActionList = {} self._parent = parent self.resetCache() self._currentTakenTissueExternalId = None
def __init__(self, parent, actionModelsItemList, clientId): self._actionModelsItemList = actionModelsItemList self._clientId = clientId CTreeModel.__init__(self, parent, CEventJobTicketsRootItem(self)) self.rootItemVisible = False self._jobIdToTicketDuration = {} self.getRootItem().setChecked(True) self.fromEvent = False
def __init__(self, parent=None): self._root = CActionsRootItem(self) self._parent = parent CTreeModel.__init__(self, parent, self._root) self._items = dict() self.setRootItemVisible(False) self.notDeletedActionTypes = {} self.eventEditor = None self.init()
def __init__(self, parent, orgId=None, orgStructureId=None, emptyRootName=None, purpose=None, filter=None, headerName=u'Структура ЛПУ'): self.orgId = orgId self.orgStructureId = orgStructureId self.emptyRootName = emptyRootName self.purpose = purpose self.filter = filter self.headerName = headerName CTreeModel.__init__(self, parent, None) self.connect(QtGui.qApp, QtCore.SIGNAL('currentUserIdChanged()'), self.updateItems)
def __init__(self, parent=None, enabledActionTypeIdList=None): CTreeModel.__init__(self, parent, CActionTypeRootTreeItem(self)) self._enabledActionTypeIdList = enabledActionTypeIdList self._classes = ActionClass.All self._classesVisible = False self._allSelectable = False self._leavesVisible = True self._disabledActionTypeIdList = self.getDisabledForProfileActionTypeIdList( ) self._clientSex = 0 self._clientAge = None
def __init__(self, parent, view): self._root = CJobTicketRealRootItem(self) CTreeModel.__init__(self, parent, self._root) self.rootItemVisible = False self._actionList = [] self._tissueTypes = dict() self._actionTree = dict() self._parent = parent self._view = view # type: CJobTicketProbeTreeView2 self._editable = True for record in QtGui.qApp.db.getRecordList('rbTissueType', '*'): self._tissueTypes[forceRef(record.value('id'))] = record
def __init__(self, parent, actionTypeId, personId, specialityId, clientSex, clientAge, removeEmptyNodes=True): CTreeModel.__init__( self, parent, CActionTemplateRootTreeItem( self, CActionTemplateModel.CFilter(actionTypeId, personId, specialityId, clientSex, clientAge, removeEmptyNodes))) self.rootItemVisible = False
def __init__(self, parent): CTreeModel.__init__( self, parent, CQueryFieldsHeadTreeItem(None, u'все', '', 0, self)) self.tableTableName = 'rcTable' self.tableFieldName = 'rcField' self.idColName = 'id' self.groupColName = 'rcTable_id' self.nameColName = 'name' self.refColName = 'ref_id' self.fieldColName = 'field' self._filter = None self.order = self.nameColName self.leavesVisible = False self._defaultRootItem = self._rootItem self.rootItemVisible = False self._items = {} self._tables = {} self._modelParams = None self._modelFunctions = None
def __init__(self, parent, baseModel, modelParams): CTreeModel.__init__( self, parent, CRCConditionTreeItem(None, '', 0, self, name=u'Все')) self._table = 'rcQuery_Conditions' self.idColName = 'id' self.groupColName = 'parent_id' self.nameColName = 'field' self._masterIdFieldName = 'master_id' self._parent = parent self._baseModel = baseModel self._items = {} self._modelConditionType = CRCConditionTypeItemModel( self, ['code', 'name', 'sign'], 'rcConditionType') self._modelValueType = CRCItemModel(self, ['code', 'name'], 'rcValueType') self._modelParams = modelParams self._modelConditionType.loadItems() self._modelValueType.loadItems() self._maxId = None self.rootItemVisible = False self.loadDefault()
def __init__(self, id, parent=None): CTreeModel.__init__(self, parent, CATCRootTreeItem(id))
def __init__(self, parent=None, filter=None): if not filter: filter = {} CTreeModel.__init__(self, parent, CActionBlankRootTreeItem(filter))
def __init__(self, parent=None): CTreeModel.__init__(self, parent, CActionPropertyTemplateRootTreeItem())
def __init__(self, parent=None, filter=None): if not filter: filter = {} CTreeModel.__init__(self, parent, CHospitalBedRootTreeItem(filter))
def __init__(self, parent=None): self._orgStructure = None CTreeModel.__init__(self, parent, CRootItem(None)) self.rootItemVisible = False
def __init__(self, id, parent=None): CTreeModel.__init__(self, parent, CPharmGroupRootTreeItem(id))