개정판 c2c36314
Loc조정
DTI_PID/DTI_PID/DTI_PID_UI.py | ||
---|---|---|
2 | 2 |
|
3 | 3 |
# Form implementation generated from reading ui file 'DTI__PID.ui' |
4 | 4 |
# |
5 |
# Created by: PyQt5 UI code generator 5.6
|
|
5 |
# Created by: PyQt5 UI code generator 5.10.1
|
|
6 | 6 |
# |
7 | 7 |
# WARNING! All changes made in this file will be lost! |
8 | 8 |
|
... | ... | |
53 | 53 |
self.dockWidgetContents = QtWidgets.QWidget() |
54 | 54 |
self.dockWidgetContents.setObjectName("dockWidgetContents") |
55 | 55 |
self.gridLayout_2 = QtWidgets.QGridLayout(self.dockWidgetContents) |
56 |
self.gridLayout_2.setContentsMargins(0, 0, 0, 0) |
|
57 | 56 |
self.gridLayout_2.setObjectName("gridLayout_2") |
58 | 57 |
self.tabWidget = QtWidgets.QTabWidget(self.dockWidgetContents) |
59 | 58 |
self.tabWidget.setObjectName("tabWidget") |
60 | 59 |
self.Symbol = QtWidgets.QWidget() |
61 | 60 |
self.Symbol.setObjectName("Symbol") |
62 | 61 |
self.gridLayout_3 = QtWidgets.QGridLayout(self.Symbol) |
63 |
self.gridLayout_3.setContentsMargins(0, 0, 0, 0) |
|
64 | 62 |
self.gridLayout_3.setObjectName("gridLayout_3") |
65 | 63 |
self.symbolTabVerticalLayout = QtWidgets.QVBoxLayout() |
66 | 64 |
self.symbolTabVerticalLayout.setObjectName("symbolTabVerticalLayout") |
... | ... | |
79 | 77 |
self.dockWidgetContents_2 = QtWidgets.QWidget() |
80 | 78 |
self.dockWidgetContents_2.setObjectName("dockWidgetContents_2") |
81 | 79 |
self.gridLayout_4 = QtWidgets.QGridLayout(self.dockWidgetContents_2) |
82 |
self.gridLayout_4.setContentsMargins(0, 0, 0, 0) |
|
83 | 80 |
self.gridLayout_4.setObjectName("gridLayout_4") |
84 | 81 |
self.symbolExplorerVerticalLayout = QtWidgets.QVBoxLayout() |
85 | 82 |
self.symbolExplorerVerticalLayout.setObjectName("symbolExplorerVerticalLayout") |
... | ... | |
289 | 286 |
self.actionInitialize.setText(_translate("MainWindow", "초기화")) |
290 | 287 |
self.actionImage_Drawing.setText(_translate("MainWindow", "이미지 도면")) |
291 | 288 |
self.actionZoom.setText(_translate("MainWindow", "Zoom")) |
292 |
self.actionFitWindow.setText(_translate("MainWindow", "FitWindow")) |
|
289 |
self.actionFitWindow.setText(_translate("MainWindow", "Fit Window"))
|
|
293 | 290 |
|
294 | 291 |
|
295 | 292 |
if __name__ == "__main__": |
DTI_PID/DTI_PID/ProjectDialog.py | ||
---|---|---|
22 | 22 |
self.initComboBox() |
23 | 23 |
self.ui.toolButton.clicked.connect(self.addProjectClick) |
24 | 24 |
self.setWindowTitle('프로젝트') |
25 |
self.EventFunc() |
|
26 |
|
|
27 |
def EventFunc(self): |
|
28 |
self.ui.comboBox.editTextChanged.connect(self.test) |
|
25 | 29 |
|
26 | 30 |
def initComboBox(self): |
27 | 31 |
from AppDocData import AppDocData |
... | ... | |
37 | 41 |
self.exec_() |
38 | 42 |
return self.selectedProject |
39 | 43 |
|
44 |
def test(self): |
|
45 |
QMessageBox.show("test") |
|
46 |
|
|
40 | 47 |
def accept(self): |
41 | 48 |
self.selectedProject = self.ui.comboBox.currentData() |
42 | 49 |
AppDocData.instance().updateProjectUpdatedDate(self.selectedProject.getId()) |
DTI_PID/DTI_PID/UI/DTI__PID.ui | ||
---|---|---|
436 | 436 |
</action> |
437 | 437 |
<action name="actionFitWindow"> |
438 | 438 |
<property name="text"> |
439 |
<string>FitWindow</string> |
|
439 |
<string>Fit Window</string>
|
|
440 | 440 |
</property> |
441 | 441 |
</action> |
442 | 442 |
</widget> |
DTI_PID/SPPIDConverter/Main.vb | ||
---|---|---|
15 | 15 |
Dim _Attribute_DB As DataTable = New DataTable() |
16 | 16 |
Dim _PIDSymbol_DB As DataTable = New DataTable() |
17 | 17 |
Dim _Placement As New Placement |
18 |
Dim _DWG_X = 0.829 '0.695 '1 ' |
|
19 |
Dim _DWG_Y = 0.5985 '0.585 '0.8 ' |
|
20 |
|
|
18 |
Dim _DWG_X = 0.89 '0.695 '1 ' |
|
19 |
Dim _DWG_Y = 0.61 '0.585 '0.8 ' |
|
20 |
'Dim _DWG_X = 0.842 '0.695 '1 ' |
|
21 |
'Dim _DWG_Y = 0.614 '0.585 '0.8 ' |
|
21 | 22 |
Dim _IMG_X = 0 |
22 | 23 |
Dim _IMG_Y = 0 |
23 | 24 |
|
... | ... | |
485 | 486 |
Dim sUid As String |
486 | 487 |
Dim sStartpoint As String |
487 | 488 |
Dim sEndpoint As String |
489 |
Dim sType As String |
|
488 | 490 |
oEleObj = oLine.Element(_XML_LINE_UID) |
489 | 491 |
sUid = oEleObj.Value |
490 | 492 |
oEleObj = oLine.Element(_XML_LINE_STARTPOINT) |
491 | 493 |
sStartpoint = oEleObj.Value |
492 | 494 |
oEleObj = oLine.Element(_XML_LINE_ENDPOINT) |
493 | 495 |
sEndpoint = oEleObj.Value |
494 |
|
|
496 |
oEleObj = oLine.Element(_XML_LINE_TYPE) |
|
497 |
sType = oEleObj.Value |
|
495 | 498 |
oAddrow(_XML_LINE_UID) = sUid |
496 | 499 |
oAddrow(_XML_LINE_STARTPOINT) = sStartpoint |
497 | 500 |
oAddrow(_XML_LINE_ENDPOINT) = sEndpoint |
498 | 501 |
oAddrow(_XML_LINE_SYSTEMPATH) = GetDataFromMappingDB(_XML_CATEGORY_LINE, _DB_COLUMN_MAPPING_SPPID_SYSTEMPATH) |
499 | 502 |
oAddrow(_XML_LINE_DRAWING) = "FALSE" |
503 |
oAddrow(_XML_LINE_TYPE) = sType |
|
500 | 504 |
oLine_Dt.Rows.Add(oAddrow) |
501 | 505 |
Catch ex As Exception |
502 | 506 |
|
... | ... | |
1347 | 1351 |
Dim dStart_y As Double = 0.0 |
1348 | 1352 |
Dim dEnd_x As Double = 0.0 |
1349 | 1353 |
Dim dEnd_y As Double = 0.0 |
1354 |
|
|
1355 |
Dim sType As String = oPipeRow(0)(_XML_LINE_TYPE).ToString() |
|
1356 |
|
|
1350 | 1357 |
Dim sSystempath As String = "\Piping\Routing\Process Lines\Primary Piping.sym" ' oPipeRow(0)(_XML_LINE_SYSTEMPATH).ToString() |
1358 |
If sType.ToUpper() = "ELECTRIC" Then |
|
1359 |
sSystempath = "\Instrumentation\Signal Line\Electric.sym" |
|
1360 |
ElseIf sType.ToUpper() = "CONNECT TO PROCESS" Then |
|
1361 |
sSystempath = "\Instrumentation\Signal Line\Connect to Process.sym" |
|
1362 |
Else |
|
1363 |
End If |
|
1351 | 1364 |
Dim sStartpoint As String = oPipeRow(0)(_XML_LINE_STARTPOINT).ToString() |
1352 | 1365 |
Dim sEndpoint As String = oPipeRow(0)(_XML_LINE_ENDPOINT).ToString() |
1353 | 1366 |
Dim sPipeUid As String = oPipeRow(0)(_XML_LINE_UID).ToString() |
내보내기 Unified diff