프로젝트

일반

사용자정보

개정판 169da978

ID169da9784a976a1fe3d63d56acd95ef4358ec3a2
상위 61b3b744
하위 2a98fd30

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

issue #1189: update manual and 563 package equip attribute

Change-Id: I5ed0508b07db42cf8fdcd3dfe315bfc8fd8dffa5

차이점 보기:

DTI_PID/DTI_PID/ConfigurationDialog.py
82 82

  
83 83
        configs = docData.getConfigs('Text Size', 'Min Text Size')
84 84
        self.ui.minTextSizeSpinBox.setValue(int(configs[0].value)) if 1 == len(
85
            configs) else self.ui.minTextSizeSpinBox.setValue(30)
85
            configs) else self.ui.minTextSizeSpinBox.setValue(20)
86 86
        configs = docData.getConfigs('Text Size', 'Max Text Size')
87 87
        self.ui.maxTextSizeSpinBox.setValue(int(configs[0].value)) if 1 == len(
88 88
            configs) else self.ui.maxTextSizeSpinBox.setValue(60)
DTI_PID/DTI_PID/Scripts/MSSQL/ID2.sql
1495 1495
VALUES('16b674b2-9c10-4309-9d98-c36035ab0922', '19', 'SeqNumber', 'Tag Seq Number', 'Text Item', 'item.text()[:5]', 3, 1, NULL, 'ALL', 0);
1496 1496
INSERT INTO SymbolAttribute
1497 1497
(UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
1498
VALUES('a5b5ff96-c33c-43e2-91ed-b0e2ad583a53', '19', 'Suffix', 'Tag Suffix', 'Text Item', ''''' if len(item.text()) is 5 else (item.text()[-1:] if len(item.text()) is 6 else item.text()[-2:])', 4, 1, NULL, 'ALL', 0);
1498
VALUES('a5b5ff96-c33c-43e2-91ed-b0e2ad583a53', '19', 'Suffix', 'Tag Suffix', 'Text Item', ''''' if len(item.text()) is 5 else item.text()[5:]', 4, 1, NULL, 'ALL', 0);
1499 1499
INSERT INTO SymbolAttribute
1500 1500
(UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
1501
VALUES('7b22bbba-9323-43af-9ca3-973c0a2a2b37', '21', 'Suffix', 'Tag Suffix', 'Text Item', ''''' if len(item.text()) is 5 else (item.text()[-1:] if len(item.text()) is 6 else item.text()[-2:])', 3, 1, NULL, 'ALL', 0);
1501
VALUES('7b22bbba-9323-43af-9ca3-973c0a2a2b37', '21', 'Suffix', 'Tag Suffix', 'Text Item', ''''' if len(item.text()) is 5 else item.text()[5:]', 3, 1, NULL, 'ALL', 0);
1502 1502
INSERT INTO SymbolAttribute
1503 1503
(UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
1504
VALUES('28a2680b-3125-4cb7-a637-26ec54d594b1', '25', 'Suffix', 'Tag Suffix', 'Text Item', ''''' if len(item.text()) is 5 else (item.text()[-1:] if len(item.text()) is 6 else item.text()[-2:])', 3, 1, NULL, 'ALL', 0);
1504
VALUES('28a2680b-3125-4cb7-a637-26ec54d594b1', '25', 'Suffix', 'Tag Suffix', 'Text Item', ''''' if len(item.text()) is 5 else item.text()[5:]', 3, 1, NULL, 'ALL', 0);
1505 1505
INSERT INTO SymbolAttribute
1506 1506
(UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
1507 1507
VALUES('66cef7da-9f34-4dd8-8f23-b804b2cc6e16', '19', 'SP', 'SP', 'Text Item', 'item.text()', 5, 0, NULL, 'ALL', 0);
1508 1508
INSERT INTO SymbolAttribute
1509 1509
(UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
1510 1510
VALUES('2dda2e01-ad37-4ff3-a4d1-0fbf54944d7b', '19', 'SP Tag', 'SP Tag', 'Text Item', 'item.text()', 6, 1, NULL, 'ALL', 0);
1511
INSERT INTO SymbolAttribute
1512
(UID, SymbolType_UID, "Attribute", DisplayAttribute, AttributeType, Expression, "index", AttrAt, "Length", Target, Property)
1513
VALUES('a0b800a7-bb02-458c-8a06-061c86c24b5c', '39', 'Name', 'Name', 'Tag No', 'self.EvaluatedName', 0, 0, NULL, 'ALL', 1);
1511 1514

  
1512 1515
CREATE TABLE Attributes (
1513 1516
    UID                 VARCHAR (37) PRIMARY KEY,
DTI_PID/DTI_PID/Shapes/EngineeringEquipmentItem.py
31 31
        self._properties = \
32 32
            { \
33 33
                #SymbolProp(None, 'Desc', 'String', Expression="self.desc"): None
34
                SymbolProp(None, 'Name Tag', 'Tag No', Expression='self.EvaluatedName'): None
34
                #SymbolProp(None, 'Name Tag', 'Tag No', Expression='self.EvaluatedName'): None
35 35
            }
36 36

  
37 37
        '''
DTI_PID/DTI_PID/Shapes/EngineeringVendorItem.py
41 41
        self.setColor(self._color if pack_type == 'Vendor Package' else QEngineeringVendorItem.EQUIPMENT_PACKAGE_COLOR)
42 42
        self._savedColor = None
43 43

  
44
        self._properties = {SymbolProp(None, 'Name Tag', 'Tag No', Expression='self.EvaluatedName'): None}
45
        #self._properties = {}
44
        #self._properties = {SymbolProp(None, 'Name Tag', 'Tag No', Expression='self.EvaluatedName'): None}
45
        self._properties = {}
46 46
        self._pack_type = pack_type
47 47

  
48 48
        self.setFlags(QGraphicsItem.ItemIsSelectable | QGraphicsItem.ItemIsFocusable)

내보내기 Unified diff

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