def __init__(self, title, fieldName, width, tableName, **params): CInDocTableCol.__init__(self, title, fieldName, width, **params) self.tableName = tableName self.filter = params.get('filter', '') self.order = params.get('order', '') self.rootId = params.get('rootId', None) self.showRoot = params.get('showRoot', True) # self.addNone = params.get('addNone', True) self.showFields = params.get('showFields', CRBComboBox.showName) self.prefferedWidth = params.get('prefferedWidth', None)
def __init__(self, title=u'Тип', fieldName='diagnosisType_id', width=5, diagnosisTypeCodes=None, smartMode=True, **params): if not diagnosisTypeCodes: diagnosisTypeCodes = [] CInDocTableCol.__init__(self, title, fieldName, width, **params) self.ids = [self.codeToId(code) for code in diagnosisTypeCodes] self.smartMode = smartMode
def __init__(self, title, fieldName, width, actionTypeClass, descendants=False, model=None, **params): CInDocTableCol.__init__(self, title, fieldName, width, **params) self.actionTypeClass = actionTypeClass self.classesVisible = params.get('classesVisible', False) self.contractId = None self.enabledActionTypeIdList = None self.descendants = descendants self.model = model self.foregroundColorCache = {}
def __init__(self, title, fieldName, width): CInDocTableCol.__init__(self, title, fieldName, width)
def __init__(self, model): CInDocTableCol.__init__(self, u'Проба', 'id', 10) self._cache = {} self._model = model self._currValue = None self._mapTakenTissueJournalId2date = {}
def __init__(self, title, fieldName, width, eventEditor, **params): CInDocTableCol.__init__(self, title, fieldName, width, **params) self.eventEditor = eventEditor self.mesTextCache = {} self.mesIdListByActionTypeCach = {}
def __init__(self, model): CInDocTableCol.__init__(self, u'Договор', 'contract_id', 20) self.model = model
def __init__(self, title, fieldName, width, actionProperty): CInDocTableCol.__init__(self, title, fieldName, width) self.actionPropertyValueType = actionProperty.type().valueType self.cache = {}