source:
branches/features/taskProcedureRework/grails-app/domain/MaintenanceAction.groovy
@
757
| Last change on this file since 757 was 756, checked in by , 15 years ago | |
|---|---|
| File size: 646 bytes | |
| Rev | Line | |
|---|---|---|
| [131] | 1 | class MaintenanceAction { |
| 2 | ||
| 3 | TaskProcedure taskProcedure | |
| [121] | 4 | MaintenancePolicy maintenancePolicy |
| [268] | 5 | Section section |
| [121] | 6 | Asset asset |
| [268] | 7 | AssetSubItem assetSubItem |
| [131] | 8 | |
| 9 | String description | |
| [121] | 10 | String reasoning = "" |
| [131] | 11 | Integer procedureStepNumber |
| [118] | 12 | |
| [121] | 13 | // static hasMany = [] |
| 14 | ||
| [756] | 15 | static belongsTo = [TaskProcedure] |
| [121] | 16 | |
| [122] | 17 | static constraints = { |
| [268] | 18 | section(nullable:true) |
| 19 | asset(nullable:true) | |
| 20 | assetSubItem(nullable:true) | |
| [146] | 21 | maintenancePolicy(nullable:true) |
| 22 | procedureStepNumber(nullable:true) | |
| [756] | 23 | description(blank:false) |
| [268] | 24 | reasoning() |
| [122] | 25 | } |
| [118] | 26 | |
| 27 | String toString() { | |
| [131] | 28 | "${this.description}" |
| [118] | 29 | } |
| 30 | } | |
| 31 |
Note: See TracBrowser
for help on using the repository browser.
