프로젝트

일반

사용자정보

개정판 87666643

ID876666439d6fb471f0be320bc8dde20af66f935f
상위 00ffa977
하위 9c0bab30

함의성이(가) 약 4년 전에 추가함

issue #1465: on going

Change-Id: If83be8306375bdd1bbe62fab737ca79fd12eacb6

차이점 보기:

DTI_PID/DTI_PID/AppDocData.py
85 85
        self._activeDrawing = None
86 86
        self._hmbTable = None
87 87
        self._hmbColors = {}
88
        self._streamLineListModel = None
88 89
        self._titleBlockProperties = None
89 90
        self.needReOpening = None
90 91

  
......
169 170
        self._activeDrawing = None
170 171
        self._hmbTable = None
171 172
        self._hmbColors = {}
173
        self._streamLineListModel = None
172 174
        self._titleBlockProperties = None
173 175

  
174 176
        self._configs = None
DTI_PID/DTI_PID/ConfigurationDialog.py
475 475
            else:
476 476
                self.ui.radioButtonSaveUnknownYes.setChecked(True)
477 477
                self.ui.radioButtonSaveUnknownNo.setChecked(False)
478
            configs = docData.getConfigs('Line List', 'Use Stream No')
479
            if configs:
480
                size = int(configs[0].value)
481
                self.ui.radioButtonLineListYes.setChecked(True if size == 1 else False)
482
                self.ui.radioButtonLineListNo.setChecked(True if size == -1 else False)
483
            else:
484
                self.ui.radioButtonLineListYes.setChecked(False)
485
                self.ui.radioButtonLineListNo.setChecked(True)
478 486
            configs = docData.getConfigs('Engine', 'Address')
479 487
            self.ui.lineEditServerAddress.setText(configs[0].value if configs else '')
480 488
            configs = docData.getConfigs('Engine', 'Text Area')
......
1196 1204
                        ('-1' if self.ui.radioButtonLoadXmlNo.isChecked() else '2')))
1197 1205
            configs.append(
1198 1206
                Config('Data Save', 'Unknown Xml Only', '1' if self.ui.radioButtonSaveUnknownYes.isChecked() else '-1'))
1207
            configs.append(
1208
                Config('Line List', 'Use Stream No', '1' if self.ui.radioButtonLineListYes.isChecked() else '-1'))
1199 1209
            configs.append(Config('Engine', 'Address', self.ui.lineEditServerAddress.text()))
1200 1210
            configs.append(Config('Engine', 'Text Area', '1' if self.ui.radioButtonTextAreaLocal.isChecked() else '-1'))
1201 1211
            configs.append(Config('Engine', 'Symbol', '1' if self.ui.radioButtonSymbolLocal.isChecked() else '-1'))
DTI_PID/DTI_PID/Configuration_UI.py
692 692
        self.gridLayout_23.setObjectName("gridLayout_23")
693 693
        self.gridLayout_31 = QtWidgets.QGridLayout()
694 694
        self.gridLayout_31.setObjectName("gridLayout_31")
695
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
696
        self.gridLayout_31.addItem(spacerItem6, 1, 2, 1, 1)
697
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
698
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
699
        self.radioButtonSaveUnknownYes = QtWidgets.QRadioButton(self.groupBox_11)
700
        self.radioButtonSaveUnknownYes.setAutoExclusive(True)
701
        self.radioButtonSaveUnknownYes.setObjectName("radioButtonSaveUnknownYes")
702
        self.buttonGroup_2 = QtWidgets.QButtonGroup(ConfigurationDialog)
703
        self.buttonGroup_2.setObjectName("buttonGroup_2")
704
        self.buttonGroup_2.addButton(self.radioButtonSaveUnknownYes)
705
        self.horizontalLayout_4.addWidget(self.radioButtonSaveUnknownYes)
706
        self.radioButtonSaveUnknownNo = QtWidgets.QRadioButton(self.groupBox_11)
707
        self.radioButtonSaveUnknownNo.setAutoExclusive(True)
708
        self.radioButtonSaveUnknownNo.setObjectName("radioButtonSaveUnknownNo")
709
        self.buttonGroup_2.addButton(self.radioButtonSaveUnknownNo)
710
        self.horizontalLayout_4.addWidget(self.radioButtonSaveUnknownNo)
711
        self.gridLayout_31.addLayout(self.horizontalLayout_4, 2, 1, 1, 1)
