개정판 988d7308
opc fix
Change-Id: I6aea8a0647e94f2453077cd78f71f5c6ded4f14b
DTI_PID/DTI_PID/AppDocData.py | ||
---|---|---|
3087 | 3087 |
else: |
3088 | 3088 |
opcs = rows |
3089 | 3089 |
|
3090 |
for opc in opcs: |
|
3091 |
opc['Index'] = 0 if opc['Index'] == 1 else 1 # 0 : start with opc, 1 : end with opc |
|
3092 |
|
|
3090 | 3093 |
return opcs |
3091 | 3094 |
# Catch the exception |
3092 | 3095 |
except Exception as ex: |
DTI_PID/DTI_PID/OPCRelationDialog.py | ||
---|---|---|
61 | 61 |
self.ui.tableWidgetSource.setItem(row, 0, item) |
62 | 62 |
item = QTableWidgetItem(opc['Line No']) |
63 | 63 |
item.setFlags(Qt.ItemIsEnabled) |
64 |
item.tag = 0 if opc['Index'] == '0' else 1 # 0 : start with opc, 1 : end with opc
|
|
64 |
item.tag = opc['Index']
|
|
65 | 65 |
self.ui.tableWidgetSource.setItem(row, 1, item) |
66 | 66 |
item = QTableWidgetItem(opc['Symbol']) |
67 | 67 |
item.setFlags(Qt.ItemIsEnabled) |
내보내기 Unified diff