Last change
on this file since 179 was
168,
checked in by gav, 15 years ago
|
Add message bundles for the task filterPane.
Add primary and associated assets to taskDetailed views.
|
File size:
1.3 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() |
---|
| 17 | boolean isScheduled = false |
---|
| 18 | boolean isApproved = false |
---|
| 19 | boolean isActive = true |
---|
| 20 | |
---|
[69] | 21 | static hasMany = [entries: Entry, |
---|
[147] | 22 | taskModifications: TaskModification, |
---|
| 23 | assignedPersons: AssignedPerson, |
---|
[116] | 24 | subTasks: Task, |
---|
| 25 | associatedAssets: Asset, |
---|
| 26 | inventoryMovements: InventoryMovement] |
---|
[66] | 27 | |
---|
[131] | 28 | static mappedBy = [taskRecurringSchedule:"task"] |
---|
| 29 | |
---|
[69] | 30 | static belongsTo = [TaskGroup, TaskStatus, Task, Person] |
---|
[66] | 31 | |
---|
| 32 | static constraints = { |
---|
[131] | 33 | description(blank:false,maxSize:75) |
---|
| 34 | comment() |
---|
[66] | 35 | targetStartDate() |
---|
[131] | 36 | targetCompletionDate() |
---|
[66] | 37 | leadPerson() |
---|
[69] | 38 | taskPriority() |
---|
[66] | 39 | taskStatus() |
---|
[146] | 40 | parentTask(nullable:true) |
---|
| 41 | primaryAsset(nullable:true) |
---|
| 42 | taskRecurringSchedule(nullable:true) |
---|
| 43 | taskProcedure(nullable:true) |
---|
| 44 | |
---|
[66] | 45 | } |
---|
| 46 | |
---|
[123] | 47 | String toString() {"${this.id} - ${this.description}"} |
---|
[66] | 48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.