Last change
on this file since 119 was
116,
checked in by gav, 16 years ago
|
First commit of Inventory domain, including domain-classes, controllers, views and bootstrap. Also double check/adjust as required security extends in controllers.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[66] | 1 | class Task { |
---|
| 2 | TaskGroup taskGroup |
---|
| 3 | TaskStatus taskStatus |
---|
[69] | 4 | TaskPriority taskPriority |
---|
| 5 | TaskType taskType |
---|
| 6 | Task parentTask |
---|
[66] | 7 | Person leadPerson |
---|
[116] | 8 | Asset primaryAsset |
---|
[66] | 9 | String description |
---|
| 10 | String comment = "" |
---|
| 11 | Date targetStartDate = new Date() |
---|
| 12 | Date targetCompletionDate = new Date() |
---|
| 13 | boolean isScheduled = false |
---|
| 14 | boolean isApproved = false |
---|
| 15 | boolean isActive = true |
---|
| 16 | |
---|
[69] | 17 | static hasMany = [entries: Entry, |
---|
[93] | 18 | taskModifications: TaskModification, |
---|
[96] | 19 | assignedPersons: AssignedPerson, |
---|
[116] | 20 | subTasks: Task, |
---|
| 21 | associatedAssets: Asset, |
---|
| 22 | inventoryMovements: InventoryMovement] |
---|
[66] | 23 | |
---|
[69] | 24 | static belongsTo = [TaskGroup, TaskStatus, Task, Person] |
---|
[66] | 25 | |
---|
| 26 | static constraints = { |
---|
| 27 | targetStartDate() |
---|
[91] | 28 | description(blank:false,maxSize:75) |
---|
[66] | 29 | leadPerson() |
---|
[69] | 30 | taskPriority() |
---|
[66] | 31 | taskStatus() |
---|
[69] | 32 | parentTask(blank: true, nullable:true) |
---|
[106] | 33 | comment() |
---|
[116] | 34 | primaryAsset(blank: true, nullable:true) |
---|
[69] | 35 | |
---|
[66] | 36 | } |
---|
| 37 | |
---|
| 38 | String toString() {"${this.description}"} |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.