프로젝트

일반

사용자정보

개정판 b76684bd

IDb76684bd96ec78f6807474cc7da50240113c3430
상위 8047a380
하위 a2cbb1b1

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

issue #1463: on going test

Change-Id: I78d81454031bf6afb298a632e9033ecc5cf5f186

차이점 보기:

DTI_PID/DTI_PID/Commands/SetStreamNoCommand.py
32 32
        super(SetStreamCommand, self).__init__(None)
33 33

  
34 34
        self._symbols = []
35
        self._instrument = []
35 36
        self._lines = []
36 37

  
37 38
    def find_item(self, scene, uid):
......
229 230

  
230 231
            self.clear_stream_no(self._symbols + self._lines)
231 232

  
233
            # set piping
232 234
            rows = app_doc_data.get_stream_from_to(drawing_uid = app_doc_data.activeDrawing.UID)
233 235
            stream_nos = []
234 236

  
......
246 248
                stream_nos.append(stream_no)
247 249

  
248 250
            for stream_no in stream_nos:
249
                self.set_stream_no(stream_no, include_signal=False)            
251
                self.set_stream_no(stream_no, include_signal=False)
252
            # up to here
253

  
254
            # set instrument
255
            self._instrument = [_item for _item in self._symbols if _item.iType == 21] # Off-Line
256
            for inst in self._instrument:
257
                line_no = inst.owner
258
                if line_no and type(line_no) is QEngineeringLineNoTextItem:
259
                    matches = [run for run in line_no.runs if inst in run.items]
260
                    if matches:
261
                        run = matches[0]
262
                        index = line_no.runs.index(run)
263
                        if index > 0 and type(run.items[0]) is QEngineeringLineItem and run.items[0].connectors[0].connectedItem and \
264
                                type(run.items[0].connectors[0].connectedItem) is QEngineeringLineItem:
265
                            stream_no = self.check_stream_no_attribute(run.items[0].connectors[0].connectedItem)
266
                            if stream_no:
267
                                self.set_stream_no_item(inst, stream_no)
268
                else:
269
                    # on going
270
                    pass
271
            # up to here
250 272
            
251 273
        except Exception as ex:
252 274
            message = f"error occurred({repr(ex)}) in {sys.exc_info()[-1].tb_frame.f_code.co_filename}:" \
DTI_PID/DTI_PID/LineListDialog.py
296 296
                row_datas.extend(data)
297 297

  
298 298
            for row_data in row_datas:
299
                if issubclass(type(row_data[1]), SymbolSvgItem) and row_data[1].iType == 21: # Off-Line
300
                    continue
299 301
                stream_no = row_data[1].stream_no
300 302
                if not stream_no or stream_no == 'None':
301 303
                    continue
......
490 492
                            start = [run.items[0]]
491 493
                            end = [run.items[-1]] if run.items[0] is not run.items[-1] else []
492 494
                            
493
                            if type(start[0]) is QEngineeringOPCItem or type(start[0]) is QEngineeringEquipmentItem:
495
                            if type(start[0]) is QEngineeringOPCItem or type(start[0]) is QEngineeringNozzleItem:
494 496
                                start_line_runs.insert(0, run)
495 497
                            else:
496 498
                                start_line_runs.append(run)

내보내기 Unified diff

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