프로젝트

일반

사용자정보

개정판 f59fbea0

IDf59fbea077f8802a8bcbf23dedd6e100df53f4e2
상위 9b3491ae
하위 866112c6

함의성이(가) 6년 이상 전에 추가함

issue #665:

차이점 보기:

DTI_PID/DTI_PID/ItemDataExportDialog.py
115 115
            
116 116
            lineTable = self.ui.tableWidgetLineDataList
117 117
            equipTable = self.ui.tableWidgetEquipmentDataList
118
            valveTable = self.ui.tableWidgetValveDataList
118 119
            instTable = self.ui.tableWidgetInstrumentDataList
119 120
            noteTable = self.ui.tableWidgetNoteDataList
120 121

  
......
126 127

  
127 128
            self.qtable_to_sheet(lineTable, lineSheet)
128 129
            self.qtable_to_sheet(equipTable, equipSheet)
129
            self.qtable_to_sheet(self.ui.tableWidgetValveDataList, valve_sheet)
130
            self.qtable_to_sheet(valveTable, valve_sheet)
130 131
            self.qtable_to_sheet(instTable, instSheet)
131 132
            self.qtable_to_sheet(noteTable, noteSheet)
132 133

  
......
234 235
            return
235 236
        result = self.ui.comboBoxDoc.findText(docData.imgName)
236 237
        if result == -1:
237
            self.ui.comboBoxDoc.addItem(docData.imgName)
238
        
238
            self.ui.comboBoxDoc.addItem(docData.imgName)    
239 239
        
240 240
    '''
241 241
        @brief      init table widget
......
291 291
            
292 292
            docData.saveConfigs(configs)
293 293

  
294
            '''
294 295
            # 기존의 저장한 export order로 header 값을 정함
295 296
            lineOrder = docData.getConfigs('LINE_DATA_LIST_EXPORT_ORDER', '1')[0].value.split(self.delimiter)
296 297
            equipOrder = docData.getConfigs('EQUIPMENT_DATA_LIST_EXPORT_ORDER', '2')[0].value.split(self.delimiter)
297 298
            valveOrder = docData.getConfigs('VALVE_DATA_LIST_EXPORT_ORDER', '3')[0].value.split(self.delimiter)
298 299
            instOrder = docData.getConfigs('INSTRUMENT_DATA_LIST_EXPORT_ORDER', '4')[0].value.split(self.delimiter)
299 300
            noteOrder = docData.getConfigs('NOTE_DATA_LIST_EXPORT_ORDER', '5')[0].value.split(self.delimiter)
301
            '''
300 302

  
301 303
        except Exception as ex:
302 304
            print('error occured({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename, sys.exc_info()[-1].tb_lineno))
......
314 316
        noteTable = self.ui.tableWidgetNoteDataList
315 317
        
316 318
        # set table column count
317
        noteTable.setColumnCount(4)
318
        valveTable.setColumnCount(3)
319
        lineTable.setColumnCount(len(self.lineColumnListAll))
320
        equipTable.setColumnCount(len(self.equipColumnListAll))
321
        valveTable.setColumnCount(len(self.valveColumnListAll))
322
        instTable.setColumnCount(len(self.instColumnListAll))
323
        noteTable.setColumnCount(len(self.noteColumnListAll))
324
        
319 325

  
320 326
        # Table Header Label 설정
321
        lineTable.setHorizontalHeaderLabels(lineOrder)
322
        equipTable.setHorizontalHeaderLabels(equipOrder)
323
        valveTable.setHorizontalHeaderLabels(valveOrder)
324
        instTable.setHorizontalHeaderLabels(instOrder)
325
        noteTable.setHorizontalHeaderLabels(noteOrder)
327
        lineTable.setHorizontalHeaderLabels(self.lineColumnListAll)
328
        equipTable.setHorizontalHeaderLabels(self.equipColumnListAll)
329
        valveTable.setHorizontalHeaderLabels(self.valveColumnListAll)
330
        instTable.setHorizontalHeaderLabels(self.instColumnListAll)
331
        noteTable.setHorizontalHeaderLabels(self.noteColumnListAll)
326 332

  
327 333
        # Table Header 크기 설정
328 334
        lineTable.horizontalHeaderItem(1).setSizeHint(QSize(25, 25))
......
340 346

  
341 347
        '''add by sung'''
342 348
        #lineTable.horizontalHeader().moveSection(3, 1)
343
        lineTable.horizontalHeader().setSectionsMovable(True)
349
        #lineTable.horizontalHeader().setSectionsMovable(True)
344 350

  
345 351
        # talbe Data 설정
346 352
        self.settingLineData()

내보내기 Unified diff

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