개정판 1166d632
issue #1050: Stream No 삭제 시 해당 Stream No에 해당하는 데이터도 삭제
Change-Id: I84940060ddcad72b43fc85ba63f55278a3814e32
HYTOS/HYTOS/HMBTable.py | ||
---|---|---|
27 | 27 |
self._uid = None |
28 | 28 |
self._components_uid = None |
29 | 29 |
self._stream_no = None |
30 |
|
|
31 |
self._stream_no_text = None |
|
32 |
self._phase_type = None |
|
33 |
self._flowrate_mass = None |
|
34 |
self._flowrate_volume = None |
|
35 |
self._density = None |
|
36 |
self._viscosity = None |
|
37 |
self._temperature = None |
|
38 |
self._molecular_weight = None |
|
39 |
self._specific_heat_ratio = None |
|
40 |
self._compress_factor = None |
|
41 |
self._nominal_pipe_size = None |
|
42 |
self._inside_pipe_size = None |
|
43 |
self._schedule_no = None |
|
44 |
self._straight_length = None |
|
45 |
self._equivalent_length = None |
|
46 |
self._equivalent_length_input = None |
|
47 |
self._fitting_length = None |
|
48 |
self._fitting_K = None |
|
49 |
self._equivalent_length_cal = None |
|
50 |
self._roughness = None |
|
51 |
self._limitation_velocity = None |
|
52 |
self._limitation_pressure_drop = None |
|
53 |
self._velocity = None |
|
54 |
self._reynolds = None |
|
55 |
self._friction_factor = None |
|
56 |
self._pressure_drop = None |
|
57 |
self._pressure_drop_friction = None |
|
58 |
self._pressure_drop_static = None |
|
59 |
self._pressure_pipe_end_point = None |
|
60 |
self._power = None |
|
61 |
self._vapor_flowrate_mass = None |
|
62 |
self._vapor_density = None |
|
63 |
self._vapor_viscosity = None |
|
64 |
self._vapor_pressure = None |
|
65 |
self._vapor_temperature = None |
|
66 |
self._vapor_molecular_weight = None |
|
67 |
self._vapor_compress_factor = None |
|
68 |
self._liquid_flowrate_mass = None |
|
69 |
self._liquid_density = None |
|
70 |
self._liquid_viscosity = None |
|
71 |
self.isDeleted = False |
|
72 |
self._input_flowrate_type = None # save flowrate type by user input |
|
73 |
|
|
74 |
def reset_data(self): |
|
75 |
""" reset data except uid, components_uid, stream_no """ |
|
30 | 76 |
self._stream_no_text = None |
31 | 77 |
self._phase_type = None |
32 | 78 |
self._flowrate_mass = None |
... | ... | |
580 | 626 |
if hmbs is not None: |
581 | 627 |
for hmb in hmbs: |
582 | 628 |
if str(hmb.stream_no) == str(stream_no): |
629 |
hmb.reset_data() |
|
583 | 630 |
hmb.isDeleted = True |
584 | 631 |
break |
585 | 632 |
|
내보내기 Unified diff