Changeset 1315

Show
Ignore:
Timestamp:
22-12-10 15:16:22 (3 years ago)
Author:
t.w.abma@…
Message:

- replaced HSSFCell by XSSFCell-object (returned when getting a cell from a row), change in POI?

Location:
trunk/grails-app
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1313 r1315  
    370370                            flow.importer_datamatrix_start, 
    371371                            5) 
    372  
    373372               
    374373                flow.importer_templates = Template.get(flow.importer_template_id) 
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r1311 r1315  
    1717package dbnp.importer 
    1818import org.apache.poi.ss.usermodel.* 
    19 import org.apache.poi.hssf.usermodel.HSSFCell 
     19import org.apache.poi.xssf.usermodel.XSSFCell 
     20 
    2021 
    2122import dbnp.studycapturing.TemplateFieldType 
     
    148149     */ 
    149150 
    150     HSSFCell[][] getDatamatrix(Workbook wb, header, int sheetindex, int datamatrix_start, int count) { 
     151    XSSFCell[][] getDatamatrix(Workbook wb, header, int sheetindex, int datamatrix_start, int count) { 
    151152        def sheet = wb.getSheetAt(sheetindex) 
    152153        def rows  = [] 
    153154        def df = new DataFormatter() 
    154155 
    155         count = (count < sheet.getLastRowNum()) ? count : sheet.getLastRowNum() 
     156    count = (count < sheet.getLastRowNum()) ? count : sheet.getLastRowNum() 
    156157 
    157158        // walk through all rows         
     
    169170            row.add(c) 
    170171            } 
    171             rows.add(row) 
     172      
     173            rows.add(row)      
    172174        } 
    173175