|
Last change
on this file since 767 was
762,
checked in by gav, 15 years ago
|
|
Domain change on TaskProcedure and MaintenanceAction, continue task procedure rework.
|
|
File size:
705 bytes
|
| Line | |
|---|
| 1 | class MaintenanceAction { |
|---|
| 2 | |
|---|
| 3 | TaskProcedure taskProcedure |
|---|
| 4 | MaintenancePolicy maintenancePolicy |
|---|
| 5 | Section section |
|---|
| 6 | Asset asset |
|---|
| 7 | AssetSubItem assetSubItem |
|---|
| 8 | |
|---|
| 9 | String description |
|---|
| 10 | String reasoning = "" |
|---|
| 11 | Integer procedureStepNumber |
|---|
| 12 | |
|---|
| 13 | Boolean deleted |
|---|
| 14 | static transients = [ 'deleted' ] |
|---|
| 15 | |
|---|
| 16 | // static hasMany = [] |
|---|
| 17 | |
|---|
| 18 | static belongsTo = [TaskProcedure] |
|---|
| 19 | |
|---|
| 20 | static constraints = { |
|---|
| 21 | section(nullable:true) |
|---|
| 22 | asset(nullable:true) |
|---|
| 23 | assetSubItem(nullable:true) |
|---|
| 24 | maintenancePolicy(nullable:true) |
|---|
| 25 | procedureStepNumber(nullable:true) |
|---|
| 26 | description(blank:false) |
|---|
| 27 | reasoning() |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | String toString() { |
|---|
| 31 | "${this.description}" |
|---|
| 32 | } |
|---|
| 33 | } |
|---|
| 34 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.