695 712
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
696 713
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
697 714
        self.radioButtonLoadXmlOnly = QtWidgets.QRadioButton(self.groupBox_11)
......
711 728
        self.buttonGroup.addButton(self.radioButtonLoadXmlNo)
712 729
        self.horizontalLayout_3.addWidget(self.radioButtonLoadXmlNo)
713 730
        self.gridLayout_31.addLayout(self.horizontalLayout_3, 1, 1, 1, 1)
714
        self.label_34 = QtWidgets.QLabel(self.groupBox_11)
715
        self.label_34.setObjectName("label_34")
716
        self.gridLayout_31.addWidget(self.label_34, 2, 0, 1, 1)
717
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
718
        self.gridLayout_31.addItem(spacerItem6, 1, 2, 1, 1)
719
        self.label_30 = QtWidgets.QLabel(self.groupBox_11)
720
        self.label_30.setObjectName("label_30")
721
        self.gridLayout_31.addWidget(self.label_30, 1, 0, 1, 1)
722
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
723
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
724
        self.radioButtonSaveUnknownYes = QtWidgets.QRadioButton(self.groupBox_11)
725
        self.radioButtonSaveUnknownYes.setAutoExclusive(True)
726
        self.radioButtonSaveUnknownYes.setObjectName("radioButtonSaveUnknownYes")
727
        self.buttonGroup_2 = QtWidgets.QButtonGroup(ConfigurationDialog)
728
        self.buttonGroup_2.setObjectName("buttonGroup_2")
729
        self.buttonGroup_2.addButton(self.radioButtonSaveUnknownYes)
730
        self.horizontalLayout_4.addWidget(self.radioButtonSaveUnknownYes)
731
        self.radioButtonSaveUnknownNo = QtWidgets.QRadioButton(self.groupBox_11)
732
        self.radioButtonSaveUnknownNo.setAutoExclusive(True)
733
        self.radioButtonSaveUnknownNo.setObjectName("radioButtonSaveUnknownNo")
734
        self.buttonGroup_2.addButton(self.radioButtonSaveUnknownNo)
735
        self.horizontalLayout_4.addWidget(self.radioButtonSaveUnknownNo)
736
        self.gridLayout_31.addLayout(self.horizontalLayout_4, 2, 1, 1, 1)
737
        self.pushButtonClearAccessInfo = QtWidgets.QPushButton(self.groupBox_11)
738
        self.pushButtonClearAccessInfo.setObjectName("pushButtonClearAccessInfo")
739
        self.gridLayout_31.addWidget(self.pushButtonClearAccessInfo, 3, 1, 1, 1)
740
        self.label_31 = QtWidgets.QLabel(self.groupBox_11)
741
        self.label_31.setMinimumSize(QtCore.QSize(200, 0))
742
        self.label_31.setObjectName("label_31")
743
        self.gridLayout_31.addWidget(self.label_31, 3, 0, 1, 1)
744 731
        self.label_49 = QtWidgets.QLabel(self.groupBox_11)
745 732
        self.label_49.setObjectName("label_49")
746 733
        self.gridLayout_31.addWidget(self.label_49, 0, 0, 1, 1)
......
749 736
        self.spinBoxSaveAlarm.setSingleStep(10)
750 737
        self.spinBoxSaveAlarm.setObjectName("spinBoxSaveAlarm")
751 738
        self.gridLayout_31.addWidget(self.spinBoxSaveAlarm, 0, 1, 1, 1)
739
        self.label_31 = QtWidgets.QLabel(self.groupBox_11)
740
        self.label_31.setMinimumSize(QtCore.QSize(200, 0))
741
        self.label_31.setObjectName("label_31")
742
        self.gridLayout_31.addWidget(self.label_31, 4, 0, 1, 1)
743
        self.label_30 = QtWidgets.QLabel(self.groupBox_11)
744
        self.label_30.setObjectName("label_30")
745
        self.gridLayout_31.addWidget(self.label_30, 1, 0, 1, 1)
746
        self.pushButtonClearAccessInfo = QtWidgets.QPushButton(self.groupBox_11)
747
        self.pushButtonClearAccessInfo.setObjectName("pushButtonClearAccessInfo")
748
        self.gridLayout_31.addWidget(self.pushButtonClearAccessInfo, 4, 1, 1, 1)
749
        self.label_34 = QtWidgets.QLabel(self.groupBox_11)
750
        self.label_34.setObjectName("label_34")
