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