Changeset 1122 for trunk/grails-app/services
- Timestamp:
- Nov 11, 2010, 2:53:12 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/dbnp/importer/ImporterService.groovy
r1121 r1122 150 150 def sheet = wb.getSheetAt(sheetindex) 151 151 def rows = [] 152 def df = new DataFormatter() 153 154 // walk through all rows 155 (count <= sheet.getLastRowNum()) ? 152 def df = new DataFormatter() 153 154 count = (count < sheet.getLastRowNum()) ? count : sheet.getLastRowNum() 155 156 // walk through all rows 156 157 ((datamatrix_start+sheet.getFirstRowNum())..count).each { rowindex -> 157 158 def row = [] … … 167 168 //row.add(df.formatCellValue(c)) 168 169 row.add(c) 169 //if (c.getCellType() == c.CELL_TYPE_STRING) println "STR"+c.getStringCellValue()170 //if (c.getCellType() == c.CELL_TYPE_NUMERIC) println "INT" +c.getNumericCellValue()171 170 } 172 //row.add(df.formatCellValue(c))173 171 rows.add(row) 174 } : 0172 } 175 173 176 174 return rows … … 232 230 // the record hashcode is later on used to put the failed data back 233 231 // in the data matrix 234 if (failed.importcells .size()>0) failedcells.put(record.hashCode(), failed)232 if (failed.importcells?.size()>0) failedcells.put(record.hashCode(), failed) 235 233 } 236 234 … … 442 440 } 443 441 444 445 442 //println "temateplfedielfdtype=" + mc.templatefieldtype 446 443 // Are we trying to map an ontology term which is empty? Then it is a failed cell
Note: See TracChangeset
for help on using the changeset viewer.