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