source: trunk/grails-app/domain/MaintenanceAction.groovy @ 134

Last change on this file since 134 was 131, checked in by gav, 16 years ago

Reconfigure Planned Maintenance again, now Preventative Maintenance, TaskProcedure? and MaintenanceAction?

File size: 902 bytes
Line 
1class MaintenanceAction {
2
3    TaskProcedure taskProcedure
4    MaintenancePolicy maintenancePolicy
5    SystemSection systemSection
6    Asset asset
7    AssetType assetType
8    Assembly assembly
9    SubAssembly subAssembly
10    ComponentItem componentItem
11
12    String description
13    String reasoning = ""
14    Integer procedureStepNumber
15    boolean isActive = true
16
17//     static hasMany = []
18
19//     static belongsTo = []
20
21    static constraints = {
22        maintenancePolicy(blank:true, nullable:true)
23        systemSection(blank:true, nullable:true)
24        asset(blank:true, nullable:true)
25        assetType(blank:true, nullable:true)
26        assembly(blank:true, nullable:true)
27        subAssembly(blank:true, nullable:true)
28        componentItem(blank:true, nullable:true)
29        procedureStepNumber(blank:true, nullable:true)
30    }
31
32    String toString() {
33        "${this.description}"
34    }
35}
36
Note: See TracBrowser for help on using the repository browser.