개정판 20e0a7a1
issue #000: fix line no recognition
Change-Id: I1373483b40c2fb5b46b4f5b8b1c4720efa6be748
DTI_PID/DTI_PID/CodeTableDialog.py | ||
---|---|---|
307 | 307 |
@date 2018.07.12 |
308 | 308 |
''' |
309 | 309 |
def accept(self): |
310 |
from CodeTables import CodeTable |
|
310 | 311 |
for table in QCodeTableDialog.CODE_TABLES: |
311 | 312 |
if table != 'Nominal Diameter': |
312 | 313 |
self.saveCommonCodeData(table) |
313 | 314 |
|
314 | 315 |
self.saveNomialPipeSize() |
316 |
CodeTable.clearTables() |
|
315 | 317 |
|
316 | 318 |
QDialog.accept(self) |
317 | 319 |
|
DTI_PID/DTI_PID/CodeTables.py | ||
---|---|---|
52 | 52 |
values = appDocData.getCodeTable(_table_name, False) |
53 | 53 |
CodeTable.TABLES[_table_name] = CodeTable(_table_name, values) |
54 | 54 |
|
55 |
return CodeTable.TABLES[_table_name] |
|
55 |
return CodeTable.TABLES[_table_name] |
|
56 |
|
|
57 |
@staticmethod |
|
58 |
def clearTables(): |
|
59 |
CodeTable.TABLES = {} |
DTI_PID/DTI_PID/ConfigurationDialog.py | ||
---|---|---|
653 | 653 |
docData.saveConfigs(configs) |
654 | 654 |
docData.lineTypeConfigs = None # clear line type configurations |
655 | 655 |
NominalPipeSizeTable.instance().pipe_sizes = None # clear nominal pipe size table |
656 |
|
|
656 | 657 |
except Exception as ex: |
657 | 658 |
from App import App |
658 | 659 |
from AppDocData import MessageType |
내보내기 Unified diff