Ignore:
Timestamp:
Nov 5, 2010, 11:55:58 AM (10 years ago)
Author:
s.h.sikkema@…
Message:

Added xlsx import functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/taglib/dbnp/importer/ImporterTagLib.groovy

    r1058 r1087  
    1616package dbnp.importer
    1717import dbnp.studycapturing.Template
    18 import dbnp.studycapturing.TemplateField
    1918import dbnp.studycapturing.TemplateFieldType
    20 import org.apache.poi.hssf.usermodel.HSSFCell
     19import org.apache.poi.ss.usermodel.Cell
    2120import org.apache.poi.ss.usermodel.DataFormatter
    2221
     
    208207
    209208    /**
    210     * @param cell HSSFCell variable
     209    * @param cell Cell variable
    211210    * @return good representation of variable (instead of toString())
    212211    */
     
    216215
    217216        switch (cell.getCellType()) {
    218             case HSSFCell.CELL_TYPE_STRING      :   out << cell.getStringCellValue()
     217            case Cell.CELL_TYPE_STRING  :   out << cell.getStringCellValue()
    219218                                                    break
    220             case HSSFCell.CELL_TYPE_NUMERIC     :   out << df.formatCellValue(cell)
     219            case Cell.CELL_TYPE_NUMERIC :   out << df.formatCellValue(cell)
    221220                                                    break
    222221        }
Note: See TracChangeset for help on using the changeset viewer.