751
        self.gridLayout_31.addWidget(self.label_34, 2, 0, 1, 1)
752
        self.label_58 = QtWidgets.QLabel(self.groupBox_11)
753
        self.label_58.setObjectName("label_58")
754
        self.gridLayout_31.addWidget(self.label_58, 3, 0, 1, 1)
755
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
756
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
757
        self.radioButtonLineListYes = QtWidgets.QRadioButton(self.groupBox_11)
758
        self.radioButtonLineListYes.setObjectName("radioButtonLineListYes")
759
        self.buttonGroup_11 = QtWidgets.QButtonGroup(ConfigurationDialog)
760
        self.buttonGroup_11.setObjectName("buttonGroup_11")
761
        self.buttonGroup_11.addButton(self.radioButtonLineListYes)
762
        self.horizontalLayout_14.addWidget(self.radioButtonLineListYes)
763
        self.radioButtonLineListNo = QtWidgets.QRadioButton(self.groupBox_11)
764
        self.radioButtonLineListNo.setObjectName("radioButtonLineListNo")
765
        self.buttonGroup_11.addButton(self.radioButtonLineListNo)
766
        self.horizontalLayout_14.addWidget(self.radioButtonLineListNo)
767
        self.gridLayout_31.addLayout(self.horizontalLayout_14, 3, 1, 1, 1)
752 768
        self.gridLayout_23.addLayout(self.gridLayout_31, 0, 0, 1, 1)
753 769
        self.gridLayout_21.addWidget(self.groupBox_11, 0, 0, 1, 1)
754 770
        self.groupBox_12 = QtWidgets.QGroupBox(self.tabETC)
......
1059 1075
        self.label_25.setText(_translate("ConfigurationDialog", "Color Representation"))
1060 1076
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabLineColor), _translate("ConfigurationDialog", "Line No Color"))
1061 1077
        self.groupBox_11.setTitle(_translate("ConfigurationDialog", "Program Data"))
1078
        self.radioButtonSaveUnknownYes.setText(_translate("ConfigurationDialog", "Yes"))
1079
        self.radioButtonSaveUnknownNo.setText(_translate("ConfigurationDialog", "No"))
1062 1080
        self.radioButtonLoadXmlOnly.setText(_translate("ConfigurationDialog", "XML Only"))
1063 1081
        self.radioButtonLoadXmlYes.setText(_translate("ConfigurationDialog", "XML Frist"))
1064 1082
        self.radioButtonLoadXmlNo.setText(_translate("ConfigurationDialog", "Database Only"))
1065
        self.label_34.setText(_translate("ConfigurationDialog", "Save Unknown Item to XML Only"))
1083
        self.label_49.setText(_translate("ConfigurationDialog", "Save Alarm(min)"))
1084
        self.label_31.setText(_translate("ConfigurationDialog", "Clear Drawing Access Information"))
1066 1085
        self.label_30.setText(_translate("ConfigurationDialog", "Load Data From"))
1067
        self.radioButtonSaveUnknownYes.setText(_translate("ConfigurationDialog", "Yes"))
1068
        self.radioButtonSaveUnknownNo.setText(_translate("ConfigurationDialog", "No"))
1069 1086
        self.pushButtonClearAccessInfo.setText(_translate("ConfigurationDialog", "Clear"))
1070
        self.label_31.setText(_translate("ConfigurationDialog", "Clear Drawing Access Information"))
1071
        self.label_49.setText(_translate("ConfigurationDialog", "Save Alarm(min)"))
1087
        self.label_34.setText(_translate("ConfigurationDialog", "Save Unknown Item to XML Only"))
1088
        self.label_58.setText(_translate("ConfigurationDialog", "Line List by Using Stream No"))
1089
        self.radioButtonLineListYes.setText(_translate("ConfigurationDialog", "Yes"))
1090
        self.radioButtonLineListNo.setText(_translate("ConfigurationDialog", "No"))
1072 1091
        self.groupBox_12.setTitle(_translate("ConfigurationDialog", "Visual"))
1073 1092
        self.label_36.setText(_translate("ConfigurationDialog", "Background Text Transparency"))
1074 1093
        self.radioButtonBackTextYes.setText(_translate("ConfigurationDialog", "Yes"))
DTI_PID/DTI_PID/ConnectAttrDialog.py
90 90
        self.ui.pushButtonStart.clicked.connect(self.start_job)
91 91
        self.ui.checkBoxUpdateSpec.setChecked(True)
