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