source:
trunk/grails-app/domain/TaskReccuringSchedule.groovy
@
130
Last change on this file since 130 was 129, checked in by , 16 years ago | |
---|---|
File size: 457 bytes |
Rev | Line | |
---|---|---|
[127] | 1 | class TaskRecurringSchedule { |
[121] | 2 | |
[122] | 3 | Task task |
[127] | 4 | // Task lastGeneratedSubTask |
[122] | 5 | Period period |
[121] | 6 | |
7 | Integer recurEvery | |
8 | Date startDate = new Date() | |
[127] | 9 | Date lastGeneratedDate |
[123] | 10 | Date nextDueDate |
[121] | 11 | boolean isActive = true |
12 | ||
13 | // static hasMany = [] | |
14 | ||
15 | static belongsTo = [Task] | |
16 | ||
[122] | 17 | static constraints = { |
[127] | 18 | // lastGeneratedDate(blank:true, nullable:true) |
[122] | 19 | } |
[121] | 20 | |
[124] | 21 | String toString() { |
22 | "Recur every ${recurEvery} ${period}" | |
23 | } | |
[121] | 24 | } |
25 |
Note: See TracBrowser
for help on using the repository browser.