source: trunk/grails-app/domain/TaskRecurringSchedule.groovy @ 133

Last change on this file since 133 was 131, checked in by gav, 16 years ago

Reconfigure Planned Maintenance again, now Preventative Maintenance, TaskProcedure? and MaintenanceAction?

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