개정판 8c9f96ef
issue #000: hmb
Change-Id: Ieef0aad5cea2b57aaf7f421ee5b7b01b6ea41db2
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
456 | 456 |
if matches: |
457 | 457 |
return self.attrs[matches[0]] |
458 | 458 |
|
459 |
return None
|
|
459 |
return ''
|
|
460 | 460 |
|
461 | 461 |
@property |
462 | 462 |
def case(self): |
... | ... | |
464 | 464 |
if matches: |
465 | 465 |
return self.attrs[matches[0]] |
466 | 466 |
|
467 |
return None
|
|
467 |
return ''
|
|
468 | 468 |
|
469 | 469 |
''' |
470 | 470 |
@stream_no.setter |
... | ... | |
625 | 625 |
|
626 | 626 |
"""calculate attribute value for HMB type""" |
627 | 627 |
matches = [_attr for _attr in _attrs if _attr.Attribute.upper() == 'STREAM NO'] |
628 |
matches_case = [_attr for _attr in _attrs if _attr.Attribute.upper() == 'CASE'] |
|
628 | 629 |
hmb_attrs = [_attr for _attr in targetAttrs if _attr.AttributeType == 'HMB'] |
629 | 630 |
hmb_datas = app_doc_data.get_hmb_data(None) if hmb_attrs else None |
630 | 631 |
if hmb_datas and hmb_attrs and matches and _attrs[matches[0]] and _attrs[matches[0]] != 'None': |
... | ... | |
637 | 638 |
matches = [hmb_data for hmb_data in hmb_datas if hmb_data.stream_no == stream_no] |
638 | 639 |
if matches: |
639 | 640 |
data = {} |
641 |
if matches_case: |
|
642 |
data['Case'] = _attrs[matches_case[0]] |
|
640 | 643 |
hmb_data = matches[0] |
641 | 644 |
data = QItemDataExportDialog.make_hmb_data(data, hmb_data, names) |
642 | 645 |
for _attr in hmb_attrs: |
내보내기 Unified diff