コード例 #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
ファイル: ActionTypeComboBox.py プロジェクト: dio4/vista_1
 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
ファイル: OrgComboBox.py プロジェクト: dio4/vista_1
 def __init__(self, title, fieldName, width):
     CInDocTableCol.__init__(self, title, fieldName, width)
コード例 #5
0
ファイル: ProbeWorkListPage.py プロジェクト: dio4/vista_1
 def __init__(self, model):
     CInDocTableCol.__init__(self, u'Проба', 'id', 10)
     self._cache = {}
     self._model = model
     self._currValue = None
     self._mapTakenTissueJournalId2date = {}
コード例 #6
0
ファイル: MESComboBox.py プロジェクト: dio4/vista_1
 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
ファイル: PropertyHistoryDialog.py プロジェクト: dio4/vista_1
 def __init__(self, title, fieldName, width, actionProperty):
     CInDocTableCol.__init__(self, title, fieldName, width)
     self.actionPropertyValueType = actionProperty.type().valueType
     self.cache = {}