|
Last change
on this file since 118 was
116,
checked in by gav, 17 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
|
| Line | |
|---|
| 1 | class Task { |
|---|
| 2 | TaskGroup taskGroup |
|---|
| 3 | TaskStatus taskStatus |
|---|
| 4 | TaskPriority taskPriority |
|---|
| 5 | TaskType taskType |
|---|
| 6 | Task parentTask |
|---|
| 7 | Person leadPerson |
|---|
| 8 | Asset primaryAsset |
|---|
| 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 | |
|---|
| 17 | static hasMany = [entries: Entry, |
|---|
| 18 | taskModifications: TaskModification, |
|---|
| 19 | assignedPersons: AssignedPerson, |
|---|
| 20 | subTasks: Task, |
|---|
| 21 | associatedAssets: Asset, |
|---|
| 22 | inventoryMovements: InventoryMovement] |
|---|
| 23 | |
|---|
| 24 | static belongsTo = [TaskGroup, TaskStatus, Task, Person] |
|---|
| 25 | |
|---|
| 26 | static constraints = { |
|---|
| 27 | targetStartDate() |
|---|
| 28 | description(blank:false,maxSize:75) |
|---|
| 29 | leadPerson() |
|---|
| 30 | taskPriority() |
|---|
| 31 | taskStatus() |
|---|
| 32 | parentTask(blank: true, nullable:true) |
|---|
| 33 | comment() |
|---|
| 34 | primaryAsset(blank: true, nullable:true) |
|---|
| 35 | |
|---|
| 36 | } |
|---|
| 37 | |
|---|
| 38 | String toString() {"${this.description}"} |
|---|
| 39 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.