Ignore:
Timestamp:
Jun 14, 2010, 5:20:07 PM (12 years ago)
Author:
keesvb
Message:

fixed person problem in BootStrap?, added comments to Event class, fixed #104

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Event.groovy

    r541 r564  
    4545        static List<TemplateField> giveDomainFields() { return Event.domainFields }
    4646
    47         // TODO: Kees start documenting your code
    4847        static final List<TemplateField> domainFields = [
    4948                new TemplateField(
    5049                        name: 'startTime',
    51                         type: TemplateFieldType.RELTIME),
     50                        type: TemplateFieldType.RELTIME,
     51                        comment: "Please enter the start time as a relative time from study start date. "+RelTime.getHelpText()),
    5252                new TemplateField(
    5353                        name: 'endTime',
    54                         type: TemplateFieldType.RELTIME)
     54                        type: TemplateFieldType.RELTIME,
     55                        comment: "Please enter the end time as a relative time from study start date. "+RelTime.getHelpText())
    5556        ]
    5657
     58        // TODO: Jahn, could you indicate in a comment why these different duration functions exist?
    5759        def getDuration() {
    5860                return new RelTime(startTime, endTime);
     
    6769        }
    6870
    69         // TODO: Kees start documenting your code
    7071        def getPrettyDuration() {
    7172                getPrettyDuration(getDuration())
    7273        }
    7374
    74         // TODO: Kees start documenting your code
    7575        def getDurationString() {
    7676                def d = getDuration()
     
    7878        }
    7979
    80         // TODO: Kees start documenting your code
    8180        def getShortDuration() {
    8281                def d = getDuration()
     
    8483        }
    8584
    86         // TODO: Kees start documenting your code
     85        /**
     86         *    Return whether this is SamplingEvent
     87         * @return    boolean
     88         */
    8789        def isSamplingEvent() {
    8890                return (this instanceof SamplingEvent)
    8991        }
    9092
    91         // TODO: Kees start documenting your code
    9293        def belongsToGroup(Set<EventGroup> groups) {
    9394                def eventFound = false;
     
    102103        }
    103104
    104         // TODO: Kees start documenting your code
    105105        def String toString() {
    106106                return fieldExists('Description') ? getFieldValue('Description') : ""
Note: See TracChangeset for help on using the changeset viewer.