개정판 21739b58
issue #1060: 저장시 Output Loop 창의 계산 결과도 함계 저장한다(revised)
Change-Id: I98d1e4e8c58547ba0bca4a546829c531d2e57666
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
2106 | 2106 |
if len(attr) > 0: |
2107 | 2107 |
"""store calculation output for pump""" |
2108 | 2108 |
output = Output() |
2109 |
output.components_uid = str(item.uid) |
|
2109 |
output.components_uid = str(item.parent.uid)
|
|
2110 | 2110 |
output.suctp = round(attr['Suct.P'], 3) |
2111 | 2111 |
output.discp = round(attr['Disc.P'], 3) |
2112 | 2112 |
output.diffp = round(attr['Diff.P'], 3) |
... | ... | |
2146 | 2146 |
if len(attr) > 0: |
2147 | 2147 |
"""store calculation output for compressor""" |
2148 | 2148 |
output = Output() |
2149 |
output.components_uid = str(item.uid) |
|
2149 |
output.components_uid = str(item.parent.uid)
|
|
2150 | 2150 |
output.suctp = round(attr['Suct.P'], 3) |
2151 | 2151 |
output.discp = round(attr['Disc.P'], 3) |
2152 | 2152 |
output.diffp = round(attr['Diff.P'], 3) |
... | ... | |
2178 | 2178 |
if len(attr) > 0: |
2179 | 2179 |
"""store calculation output for control valve""" |
2180 | 2180 |
output = Output() |
2181 |
output.components_uid = str(item.uid) |
|
2181 |
output.components_uid = str(item.parent.uid)
|
|
2182 | 2182 |
output.suctp = round(attr['Suct.P'], 3) |
2183 | 2183 |
output.discp = round(attr['Disc.P'], 3) |
2184 | 2184 |
output.diffp = round(attr['Diff.P'], 3) |
내보내기 Unified diff