示例#1
0
    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)
示例#2
0
 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
示例#3
0
 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 = {}
示例#4
0
 def __init__(self, title, fieldName, width):
     CInDocTableCol.__init__(self, title, fieldName, width)
示例#5
0
 def __init__(self, model):
     CInDocTableCol.__init__(self, u'Проба', 'id', 10)
     self._cache = {}
     self._model = model
     self._currValue = None
     self._mapTakenTissueJournalId2date = {}
示例#6
0
 def __init__(self, title, fieldName, width, eventEditor, **params):
     CInDocTableCol.__init__(self, title, fieldName, width, **params)
     self.eventEditor = eventEditor
     self.mesTextCache = {}
     self.mesIdListByActionTypeCach = {}
示例#7
0
 def __init__(self, model):
     CInDocTableCol.__init__(self, u'Договор', 'contract_id', 20)
     self.model = model
示例#8
0
 def __init__(self, title, fieldName, width, actionProperty):
     CInDocTableCol.__init__(self, title, fieldName, width)
     self.actionPropertyValueType = actionProperty.type().valueType
     self.cache = {}