프로젝트

일반

사용자정보

개정판 7d5bad54

ID7d5bad54f2ca47a8fc08fd57ac43ff28bf5c99f8
상위 80a83629
하위 eac85e7c

송근호이(가) 2년 이상 전에 추가함

issue #000 Export_To_PAP.py 수정

차이점 보기:

HYTOS/HYTOS/Export_To_PAP.py
396 396
        inst_Items = []
397 397
        if self.ui.tableView_upload_item_list.model().rowCount() > 0:
398 398
            app_doc_data = AppDocData.instance()
399
            revStatus = ""
400
            createDate = ""
401
            revStatusConfig = app_doc_data.getConfigs('Sheet', 'RevStatus')
402
            if revStatusConfig:
403
                revStatus = revStatusConfig[0].value
404
            createDateConfig = app_doc_data.getConfigs('Sheet', 'Date')
405
            if createDateConfig:
406
                createDate = createDateConfig[0].value
407

  
399 408
            items = [item for item in App.mainWnd().graphicsView.scene.items() if type(item) is SymbolSvgItem]
400 409

  
401 410
            for row in range(self.ui.tableView_upload_item_list.model().rowCount()):
......
422 431
                            inlet_streamLine = in_connectors[0].parent
423 432

  
424 433
                    if symbolItem.type.upper() == "Valve".upper():
434
                        inst_Item.attributes.append(Inst_Attribute(table="Inst_CV", column="RevNo", value=revStatus))
435
                        inst_Item.attributes.append(Inst_Attribute(table="Inst_CV", column="CreateDate", value=createDate))
425 436
                        if inlet_streamLine:
426 437
                            suctp = ""
427 438
                            discp = ""
......
522 533
                                    inst_Item.attributes.append(Inst_Attribute(table = "Inst_CV", column = "DensityMin2", value = liquid_density))
523 534
                                    inst_Item.attributes.append(Inst_Attribute(table = "Inst_CV", column = "ViscosityMin2", value = liquid_viscosity))
524 535
                    elif symbolItem.type == "Compressor":
536
                        inst_Item.attributes.append(Inst_Attribute(table="eq_common", column="RevNo", value=revStatus))
537
                        inst_Item.attributes.append(Inst_Attribute(table="eq_common", column="CreateDate", value=createDate))
525 538
                        inletPressure = ""
526 539
                        dischargePress = ""
527 540
                        diffPressure = ""
......
555 568
                                inst_Item.attributes.append(Inst_Attribute(table = "eq_compressor", column = "InletCompressibility", value =  compress_factor))
556 569
                        inst_Item.attributes.append(Inst_Attribute( table = "eq_compressor", column = "OperatingCase", value = datacase_data))
557 570
                    elif symbolItem.type == "Pump":
571
                        inst_Item.attributes.append(Inst_Attribute(table="eq_common", column="RevNo", value=revStatus))
558 572
                        suctionPressRated = ""
559 573
                        dischargePressRated = ""
560 574
                        differentialPressRated = ""

내보내기 Unified diff

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