Changeset 127 for trunk/grails-app/domain
- Timestamp:
- May 6, 2009, 3:40:07 AM (16 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/MaintenanceAction.groovy
r124 r127 1 class MaintenanceAction { 1 class TaskAction { 2 Task task 2 3 MaintenancePolicy maintenancePolicy 3 PlannedMaintenance plannedMaintenance4 4 SystemSection systemSection 5 5 Asset asset … … 8 8 SubAssembly subAssembly 9 9 ComponentItem componentItem 10 String maintenanceAction10 String action 11 11 String reasoning = "" 12 Integer pmStepNumber12 Integer stepNumber 13 13 boolean isActive = true 14 14 15 15 // static hasMany = [] 16 16 17 static belongsTo = [PlannedMaintenance]17 // static belongsTo = [] 18 18 19 19 static constraints = { … … 24 24 subAssembly(blank:true, nullable:true) 25 25 componentItem(blank:true, nullable:true) 26 pmStepNumber(blank:true, nullable:true)26 stepNumber(blank:true, nullable:true) 27 27 } 28 28 -
trunk/grails-app/domain/Person.groovy
r93 r127 13 13 String lastName 14 14 String employeeID 15 16 /* Set after login by 'welcome' action, default to 12 hours, aka "sess.setMaxInactiveInterval(seconds) */ 17 Integer sessionTimeout = 720 15 18 16 19 /** MD5 Password */ … … 42 45 //So we need to use pass for validation then encode it for above. 43 46 pass(blank: false, minSize:4) 47 sessionTimeout(min:60, max:720) 44 48 45 49 } -
trunk/grails-app/domain/RecurringSchedule.groovy
r125 r127 1 class RecurringSchedule {1 class TaskRecurringSchedule { 2 2 3 3 Task task 4 // Task lastGeneratedSubTask 4 5 Period period 5 PlannedMaintenance plannedMaintenance6 6 7 7 Integer recurEvery 8 8 Date startDate = new Date() 9 Date last ExecutedDate9 Date lastGeneratedDate 10 10 Date nextDueDate 11 11 boolean isActive = true … … 16 16 17 17 static constraints = { 18 plannedMaintenance(blank:true, nullable:true) 19 lastExecutedDate(blank:true, nullable:true) 18 // lastGeneratedDate(blank:true, nullable:true) 20 19 } 21 20
Note: See TracChangeset
for help on using the changeset viewer.