개정판 943d9c39
issue #000: delete scene data in data list
DTI_PID/DTI_PID/ItemDataExportDialog.py | ||
---|---|---|
86 | 86 |
|
87 | 87 |
try: |
88 | 88 |
# save scene data |
89 |
self.saveSceneData() |
|
89 |
##self.saveSceneData()
|
|
90 | 90 |
# setting combobox |
91 | 91 |
self.initComboBox() |
92 | 92 |
# setting table |
... | ... | |
495 | 495 |
item.setFlags(Qt.ItemIsEnabled) |
496 | 496 |
lineTable.setItem(row, dataIndex, item) |
497 | 497 |
row += 1 |
498 |
|
|
498 |
''' |
|
499 | 499 |
# 현재 문서명이 같으면 중복 체크 (line 경우 lineNo로) |
500 | 500 |
if docData.imgName is not None and (docData.imgName == text or self.ui.comboBoxDoc.currentIndex() == 0): |
501 | 501 |
rowCount = lineTable.rowCount() |
... | ... | |
546 | 546 |
if item.text() != '': |
547 | 547 |
item.setBackground(QColor(int(134), int(229), int(127))) |
548 | 548 |
lineTable.setItem(rowCount - 1, index, item) |
549 |
''' |
|
549 | 550 |
|
550 | 551 |
''' |
551 | 552 |
@brief setting equip data |
... | ... | |
574 | 575 |
col += 1 |
575 | 576 |
|
576 | 577 |
row += 1 |
577 |
|
|
578 |
''' |
|
578 | 579 |
# 현재 문서명이 같으면 중복 체크 (Equipment 경우 uid로) |
579 | 580 |
if docData.imgName is not None and (docData.imgName == text or self.ui.comboBoxDoc.currentIndex() == 0): |
580 | 581 |
rowCount = equipTable.rowCount() |
... | ... | |
605 | 606 |
if item.text() != '': |
606 | 607 |
item.setBackground(QColor(int(134), int(229), int(127))) |
607 | 608 |
equipTable.setItem(rowCount - 1, index, item) |
609 |
''' |
|
608 | 610 |
except Exception as ex: |
609 | 611 |
from App import App |
610 | 612 |
from AppDocData import MessageType |
... | ... | |
645 | 647 |
headers = [] |
646 | 648 |
for col in range(valve_table.columnCount()): |
647 | 649 |
headers.append(valve_table.horizontalHeaderItem(col).text()) |
648 |
|
|
650 |
''' |
|
649 | 651 |
# 현재 문서명이 같으면 중복 체크 |
650 | 652 |
if docData.imgName is not None and (docData.imgName == text or self.ui.comboBoxDoc.currentIndex() == 0): |
651 | 653 |
rowCount = valve_table.rowCount() |
... | ... | |
698 | 700 |
if item.text() != '': |
699 | 701 |
item.setBackground(QColor(int(134), int(229), int(127))) |
700 | 702 |
valve_table.setItem(rowCount - 1, headers.index(attr_name), item) |
703 |
''' |
|
701 | 704 |
except Exception as ex: |
702 | 705 |
from App import App |
703 | 706 |
from AppDocData import MessageType |
... | ... | |
728 | 731 |
item.setFlags(Qt.ItemIsEnabled) |
729 | 732 |
instTable.setItem(row, dataIndex, item) |
730 | 733 |
row += 1 |
731 |
|
|
734 |
''' |
|
732 | 735 |
# 현재 문서명이 같으면 중복 체크 (Inst 경우 uid로) |
733 | 736 |
if docData.imgName is not None and (docData.imgName == text or self.ui.comboBoxDoc.currentIndex() == 0): |
734 | 737 |
rowCount = instTable.rowCount() |
... | ... | |
760 | 763 |
if item.text() != '': |
761 | 764 |
item.setBackground(QColor(int(134), int(229), int(127))) |
762 | 765 |
instTable.setItem(rowCount - 1, index, item) |
766 |
''' |
|
763 | 767 |
|
764 | 768 |
''' |
765 | 769 |
@brief setting note data |
... | ... | |
785 | 789 |
item.setFlags(Qt.ItemIsEnabled) |
786 | 790 |
noteTable.setItem(row, dataIndex, item) |
787 | 791 |
row += 1 |
788 |
|
|
792 |
''' |
|
789 | 793 |
# 현재 문서명이 같으면 중복 체크 (Note 경우 uid로) |
790 | 794 |
if docData.imgName is not None and (docData.imgName == text or self.ui.comboBoxDoc.currentIndex() == 0): |
791 | 795 |
rowCount = noteTable.rowCount() |
... | ... | |
817 | 821 |
if item.text() != '': |
818 | 822 |
item.setBackground(QColor(int(134), int(229), int(127))) |
819 | 823 |
noteTable.setItem(rowCount - 1, index, item) |
824 |
''' |
|
820 | 825 |
|
821 | 826 |
def show_item_data_format_dialog(self): |
822 | 827 |
""" |
내보내기 Unified diff