Ignore:
Timestamp:
Mar 16, 2010, 3:36:14 PM (12 years ago)
Author:
tabma
Message:
  • Excel file is parsed, per row a record is created containing entities with the values (based on the MappingColumn?)
  • result is an array containing records
File:
1 edited

Legend:

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

    r268 r273  
    2929import dbnp.studycapturing.Sample
    3030import dbnp.studycapturing.TemplateFieldType
     31import dbnp.studycapturing.TemplateField
    3132
    3233class ImporterController {
     
    143144        columnproperties.each { cp ->
    144145                def temp = cp.split(":")
    145                 session.header[temp[0].toInteger()].property = temp[1].toInteger()
     146                session.header[temp[0].toInteger()].property = TemplateField.get(temp[1].toInteger())
    146147        }
    147148       
Note: See TracChangeset for help on using the changeset viewer.