92 92

  
93
        configs = AppDocData.instance().getConfigs('Project', 'Operation')
93
        app_doc_data = AppDocData.instance()
94

  
95
        configs = app_doc_data.getConfigs('Line List', 'Use Stream No')
96
        if configs and int(configs[0].value) == 1:
97
            self.ui.checkBoxStreamNo.setChecked(True)
98
        else:
99
            self.ui.checkBoxStreamNo.setHidden(True)
100

  
101
        configs = app_doc_data.getConfigs('Project', 'Operation')
94 102
        self.instrument = int(configs[0].value) if configs else 1
95 103

  
96 104
        if self.instrument != 1:
DTI_PID/DTI_PID/ItemDataExportDialog.py
342 342
        special_item_types = SpecialItemTypes.instance()
343 343
        self.lineColumnListAll = ['UID', 'Drawing Name']
344 344
        self.lineColumnListAll.extend([prop.Attribute for prop in app_doc_data.getLineProperties()])
345
        self.lineColumnListAll = self.add_hmb_header(self.lineColumnListAll)
345 346
        self.equipColumnListAll = ['UID', 'ITEM_NO']
346 347
        self.equipColumnListAll.extend([prop.Attribute for prop in app_doc_data.get_equipment_attributes()])
347 348
        self.equipColumnListAll.append('Drawing Name')
......
559 560

  
560 561
        return dataList_backup
561 562

  
563
    def set_line_list_data(self):
564
        pass
