source:
branches/features/taskProcedureRework/grails-app/domain/MaintenanceAction.groovy
@
768
Last change on this file since 768 was 762, checked in by , 14 years ago | |
---|---|
File size: 705 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 | |
[762] | 13 | Boolean deleted |
[760] | 14 | static transients = [ 'deleted' ] |
15 | ||
[121] | 16 | // static hasMany = [] |
17 | ||
[756] | 18 | static belongsTo = [TaskProcedure] |
[121] | 19 | |
[122] | 20 | static constraints = { |
[268] | 21 | section(nullable:true) |
22 | asset(nullable:true) | |
23 | assetSubItem(nullable:true) | |
[146] | 24 | maintenancePolicy(nullable:true) |
25 | procedureStepNumber(nullable:true) | |
[756] | 26 | description(blank:false) |
[268] | 27 | reasoning() |
[122] | 28 | } |
[118] | 29 | |
30 | String toString() { | |
[131] | 31 | "${this.description}" |
[118] | 32 | } |
33 | } | |
34 |
Note: See TracBrowser
for help on using the repository browser.