- Timestamp:
- Oct 5, 2009, 7:02:32 PM (15 years ago)
- Location:
- trunk/grails-app/domain
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/EntryType.groovy
r116 r146 5 5 6 6 static hasMany = [entries: Entry] 7 7 8 8 static contstraints = { 9 9 name(maxSize:50,unique:true,blank:false) -
trunk/grails-app/domain/InventoryItem.groovy
r116 r146 35 35 manufacturersPartNumber(blank:true, nullable:true) 36 36 suppliersPartNumber(blank:true, nullable:true) 37 recommendedReorderPoint( blank:true,nullable:true)38 averageDeliveryTime( blank:true,nullable:true)37 recommendedReorderPoint(nullable:true) 38 averageDeliveryTime(nullable:true) 39 39 } 40 40 -
trunk/grails-app/domain/InventoryMovement.groovy
r116 r146 12 12 quantity() 13 13 inventoryMovementType() 14 task( blank:true,nullable:true)14 task(nullable:true) 15 15 date() 16 16 } -
trunk/grails-app/domain/MaintenanceAction.groovy
r131 r146 20 20 21 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)22 maintenancePolicy(nullable:true) 23 systemSection(nullable:true) 24 asset(nullable:true) 25 assetType(nullable:true) 26 assembly(nullable:true) 27 subAssembly(nullable:true) 28 componentItem(nullable:true) 29 procedureStepNumber(nullable:true) 30 30 } 31 31 -
trunk/grails-app/domain/StoredItem.groovy
r125 r146 8 8 9 9 static constraints = { 10 quantity(min Size:0)10 quantity(min:0) 11 11 } 12 12 -
trunk/grails-app/domain/Task.groovy
r131 r146 38 38 taskPriority() 39 39 taskStatus() 40 parentTask( blank: true,nullable:true)41 primaryAsset( blank: true,nullable:true)42 taskRecurringSchedule( blank: true,nullable:true)43 taskProcedure( blank: true,nullable:true)44 40 parentTask(nullable:true) 41 primaryAsset(nullable:true) 42 taskRecurringSchedule(nullable:true) 43 taskProcedure(nullable:true) 44 45 45 } 46 46 -
trunk/grails-app/domain/TaskRecurringSchedule.groovy
r137 r146 26 26 taskDuration(min:0, max:365) 27 27 generateAhead(min:0, max:365) 28 lastGeneratedDate( blank:true,nullable:true)29 lastGeneratedSubTask( blank:true,nullable:true)28 lastGeneratedDate(nullable:true) 29 lastGeneratedSubTask(nullable:true) 30 30 } 31 31 … … 33 33 "Recur every ${recurEvery} ${recurPeriod}" 34 34 } 35 35 36 36 // As of Grails 1.1.1 this does not fire/pass before validation. 37 37 // But setting some defaults above to pass validation and placing this code here … … 42 42 setNextTargetCompletionDate() 43 43 } 44 44 45 45 public void setNextGenerationDate() { 46 46 switch (generateAheadPeriod.period) { … … 71 71 if( nextGenerationDate < now) {nextGenerationDate = now} 72 72 } 73 73 74 74 public void setNextTargetCompletionDate() { 75 75 switch (taskDurationPeriod.period) { … … 98 98 } 99 99 } 100 100 101 101 } 102 102
Note: See TracChangeset
for help on using the changeset viewer.