|
Last change
on this file since 135 was
135,
checked in by gav, 17 years ago
|
|
Protect taskRecurringSchedule from creating if one already exists.
Turn some taskInstance text into links.
Work on taskRecurringSchedule detail and creation.
|
|
File size:
504 bytes
|
| Line | |
|---|
| 1 | class TaskRecurringSchedule { |
|---|
| 2 | |
|---|
| 3 | Task lastGeneratedSubTask |
|---|
| 4 | Period period |
|---|
| 5 | |
|---|
| 6 | Integer recurEvery = 1 |
|---|
| 7 | Date startDate = new Date() |
|---|
| 8 | Date lastGeneratedDate |
|---|
| 9 | Date nextDueDate |
|---|
| 10 | boolean isEnabled = true |
|---|
| 11 | |
|---|
| 12 | // static hasMany = [] |
|---|
| 13 | |
|---|
| 14 | static belongsTo = [task: Task] |
|---|
| 15 | |
|---|
| 16 | static constraints = { |
|---|
| 17 | lastGeneratedDate(blank:true, nullable:true) |
|---|
| 18 | lastGeneratedSubTask(blank:true, nullable:true) |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | String toString() { |
|---|
| 22 | "Recur every ${recurEvery} ${period}" |
|---|
| 23 | } |
|---|
| 24 | } |
|---|
| 25 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.