Ignore:
Timestamp:
May 28, 2010, 4:19:06 PM (7 years ago)
Author:
roberth
Message:

Implemented RELTIME parsing and showing in the wizard.
Also made TEXT templatefields to show a textarea

File:
1 edited

Legend:

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

    r468 r497  
    7373    def events = {
    7474        def eventGroup = EventGroup.get(params.id)
    75         def startDate  = params.startDate
    7675
     76        // This parameter should give the startdate of the study in milliseconds
     77        // since 1-1-1970
     78        long startDate  = Long.parseLong( params.startDate )
     79       
    7780        if (!eventGroup) {
    7881            flash.message = "${message(code: 'default.not.found.message', args: [message(code: 'eventgroup.label', default: 'Eventgroup'), params.id])}"
     
    104107                }
    105108
    106                 json.events << [
    107                     'start':    event.startTime,
    108                     'end':      event.endTime,
     109                 json.events << [
     110                    'start':    new Date( startDate + event.startTime * 1000 ),
     111                    'end':      new Date( startDate + event.endTime * 1000 ),
    109112                    'durationEvent': !event.isSamplingEvent(),
    110113                    'title': event.template.name + " (" + parameters.join( ', ' ) + ")",
Note: See TracChangeset for help on using the changeset viewer.