|
Last change
on this file since 246 was
242,
checked in by gav, 16 years ago
|
|
Re-implement AssignedGroups along side AssignedPersons manually taking the good stuff from r240.
As per revised ticket #37.
|
|
File size:
1.4 KB
|
| Rev | Line | |
|---|
| [66] | 1 | class Task { |
|---|
| [121] | 2 | |
|---|
| [66] | 3 | TaskGroup taskGroup |
|---|
| 4 | TaskStatus taskStatus |
|---|
| [69] | 5 | TaskPriority taskPriority |
|---|
| 6 | TaskType taskType |
|---|
| [168] | 7 | Task parentTask |
|---|
| [66] | 8 | Person leadPerson |
|---|
| [116] | 9 | Asset primaryAsset |
|---|
| [131] | 10 | TaskRecurringSchedule taskRecurringSchedule |
|---|
| 11 | TaskProcedure taskProcedure |
|---|
| [121] | 12 | |
|---|
| [66] | 13 | String description |
|---|
| 14 | String comment = "" |
|---|
| 15 | Date targetStartDate = new Date() |
|---|
| 16 | Date targetCompletionDate = new Date() |
|---|
| [181] | 17 | boolean scheduled = false |
|---|
| 18 | boolean approved = false |
|---|
| 19 | boolean trash = false |
|---|
| [66] | 20 | |
|---|
| [69] | 21 | static hasMany = [entries: Entry, |
|---|
| [147] | 22 | taskModifications: TaskModification, |
|---|
| [242] | 23 | assignedGroups: AssignedGroup, |
|---|
| [241] | 24 | assignedPersons: AssignedPerson, |
|---|
| [116] | 25 | subTasks: Task, |
|---|
| 26 | associatedAssets: Asset, |
|---|
| 27 | inventoryMovements: InventoryMovement] |
|---|
| [66] | 28 | |
|---|
| [131] | 29 | static mappedBy = [taskRecurringSchedule:"task"] |
|---|
| 30 | |
|---|
| [69] | 31 | static belongsTo = [TaskGroup, TaskStatus, Task, Person] |
|---|
| [66] | 32 | |
|---|
| 33 | static constraints = { |
|---|
| [131] | 34 | description(blank:false,maxSize:75) |
|---|
| 35 | comment() |
|---|
| [66] | 36 | targetStartDate() |
|---|
| [131] | 37 | targetCompletionDate() |
|---|
| [66] | 38 | leadPerson() |
|---|
| [69] | 39 | taskPriority() |
|---|
| [66] | 40 | taskStatus() |
|---|
| [146] | 41 | parentTask(nullable:true) |
|---|
| 42 | primaryAsset(nullable:true) |
|---|
| 43 | taskRecurringSchedule(nullable:true) |
|---|
| 44 | taskProcedure(nullable:true) |
|---|
| 45 | |
|---|
| [66] | 46 | } |
|---|
| 47 | |
|---|
| [123] | 48 | String toString() {"${this.id} - ${this.description}"} |
|---|
| [66] | 49 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.