Changeset 131 for trunk/grails-app/domain
- Timestamp:
- May 8, 2009, 1:01:56 AM (16 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 1 added
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Assembly.groovy
r121 r131 1 1 class Assembly { 2 3 AssetType assetType 4 2 5 String name 3 6 String description = "" 4 7 boolean isActive = true 5 8 6 static hasMany = [ assetTypes: AssetType,subAssemblies: SubAssembly, maintenanceActions: MaintenanceAction]9 static hasMany = [subAssemblies: SubAssembly, maintenanceActions: MaintenanceAction] 7 10 8 11 static belongsTo = [AssetType] -
trunk/grails-app/domain/Asset.groovy
r124 r131 8 8 boolean isActive = true 9 9 10 static hasMany = [maintenanceActions: MaintenanceAction, assetExtendedAttributes: AssetExtendedAttribute] 10 static hasMany = [maintenanceActions: MaintenanceAction, 11 assetExtendedAttributes: AssetExtendedAttribute] 11 12 12 13 static belongsTo = [SystemSection, AssetType] -
trunk/grails-app/domain/ComponentItem.groovy
r122 r131 1 1 class ComponentItem { 2 3 SubAssembly subAssembly 2 4 3 5 String name … … 5 7 boolean isActive = true 6 8 7 static hasMany = [ subAssemblies: SubAssembly,maintenanceActions: MaintenanceAction]9 static hasMany = [maintenanceActions: MaintenanceAction] 8 10 9 11 static belongsTo = [SubAssembly] -
trunk/grails-app/domain/MaintenanceAction.groovy
r130 r131 1 class TaskAction { 2 Task task 1 class MaintenanceAction { 2 3 TaskProcedure taskProcedure 3 4 MaintenancePolicy maintenancePolicy 4 5 SystemSection systemSection … … 8 9 SubAssembly subAssembly 9 10 ComponentItem componentItem 10 String action 11 12 String description 11 13 String reasoning = "" 12 Integer stepNumber14 Integer procedureStepNumber 13 15 boolean isActive = true 14 16 … … 18 20 19 21 static constraints = { 22 maintenancePolicy(blank:true, nullable:true) 20 23 systemSection(blank:true, nullable:true) 21 24 asset(blank:true, nullable:true) … … 24 27 subAssembly(blank:true, nullable:true) 25 28 componentItem(blank:true, nullable:true) 26 stepNumber(blank:true, nullable:true)29 procedureStepNumber(blank:true, nullable:true) 27 30 } 28 31 29 32 String toString() { 30 "${this. action}"33 "${this.description}" 31 34 } 32 35 } -
trunk/grails-app/domain/Period.groovy
r122 r131 1 1 class Period { 2 2 3 String period 3 4 boolean isActive = true 4 5 5 static hasMany = [ recurringSchedules:RecurringSchedule]6 static hasMany = [taskRecurringSchedules: TaskRecurringSchedule] 6 7 // 7 8 // static belongsTo = [] -
trunk/grails-app/domain/SubAssembly.groovy
r121 r131 1 1 class SubAssembly { 2 3 Assembly assembly 2 4 3 5 String name … … 5 7 boolean isActive = true 6 8 7 static hasMany = [assemblies: Assembly, componentItems: ComponentItem, maintenanceActions: MaintenanceAction] 9 static hasMany = [componentItems: ComponentItem, 10 maintenanceActions: MaintenanceAction] 8 11 9 12 static belongsTo = [Assembly] -
trunk/grails-app/domain/Task.groovy
r123 r131 8 8 Person leadPerson 9 9 Asset primaryAsset 10 RecurringSchedule recurringSchedule 10 TaskRecurringSchedule taskRecurringSchedule 11 TaskProcedure taskProcedure 11 12 12 13 String description … … 25 26 inventoryMovements: InventoryMovement] 26 27 28 static mappedBy = [taskRecurringSchedule:"task"] 29 27 30 static belongsTo = [TaskGroup, TaskStatus, Task, Person] 28 31 29 32 static constraints = { 33 description(blank:false,maxSize:75) 34 comment() 30 35 targetStartDate() 31 description(blank:false,maxSize:75)36 targetCompletionDate() 32 37 leadPerson() 33 38 taskPriority() 34 39 taskStatus() 35 40 parentTask(blank: true, nullable:true) 36 comment()37 41 primaryAsset(blank: true, nullable:true) 38 recurringSchedule(blank: true, nullable:true) 42 taskRecurringSchedule(blank: true, nullable:true) 43 taskProcedure(blank: true, nullable:true) 39 44 40 45 } -
trunk/grails-app/domain/TaskRecurringSchedule.groovy
r130 r131 2 2 3 3 Task task 4 //Task lastGeneratedSubTask4 Task lastGeneratedSubTask 5 5 Period period 6 6 … … 9 9 Date lastGeneratedDate 10 10 Date nextDueDate 11 boolean is Active= true11 boolean isEnabled = true 12 12 13 13 // static hasMany = [] … … 16 16 17 17 static constraints = { 18 // lastGeneratedDate(blank:true, nullable:true) 18 lastGeneratedDate(blank:true, nullable:true) 19 lastGeneratedSubTask(blank:true, nullable:true) 19 20 } 20 21
Note: See TracChangeset
for help on using the changeset viewer.