Changeset 121 for trunk/grails-app
- Timestamp:
- Apr 30, 2009, 9:36:34 PM (16 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 4 added
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Assembly.groovy
r118 r121 1 1 class Assembly { 2 LifePlan lifeplan3 2 String name 4 3 String description = "" 5 4 boolean isActive = true 6 5 7 static hasMany = [assetTypes: AssetType, subAssemblies: SubAssembly ]6 static hasMany = [assetTypes: AssetType, subAssemblies: SubAssembly, maintenanceActions: MaintenanceAction] 8 7 9 8 static belongsTo = [AssetType] -
trunk/grails-app/domain/Asset.groovy
r118 r121 1 1 class Asset { 2 LifePlan lifeplan2 SystemSection systemSection 3 3 AssetType assetType 4 4 String name 5 5 String description = "" 6 String locationLongText = ""7 Integer riskPriorityNumber8 String modelNumber = ""9 String serialNumber = ""10 Integer purchaseCost = 011 Date manufacturedDate = new Date()12 13 6 boolean isActive = true 14 7 15 // static hasMany = []16 // 17 // static belongsTo = []18 // 8 static hasMany = [maintenanceActions: MaintenanceAction] 9 10 static belongsTo = [SystemSection] 11 19 12 // static constraints = { 20 13 // } -
trunk/grails-app/domain/AssetType.groovy
r118 r121 1 1 class AssetType { 2 SystemSection systemSection 3 LifePlan lifeplan 2 4 3 String name 5 4 String description = "" 6 5 boolean isActive = true 7 6 8 static hasMany = [assets: Asset, assemblies: Assembly ]9 // 7 static hasMany = [assets: Asset, assemblies: Assembly, assetExtendedAttributes: AssetExtendedAttribute, maintenanceActions: MaintenanceAction] 8 10 9 // static belongsTo = [] 11 // 10 12 11 // static constraints = { 13 12 // -
trunk/grails-app/domain/ComponentItem.groovy
r118 r121 1 1 class ComponentItem { 2 LifePlan lifeplan3 2 String name 4 3 String description = "" 5 Integer fmeaNumber6 4 boolean isActive = true 7 5 8 static hasMany = [subAssemblies: SubAssembly ]6 static hasMany = [subAssemblies: SubAssembly, maintenanceActions: MaintenanceAction] 9 7 10 8 static belongsTo = [SubAssembly] -
trunk/grails-app/domain/LifePlan.groovy
r118 r121 1 1 class LifePlan { 2 Asset asset3 Form form4 Frequency frequency5 AssetType assetType6 Assembly assembly7 SubAssembly subAssembly8 ComponentItem componentItem9 2 10 3 String name 11 4 String description = "" 12 String resourceNumber = ""13 Integer timeInHours14 String maintenanceAction15 String notes = ""16 17 5 boolean isActive = true 18 6 19 static hasMany = [systemSections: SystemSection]7 // static hasMany = [] 20 8 21 static belongsTo = [SystemSection]9 // static belongsTo = [] 22 10 23 static constraints = { 24 asset(blank:true,nullable:true) 25 form(blank:true,nullable:true) 26 frequency(blank:true,nullable:true) 27 assetType(blank:true,nullable:true) 28 assembly(blank:true,nullable:true) 29 subAssembly(blank:true,nullable:true) 30 componentItem(blank:true,nullable:true) 31 } 11 // static constraints = { 12 // } 32 13 33 14 String toString() { -
trunk/grails-app/domain/MaintenanceAction.groovy
r119 r121 1 class Form { 2 String name 3 String description = "" 1 class MaintenanceAction { 2 MaintenancePolicy maintenancePolicy 3 PlannedMaintenance plannedMaintenance 4 SystemSection 5 Asset asset 6 AssetType assetType 7 Assembly assembly 8 SubAssembly subAssembly 9 ComponentItem componentItem 10 String description 11 String reasoning = "" 4 12 boolean isActive = true 5 boolean isUsed = true6 13 7 static hasMany = [lifePlans: LifePlan]8 // 9 // static belongsTo = []10 // 14 // static hasMany = [] 15 16 static belongsTo = [PlannedMaintenance] 17 11 18 // static constraints = { 12 19 // … … 14 21 15 22 String toString() { 16 "${this. name}"23 "${this.description}" 17 24 } 18 25 } -
trunk/grails-app/domain/Site.groovy
r116 r121 5 5 Boolean isActive = true 6 6 7 static hasMany = [inventoryStores: InventoryStore ]7 static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection] 8 8 9 9 // static belongsTo = [] -
trunk/grails-app/domain/SubAssembly.groovy
r118 r121 1 1 class SubAssembly { 2 LifePlan lifeplan 2 3 3 String name 4 4 String description = "" 5 5 boolean isActive = true 6 6 7 static hasMany = [assemblies: Assembly, componentItems: ComponentItem ]7 static hasMany = [assemblies: Assembly, componentItems: ComponentItem, maintenanceActions: MaintenanceAction] 8 8 9 9 static belongsTo = [Assembly] -
trunk/grails-app/domain/SystemSection.groovy
r118 r121 1 1 class SystemSection { 2 3 Site site 4 2 5 String name 3 6 String description = "" 4 7 boolean isActive = true 5 8 6 static hasMany = [asset Types: AssetType, lifePlans: LifePlan]7 // 8 // static belongsTo = []9 // 9 static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction] 10 11 static belongsTo = [Site] 12 10 13 // static constraints = { 11 14 // -
trunk/grails-app/domain/Task.groovy
r116 r121 1 1 class Task { 2 2 3 TaskGroup taskGroup 3 4 TaskStatus taskStatus … … 7 8 Person leadPerson 8 9 Asset primaryAsset 10 RecurringSchedule recurringSchedule 11 9 12 String description 10 13 String comment = ""
Note: See TracChangeset
for help on using the changeset viewer.