개정판 a560e00a
issue #000: open drawing faster, line no, mssql remain
Change-Id: I4f5f03503365de6fb436f99e726f9942d1562006
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
87 | 87 |
|
88 | 88 |
self._configs = None |
89 | 89 |
self._symbolBase = {} |
90 |
self._symbolType = {} |
|
90 | 91 |
|
91 | 92 |
def clearItemList(self, trim): |
92 | 93 |
''' |
... | ... | |
2988 | 2989 |
''' |
2989 | 2990 |
def getSymbolCategoryByType(self, type): |
2990 | 2991 |
category = None |
2992 |
if type in self._symbolType: |
|
2993 |
return self._symbolType[type] |
|
2994 |
|
|
2991 | 2995 |
conn = self.project.database.connect() |
2992 | 2996 |
with conn: |
2993 | 2997 |
try: |
... | ... | |
2997 | 3001 |
rows = cursor.fetchall() |
2998 | 3002 |
if rows is not None and len(rows) > 0: |
2999 | 3003 |
category = rows[0][0] |
3004 |
self._symbolType[type] = category |
|
3000 | 3005 |
except Exception as ex: |
3001 | 3006 |
print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno)) |
3002 | 3007 |
|
내보내기 Unified diff