565

  
562 566

  
563 567
    '''
564 568
        @brief      setting line data
......
755 759
        QApplication.setOverrideCursor(Qt.WaitCursor)
756 760
        try:
757 761
            hmb_datas = AppDocData.instance().get_hmb_data(None)
758

  
759
            self.set_line_data()
762
            configs = docData.getConfigs('Line List', 'Use Stream No')
763
            if configs and int(configs[0].value) == 1:
764
                self.set_line_list_data()
765
            else:
766
                self.set_line_data()
760 767
            self.set_equipment_data()
761 768
            self.set_valve_data()
762 769
            self.set_instrument_data(hmb_datas)
DTI_PID/DTI_PID/LineListDialog.py
8 8
from PyQt5.QtGui import *
9 9
from PyQt5.QtWidgets import *
10 10
from AppDocData import AppDocData, MessageType, Config
11
from CodeTables import CodeTable
11 12
from App import App
12 13

  
13 14
from EngineeringAbstractItem import QEngineeringAbstractItem
......
96 97
            if len(self.columnOrder['LINE_DATA_LIST']) is 0:  # use column name if setting does not exit
97 98
                value = ''
98 99
                for prop in app_doc_data.getLineProperties():
99
                    value += (prop.Attribute + self.delimiterCombine + prop.Attribute + self.delimiter)
100
                    if prop.Attribute.upper() in CodeTable.DEFAULTS or prop.Attribute == 'Tag Seq No':
101
                         value += (prop.Attribute + self.delimiterCombine + prop.Attribute + self.delimiter)
102
                for prop in ['FROM', 'TO', 'Stream No']:
103
                    value += (prop + self.delimiterCombine + prop + self.delimiter)
100 104
                value = value[:-len(self.delimiter)]
101 105
                config = Config('Order', 'LINE_LIST_DATA_LIST', value)
102 106
                configs.append(config)
......
118 122
        if dlg.exec_():
119 123
            datas = self.make_line_list_data()
120 124
            self.initListOrder()
121
            self.fill_data(datas)
125
            self._model = self.fill_data(datas)
122 126

  
123 127
    def listCellClicked(self, index):
124 128
        from HighlightCommand import HighlightCommand
......
310 314
                header = orders[col].split(self.delimiterCombine)
311 315
                headers.append(header)
312 316

  
313
            hmb_datas = AppDocData.instance().get_hmb_data(None)
317
            app_doc_data = AppDocData.instance()
318
            hmb_datas = app_doc_data.get_hmb_data(None)
314 319

  
315
            row_datas = self.make_valid_data(datas)
320
            if (self.parent() and app_doc_data._streamLineListModel is None) or not self.parent():
321
                row_datas = self.make_valid_data(datas)
316 322

  
317
            for row_data in row_datas:
318
                stream_no = row_data[1].stream_no
319
                matches = [hmb_data for hmb_data in hmb_datas if hmb_data.stream_no == stream_no]
320
                hmb_data = None
323
                model_datas = []
324
                for row_data in row_datas:
325
                    stream_no = row_data[1].stream_no
326
                    matches = [hmb_data for hmb_data in hmb_datas if hmb_data.stream_no == stream_no]
327
                    hmb_data = None
321 328

  
322
                if matches:
323
                    hmb_data = matches[0]
324

  
325
                phase = ''
326
                if hmb_data:
327
                    phase = hmb_data.phase
328

  
329
                line_no = row_data[0].owner
330
                from_ = self.get_from_name(row_data)
331
                to_ = self.get_to_name(row_data)
332

  
333
                from_item = QStandardItem(from_)
334
                from_item.tag = row_data[1]
335
                to_item = QStandardItem(to_)
336
                to_item.tag = row_data[2]
337

  
338
                pnid_no = line_no.EvaluatedDrawing('Drawing No')
339
                pnid_no = pnid_no.text() if pnid_no else ''
340

  
341
                data = self.get_spec_data(row_data)
342
                data['FROM'] = from_item
343
                data['TO'] = to_item
344
                data['P&ID NO.'] = pnid_no
345
                data['PHASE'] = phase
346
                data['Stream No'] = stream_no
347

  
348
                items = []
349
                for name, display in headers:
350
                    value = ''
351

  
352
                    if name in data:
353
                        items.append(QStandardItem(data[name])) if type(data[name]) is str else items.append(data[name])
354
                        continue
355
                        
356
                    if name == self.emptyCol:
357
                        items.append(QStandardItem(''))
358
                        continue
359

  
360
                    datas = []
361
                    if phase == 'Two':
362
                        phase = 'LIQUID'
363
                    elif not phase:
364
                        items.append(QStandardItem('-'))
365
                        continue
329
                    if matches:
330
                        hmb_data = matches[0]
366 331

  
332
                    phase = ''
367 333
                    if hmb_data:
368
                        datas = hmb_data.data
369

  
370
                        matches = [data for data in datas if data.name == name and data.phase == phase]
371
                        if matches:
372
                            value = matches[0].value
373
                            items.append(QStandardItem(value)) if type(value) is str else items.append(value)
374
                        else:
375
                            matches = [data for data in datas if data.name == name]
334
                        phase = hmb_data.phase
335

  
336
                    line_no = row_data[0].owner
337
                    from_ = self.get_from_name(row_data)
338
                    to_ = self.get_to_name(row_data)
339

  
340
                    from_item = QStandardItem(from_)
341
                    from_item.tag = row_data[1]
342
                    to_item = QStandardItem(to_)
343
                    to_item.tag = row_data[2]
344

  
345
                    pnid_no = line_no.EvaluatedDrawing('Drawing No')
346
                    pnid_no = pnid_no.text() if pnid_no else ''
347

  
348
                    data = self.get_spec_data(row_data)
349
                    data['FROM'] = from_item
350
                    data['TO'] = to_item
351
                    data['P&ID NO.'] = pnid_no
352
                    data['PHASE'] = phase
353
                    data['Stream No'] = stream_no
354

  
355
                    items = []
356
                    model_data = {}
357
                    for name, display in headers:
358
                        value = ''
359

  
360
                        if name in data:
361
                            items.append(QStandardItem(data[name])) if type(data[name]) is str else items.append(data[name])
362
                            model_data[name] = data[name] if type(data[name]) is str else data[name].text()
363
                            continue
364
                            
365
                        if name == self.emptyCol:
366
                            items.append(QStandardItem(''))
367
                            model_data[name] = ''
368
                            continue
369

  
370
                        datas = []
371
                        if phase == 'Two':
372
                            phase = 'LIQUID'
373
                        elif not phase:
374
                            items.append(QStandardItem('-'))
375
                            model_data[name] = '-'
376
                            continue
377

  
378
                        if hmb_data:
379
                            datas = hmb_data.data
380

  
381
                            matches = [data for data in datas if data.name == name and data.phase == phase]
376 382
                            if matches:
377 383
                                value = matches[0].value
378 384
                                items.append(QStandardItem(value)) if type(value) is str else items.append(value)
385
                                model_data[name] = value if type(value) is str value.text()
379 386
                            else:
380
                                items.append(QStandardItem('')) if type(value) is str else items.append(value)
387
                                matches = [data for data in datas if data.name == name]
388
                                if matches:
389
                                    value = matches[0].value
390
                                    items.append(QStandardItem(value)) if type(value) is str else items.append(value)
391
                                    model_data[name] = value if type(value) is str value.text()
392
                                else:
393
                                    items.append(QStandardItem('')) if type(value) is str else items.append(value)
394
                                    model_data[name] = value if type(value) is str value.text()
381 395

  
382
                model.appendRow(items)
396
                    model.appendRow(items)
397
                    model_datas.append(model_data)
398
            else:
399
                pass
400
                #model = app_doc_data._streamLineListModel
383 401

  
384 402
            model.setHorizontalHeaderLabels([header[1] for header in headers])
385 403

  
......
387 405
            self.ui.tableViewLineList.resizeColumnsToContents()
388 406
            self.ui.tableViewLineList.setEditTriggers(QAbstractItemView.NoEditTriggers)
389 407

  
390
            return model
408
            return model_datas
391 409
        except Exception as ex:
392 410
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
393 411
                                                          sys.exc_info()[-1].tb_lineno)
DTI_PID/DTI_PID/LineNoTracer.py
724 724
    cmd.execute(worker.scene)
725 725

  
726 726
    dialog = LineListDialog(None, scene=worker.scene)
727
    data_model = dialog._model
727
    AppDocData.instance()._streamLineListModel = dialog._model
728 728

  
729 729
def make_end_break(worker, end_breaks, lineNos):
730 730
    ''' make end break '''
DTI_PID/DTI_PID/Scripts/MSSQL/ID2.sql
2383 2383
INSERT INTO SymbolAttribute (UID,SymbolType_UID,"Attribute",DisplayAttribute,AttributeType,Expression,"index",AttrAt,"Length",Target,Property) VALUES (
2384 2384
'ed1355df-ffb8-462a-a43e-59c94d88572b','0','Line No','Line No','Text Item','item.text()',6,6,NULL,'ALL',0);
2385 2385
INSERT INTO SymbolAttribute (UID,SymbolType_UID,"Attribute",DisplayAttribute,AttributeType,Expression,"index",AttrAt,"Length",Target,Property) VALUES (
2386
'fbada9c7-0a5b-45c6-b082-2d3763e19abd','39','Tag Prefix','Tag Prefix','Tag No','item.text().split('-')[0] if item and '-' in item.text() else ''',1,0,NULL,'ALL',0);
2386
'fbada9c7-0a5b-45c6-b082-2d3763e19abd','39','Tag Prefix','Tag Prefix','Tag No','item.text().split("-")[0] if item and "-" in item.text() else ''',1,0,NULL,'ALL',0);
2387 2387
INSERT INTO SymbolAttribute (UID,SymbolType_UID,"Attribute",DisplayAttribute,AttributeType,Expression,"index",AttrAt,"Length",Target,Property) VALUES (
2388
'28c6bda1-e02a-4473-aa71-ee5f45dbbe5b','39','Tag Seq No','Tag Seq No','Tag No','item.text().split('-')[1][:5] if item and '-' in item.text() and len(item.text().split('-')[1]) > 4 else ''',2,0,NULL,'ALL',0);
2388
'28c6bda1-e02a-4473-aa71-ee5f45dbbe5b','39','Tag Seq No','Tag Seq No','Tag No','item.text().split("-")[1][:5] if item and "-" in item.text() and len(item.text().split("-")[1]) > 4 else ''',2,0,NULL,'ALL',0);
2389 2389
INSERT INTO SymbolAttribute (UID,SymbolType_UID,"Attribute",DisplayAttribute,AttributeType,Expression,"index",AttrAt,"Length",Target,Property) VALUES (
2390
'258e8b06-21bd-4c5b-901b-7abdbb2d0dca','39','Tag Suffix','Tag Suffix','Tag No','item.text().split('-')[1][5:] if item and '-' in item.text() and len(item.text().split('-')[1]) > 4 else ''',3,0,NULL,'ALL',0);
2390
'258e8b06-21bd-4c5b-901b-7abdbb2d0dca','39','Tag Suffix','Tag Suffix','Tag No','item.text().split("-")[1][5:] if item and "-" in item.text() and len(item.text().split("-")[1]) > 4 else ''',3,0,NULL,'ALL',0);
2391 2391
INSERT INTO SymbolAttribute (UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
2392 2392
VALUES('3cbbffc0-9f60-4d6c-9c64-e5983adac9c0', '22', 'Outlet Size', 'Outlet Size', 'Size Text Item', 'item.mainSize', 3, 0, NULL, 'ALL', 1);
2393 2393
INSERT INTO SymbolAttribute (UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
DTI_PID/DTI_PID/UI/Configuration.ui
1418 1418
           <layout class="QGridLayout" name="gridLayout_23">
1419 1419
            <item row="0" column="0">
1420 1420
             <layout class="QGridLayout" name="gridLayout_31">
1421
              <item row="1" column="2">
1422
               <spacer name="horizontalSpacer_3">
1423
                <property name="orientation">
1424
                 <enum>Qt::Horizontal</enum>
1425
                </property>
1426
                <property name="sizeHint" stdset="0">
1427
                 <size>
1428
                  <width>40</width>
1429
                  <height>20</height>
1430
                 </size>
1431
                </property>
1432
               </spacer>
1433
              </item>
1434
              <item row="2" column="1">
1435
               <layout class="QHBoxLayout" name="horizontalLayout_4">
1436
                <item>
1437
                 <widget class="QRadioButton" name="radioButtonSaveUnknownYes">
1438
                  <property name="text">
1439
                   <string>Yes</string>
1440
                  </property>
1441
                  <property name="autoExclusive">
1442
                   <bool>true</bool>
1443
                  </property>
1444
                  <attribute name="buttonGroup">
1445
                   <string notr="true">buttonGroup_2</string>
1446
                  </attribute>
1447
                 </widget>
1448
                </item>
1449
                <item>
1450
                 <widget class="QRadioButton" name="radioButtonSaveUnknownNo">
1451
                  <property name="text">
1452
                   <string>No</string>
1453
                  </property>
1454
                  <property name="autoExclusive">
1455
                   <bool>true</bool>
1456
                  </property>
1457
                  <attribute name="buttonGroup">
1458
                   <string notr="true">buttonGroup_2</string>
1459
                  </attribute>
1460
                 </widget>
1461
                </item>
1462
               </layout>
1463
              </item>
1421 1464
              <item row="1" column="1">
1422 1465
               <layout class="QHBoxLayout" name="horizontalLayout_3">
1423 1466
                <item>
......
1458 1501
                </item>
1459 1502
               </layout>
1460 1503
              </item>
1461
              <item row="2" column="0">
1462
               <widget class="QLabel" name="label_34">
1504
              <item row="0" column="0">
1505
               <widget class="QLabel" name="label_49">
1463 1506
                <property name="text">
1464
                 <string>Save Unknown Item to XML Only</string>
1507
                 <string>Save Alarm(min)</string>
1465 1508
                </property>
1466 1509
               </widget>
1467 1510
              </item>
1468
              <item row="1" column="2">
1469
               <spacer name="horizontalSpacer_3">
1470
                <property name="orientation">
1471
                 <enum>Qt::Horizontal</enum>
1511
              <item row="0" column="1">
1512
               <widget class="QSpinBox" name="spinBoxSaveAlarm">
1513
                <property name="maximum">
1514
                 <number>100</number>
1472 1515
                </property>
1473
                <property name="sizeHint" stdset="0">
1516
                <property name="singleStep">
1517
                 <number>10</number>
1518
                </property>
1519
               </widget>
1520
              </item>
1521
              <item row="4" column="0">
1522
               <widget class="QLabel" name="label_31">
1523
                <property name="minimumSize">
1474 1524
                 <size>
1475
                  <width>40</width>
1476
                  <height>20</height>
1525
                  <width>200</width>
1526
                  <height>0</height>
1477 1527
                 </size>
1478 1528
                </property>
1479
               </spacer>
1529
                <property name="text">
1530
                 <string>Clear Drawing Access Information</string>
1531
                </property>
1532
               </widget>
1480 1533
              </item>
1481 1534
              <item row="1" column="0">
1482 1535
               <widget class="QLabel" name="label_30">
......
1485 1538
                </property>
1486 1539
               </widget>
1487 1540
              </item>
1488
              <item row="2" column="1">
1489
               <layout class="QHBoxLayout" name="horizontalLayout_4">
1541
              <item row="4" column="1">
1542
               <widget class="QPushButton" name="pushButtonClearAccessInfo">
1543
                <property name="text">
1544
                 <string>Clear</string>
1545
                </property>
1546
               </widget>
1547
              </item>
1548
              <item row="2" column="0">
1549
               <widget class="QLabel" name="label_34">
1550
                <property name="text">
1551
                 <string>Save Unknown Item to XML Only</string>
1552
                </property>
1553
               </widget>
1554
              </item>
1555
              <item row="3" column="0">
1556
               <widget class="QLabel" name="label_58">
1557
                <property name="text">
1558
                 <string>Line List by Using Stream No</string>
1559
                </property>
1560
               </widget>
1561
              </item>
1562
              <item row="3" column="1">
1563
               <layout class="QHBoxLayout" name="horizontalLayout_14">
1490 1564
                <item>
1491
                 <widget class="QRadioButton" name="radioButtonSaveUnknownYes">
1565
                 <widget class="QRadioButton" name="radioButtonLineListYes">
1492 1566
                  <property name="text">
1493 1567
                   <string>Yes</string>
1494 1568
                  </property>
1495
                  <property name="autoExclusive">
1496
                   <bool>true</bool>
1497
                  </property>
1498 1569
                  <attribute name="buttonGroup">
1499
                   <string notr="true">buttonGroup_2</string>
1570
                   <string notr="true">buttonGroup_11</string>
1500 1571
                  </attribute>
1501 1572
                 </widget>
1502 1573
                </item>
1503 1574
                <item>
1504
                 <widget class="QRadioButton" name="radioButtonSaveUnknownNo">
1575
                 <widget class="QRadioButton" name="radioButtonLineListNo">
1505 1576
                  <property name="text">
1506 1577
                   <string>No</string>
1507 1578
                  </property>
1508
                  <property name="autoExclusive">
1509
                   <bool>true</bool>
1510
                  </property>
1511 1579
                  <attribute name="buttonGroup">
1512
                   <string notr="true">buttonGroup_2</string>
1580
                   <string notr="true">buttonGroup_11</string>
1513 1581
                  </attribute>
1514 1582
                 </widget>
1515 1583
                </item>
1516 1584
               </layout>
1517 1585
              </item>
1518
              <item row="3" column="1">
1519
               <widget class="QPushButton" name="pushButtonClearAccessInfo">
1520
                <property name="text">
1521
                 <string>Clear</string>
1522
                </property>
1523
               </widget>
1524
              </item>
1525
              <item row="3" column="0">
1526
               <widget class="QLabel" name="label_31">
1527
                <property name="minimumSize">
1528
                 <size>
1529
                  <width>200</width>
1530
                  <height>0</height>
1531
                 </size>
1532
                </property>
1533
                <property name="text">
1534
                 <string>Clear Drawing Access Information</string>
1535
                </property>
1536
               </widget>
1537
              </item>
1538
              <item row="0" column="0">
1539
               <widget class="QLabel" name="label_49">
1540
                <property name="text">
1541
                 <string>Save Alarm(min)</string>
1542
                </property>
1543
               </widget>
1544
              </item>
1545
              <item row="0" column="1">
1546
               <widget class="QSpinBox" name="spinBoxSaveAlarm">
1547
                <property name="maximum">
1548
                 <number>100</number>
1549
                </property>
1550
                <property name="singleStep">
1551
                 <number>10</number>
1552
                </property>
1553
               </widget>
1554
              </item>
1555 1586
             </layout>
1556 1587
            </item>
1557 1588
           </layout>
......
1981 2012
  </connection>
1982 2013
 </connections>
1983 2014
 <buttongroups>
2015
  <buttongroup name="buttonGroup_4"/>
1984 2016
  <buttongroup name="buttonGroup_6"/>
1985
  <buttongroup name="buttonGroup_5"/>
1986
  <buttongroup name="buttonGroup_7"/>
1987 2017
  <buttongroup name="buttonGroup"/>
1988
  <buttongroup name="buttonGroup_9"/>
1989
  <buttongroup name="buttonGroup_3"/>
1990
  <buttongroup name="buttonGroup_4"/>
1991
  <buttongroup name="buttonGroup_10"/>
1992 2018
  <buttongroup name="buttonGroup_2"/>
2019
  <buttongroup name="buttonGroup_7"/>
2020
  <buttongroup name="buttonGroup_10"/>
2021
  <buttongroup name="buttonGroup_5"/>
1993 2022
  <buttongroup name="buttonGroup_8"/>
2023
  <buttongroup name="buttonGroup_9"/>
2024
  <buttongroup name="buttonGroup_3"/>
2025
  <buttongroup name="buttonGroup_11"/>
1994 2026
 </buttongroups>
1995 2027
</ui>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)