- Timestamp:
- Feb 26, 2010, 12:26:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy
r203 r215 22 22 import org.apache.poi.hssf.usermodel.HSSFCell 23 23 import org.apache.poi.ss.usermodel.DataFormatter 24 import dbnp.studycapturing.Template 24 25 25 26 class ImporterController { … … 29 30 * Default page 30 31 **/ 31 def index = { } 32 def index = { 33 [templates:Template.list()] 34 } 32 35 33 36 /** … … 47 50 48 51 session.header = header 52 session.importtemplate_id = params.template_id 49 53 50 54 render (view:"step1", model:[header:header, datamatrix:datamatrix]) … … 52 56 } 53 57 58 /** 59 * User has assigned all entities to the columns and continues to the next step (assigning properties to columns) 60 * 61 * @param entity list of entities 62 * @return properties page 63 */ 54 64 def savepreview = { 55 65 def entities = request.getParameterValues("entity") 56 66 57 render(view:"step2", model:[entities:entities, header:session.header]) 67 // currently only one template is used for all entities 68 // TODO: show template fields per entity 69 70 def templates = Template.get(session.importtemplate_id) 71 72 render(view:"step2", model:[entities:entities, header:session.header, templates:templates]) 58 73 } 59 74 }
Note: See TracChangeset
for help on using the changeset viewer.