Changeset 1316


Ignore:
Timestamp:
Dec 22, 2010, 3:21:46 PM (6 years ago)
Author:
t.w.abma@…
Message:
  • trigger for restart (committed too fast between to commits?)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/dbnp/importer/ImporterService.groovy

    r1315 r1316  
    1919import org.apache.poi.xssf.usermodel.XSSFCell
    2020
    21 
    2221import dbnp.studycapturing.TemplateFieldType
    2322import dbnp.studycapturing.Template
     
    4645     * @return header representation as a MappingColumn hashmap
    4746     */
    48     def getHeader(Workbook wb, int sheetindex, int headerrow, int datamatrix_start, theEntity=null){
    49 
    50         def sheet = wb.getSheetAt(sheetindex)   
    51         def sheetrow = sheet.getRow(datamatrix_start)
    52         //def header = []
    53         def header = [:]
    54     def df = new DataFormatter()
    55         def property = new String()
    56 
    57         //for (Cell c: sheet.getRow(datamatrix_start)) {
    58 
    59         (0..sheetrow.getLastCellNum() -1 ).each { columnindex ->
     47    def getHeader(Workbook wb, int sheetindex, int headerrow, int datamatrix_start, theEntity=null) {
     48        def sheet = wb.getSheetAt(sheetindex)
     49        def sheetrow = sheet.getRow(datamatrix_start)
     50        //def header = []
     51        def header = [:]
     52        def df = new DataFormatter()
     53        def property = new String()
     54
     55        //for (Cell c: sheet.getRow(datamatrix_start)) {
     56
     57        (0..sheetrow.getLastCellNum() -1 ).each { columnindex ->
    6058
    6159            //def index =   c.getColumnIndex()
Note: See TracChangeset for help on using the changeset viewer.