Ignore:
Timestamp:
Jan 21, 2011, 7:37:02 PM (10 years ago)
Author:
work@…
Message:
  • Resolved part of improvement #225
  • refactored the template model out of GSCF into the GDT (Grails Domain Templates) plugin version 0.0.1
  • still work needs to be done (move template editor into gdt, etcetera)
  • fix template owner
  • some methods are missing from Template, but most of it works
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/exporter/ExporterController.groovy

    r1222 r1426  
    210210        println "----- SUBJECT -----"
    211211        for (u in 0..sample.parentSubject.giveFields().unique().size()-1){
    212             TemplateField tf = sample.parentSubject.giveFields().getAt(u)
     212            nl.grails.plugins.gdt.TemplateField tf = sample.parentSubject.giveFields().getAt(u)
    213213            println tf.name
    214214            row.createCell((short)9+u).setCellValue(tf.name)
     
    221221        println "----- SAMPLING EVENT -----"
    222222        for (t in 0..sample.parentEvent.giveFields().unique().size()-1){
    223             TemplateField tf =sample.parentEvent.giveFields().getAt(t)
     223            nl.grails.plugins.gdt.TemplateField tf =sample.parentEvent.giveFields().getAt(t)
    224224            println tf.name
    225225            row.createCell((short)9+sample.parentSubject.giveFields().unique().size()+t).setCellValue("samplingEvent-"+tf.name)
     
    237237        println "----- SAMPLE -----"
    238238        for (v in 0..sample.giveFields().unique().size()-1){
    239             TemplateField tf =sample.giveFields().getAt(v)
     239            nl.grails.plugins.gdt.TemplateField tf =sample.giveFields().getAt(v)
    240240            println tf.name
    241241            row.createCell((short)9+sample.parentSubject.giveFields().unique().size()+v+sample.parentEvent.giveFields().unique().size()).setCellValue("sample-"+tf.name)
Note: See TracChangeset for help on using the changeset viewer.