프로젝트

일반

사용자정보

개정판 53502dcc

ID53502dcc2acd7e4a30bb13c7e7f1a6f6bb557215
상위 a745f653
하위 280033a0

송근호이(가) 약 3년 전에 추가함

issue #000 Export To PAP 수정

Change-Id: Iba9ae621ffc5444177266bd1b77da461e445f5c6

차이점 보기:

HYTOS/HYTOS/AppDocData.py
46 46
        self.type = type
47 47
        self.dataSource = dataSource
48 48
        self.attributes = []
49

  
49 50
    def printf(self):
50 51
        print(f"""itemNo = {self.itemNo}, type ={self.type}, dataSource = {self.dataSource}""")
51 52
        for attr in self.attributes:
52 53
            print(f"""{attr.table}.{attr.column} : {attr.value} """)
53 54
        print(f"""***********************************************************************""")
54 55

  
56
    def json(self):
57
        values = [con.json() for con in self.attributes]
58
        dics = {
59
                 'itemNo': self.itemNo,
60
                 'type': self.type,
61
                 'dataSource': self.dataSource,
62
                 'values': values
63
               }
64
        return dics
65

  
55 66
class Inst_Attribute:
56 67
    def __init__(self, name, column, value):
57 68
        self.table = name
......
60 71
            value = ''
61 72
        self.value = value
62 73

  
74
    def json(self):
75
        return {'table': self.table, 'column': self.column, 'value': self.value}
76

  
63 77
class PAPUploadInformation:
64 78
    def __init__(self,param_project_uid = '',
65 79
                      param_projectno = '',
......
134 148
        self.needReOpening = None
135 149
        self.configTable = None
136 150
        self.API_HOST = "https://papwebapi.azurewebsites.net"
151
        #self.API_HOST = "http://localhost:53443/"
152

  
137 153

  
138 154
    def clearItemList(self, trim):
139 155
        '''

내보내기 Unified diff

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