|
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
|
| Line | |
|---|
| 1 | class Task { |
|---|
| 2 | |
|---|
| 3 | TaskGroup taskGroup |
|---|
| 4 | TaskStatus taskStatus |
|---|
| 5 | TaskPriority taskPriority |
|---|
| 6 | TaskType taskType |
|---|
| 7 | Task parentTask |
|---|
| 8 | Person leadPerson |
|---|
| 9 | Asset primaryAsset |
|---|
| 10 | TaskRecurringSchedule taskRecurringSchedule |
|---|
| 11 | TaskProcedure taskProcedure |
|---|
| 12 | |
|---|
| 13 | String description |
|---|
| 14 | String comment = "" |
|---|
| 15 | Date targetStartDate = new Date() |
|---|
| 16 | Date targetCompletionDate = new Date() |
|---|
| 17 | boolean scheduled = false |
|---|
| 18 | boolean approved = false |
|---|
| 19 | boolean trash = false |
|---|
| 20 | |
|---|
| 21 | static hasMany = [entries: Entry, |
|---|
| 22 | taskModifications: TaskModification, |
|---|
| 23 | assignedGroups: AssignedGroup, |
|---|
| 24 | assignedPersons: AssignedPerson, |
|---|
| 25 | subTasks: Task, |
|---|
| 26 | associatedAssets: Asset, |
|---|
| 27 | inventoryMovements: InventoryMovement] |
|---|
| 28 | |
|---|
| 29 | static mappedBy = [taskRecurringSchedule:"task"] |
|---|
| 30 | |
|---|
| 31 | static belongsTo = [TaskGroup, TaskStatus, Task, Person] |
|---|
| 32 | |
|---|
| 33 | static constraints = { |
|---|
| 34 | description(blank:false,maxSize:75) |
|---|
| 35 | comment() |
|---|
| 36 | targetStartDate() |
|---|
| 37 | targetCompletionDate() |
|---|
| 38 | leadPerson() |
|---|
| 39 | taskPriority() |
|---|
| 40 | taskStatus() |
|---|
| 41 | parentTask(nullable:true) |
|---|
| 42 | primaryAsset(nullable:true) |
|---|
| 43 | taskRecurringSchedule(nullable:true) |
|---|
| 44 | taskProcedure(nullable:true) |
|---|
| 45 | |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | String toString() {"${this.id} - ${this.description}"} |
|---|
| 49 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.