Changeset 1851


Ignore:
Timestamp:
May 18, 2011, 6:48:49 PM (6 years ago)
Author:
kees.vanbochove@…
Message:

added sample template to generated sample name to make it easier to discern samples in modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/StudyWizardController.groovy

    r1779 r1851  
    17371737                                                        def samplingEventName = ucwords(samplingEvent.template.name)
    17381738                                                        def eventGroupName = ucwords(eventGroup.name)
    1739                                                         def sampleName = (ucwords(subject.name) + '_' + samplingEventName + '_' + eventGroupName + '_' + new RelTime(samplingEvent.startTime).toString()).replaceAll("([ ]{1,})", "")
     1739                                                        def sampleTemplateName = (samplingEvent.sampleTemplate) ? ucwords(samplingEvent.sampleTemplate.name) : ''
     1740                                                        def sampleName = (ucwords(subject.name) + '_' + samplingEventName + '_' + eventGroupName + '_' + new RelTime(samplingEvent.startTime).toString() + sampleTemplateName).replaceAll("([ ]{1,})", "")
    17401741                                                        def tempSampleIterator = 0
    17411742                                                        def tempSampleName = sampleName
Note: See TracChangeset for help on using the changeset viewer.