source: trunk/grails-app/domain/RecurringSchedule.groovy @ 124

Last change on this file since 124 was 124, checked in by gav, 15 years ago

Detail controller and views for Asset, AssetExtendedAttribute?, PlannedMaintenance?, MaintenanceAction?, RecurringSchedule?, SystemSection?.
Some minor work on Task controller and views.
Change PlannedMaintenance? relationship, adjust ERD, Bootstrap and Domain classes to suite.

File size: 558 bytes
Line 
1class RecurringSchedule {
2
3    Task task
4    Period period
5    PlannedMaintenance plannedMaintenance
6
7    Integer recurEvery
8    Date startDate = new Date()
9    Date lastExecutedDate
10    Date nextDueDate
11    boolean isActive = true
12
13//     static hasMany = []
14
15    static belongsTo = [Task]
16
17    static constraints = {
18        plannedMaintenance(blank:true, nullable:true)
19        lastExecutedDate(blank:true, nullable:true)
20        nextDueDate(blank:true, nullable:true)
21    }
22
23    String toString() {
24        "Recur every ${recurEvery} ${period}"
25    }
26}
27
Note: See TracBrowser for help on using the repository browser.