Ignore:
Timestamp:
Feb 3, 2010, 3:50:14 PM (9 years ago)
Author:
tabma
Message:
  • created taglibrary for importer and first implementation detection of (cell) datatypes
File:
1 edited

Legend:

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

    r162 r169  
    2020
    2121package dbnp.importer
     22import org.apache.poi.hssf.usermodel.HSSFCell
     23import org.apache.poi.ss.usermodel.DataFormatter
    2224
    2325class ImporterController {
     
    3840        def wb = ImporterService.getWorkbook(new FileInputStream(tempfile))
    3941       
    40         def header = ImporterService.getHeader(wb)
    41         render (view:"preview", model:[header:header])
     42        def header = ImporterService.getHeader(wb, 0)
     43        def datamatrix= ImporterService.getDatamatrix(wb, 0, 5)
     44
     45        render (view:"step1", model:[header:header, datamatrix:datamatrix])
     46
    4247    }
    4348}
Note: See TracChangeset for help on using the changeset viewer.