Last change
on this file since 423 was
418,
checked in by gav, 15 years ago
|
Add attentionFlag to Task domain along with views and logic to suite.
Add entry type 'cause', refactor as required.
Refactor task types.
Move createBreakin to createImmediateCallout.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[66] | 1 | class Task { |
---|
[121] | 2 | |
---|
[66] | 3 | TaskGroup taskGroup |
---|
| 4 | TaskStatus taskStatus |
---|
[69] | 5 | TaskPriority taskPriority |
---|
[252] | 6 | TaskBudgetStatus taskBudgetStatus |
---|
[69] | 7 | TaskType taskType |
---|
[168] | 8 | Task parentTask |
---|
[66] | 9 | Person leadPerson |
---|
[116] | 10 | Asset primaryAsset |
---|
[131] | 11 | TaskRecurringSchedule taskRecurringSchedule |
---|
| 12 | TaskProcedure taskProcedure |
---|
[121] | 13 | |
---|
[66] | 14 | String description |
---|
| 15 | String comment = "" |
---|
| 16 | Date targetStartDate = new Date() |
---|
| 17 | Date targetCompletionDate = new Date() |
---|
[181] | 18 | boolean scheduled = false |
---|
| 19 | boolean approved = false |
---|
| 20 | boolean trash = false |
---|
[418] | 21 | boolean attentionFlag = false |
---|
[66] | 22 | |
---|
[418] | 23 | static hasMany = [entries: Entry, |
---|
[147] | 24 | taskModifications: TaskModification, |
---|
[242] | 25 | assignedGroups: AssignedGroup, |
---|
[241] | 26 | assignedPersons: AssignedPerson, |
---|
[116] | 27 | subTasks: Task, |
---|
| 28 | associatedAssets: Asset, |
---|
| 29 | inventoryMovements: InventoryMovement] |
---|
[66] | 30 | |
---|
[131] | 31 | static mappedBy = [taskRecurringSchedule:"task"] |
---|
| 32 | |
---|
[69] | 33 | static belongsTo = [TaskGroup, TaskStatus, Task, Person] |
---|
[66] | 34 | |
---|
| 35 | static constraints = { |
---|
[131] | 36 | description(blank:false,maxSize:75) |
---|
| 37 | comment() |
---|
[66] | 38 | targetStartDate() |
---|
[131] | 39 | targetCompletionDate() |
---|
[66] | 40 | leadPerson() |
---|
[69] | 41 | taskPriority() |
---|
[252] | 42 | taskBudgetStatus() |
---|
[66] | 43 | taskStatus() |
---|
[146] | 44 | parentTask(nullable:true) |
---|
| 45 | primaryAsset(nullable:true) |
---|
| 46 | taskRecurringSchedule(nullable:true) |
---|
| 47 | taskProcedure(nullable:true) |
---|
| 48 | |
---|
[66] | 49 | } |
---|
| 50 | |
---|
[123] | 51 | String toString() {"${this.id} - ${this.description}"} |
---|
[66] | 52 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.