Changeset 219 for trunk/grails-app
- Timestamp:
- Dec 4, 2009, 8:52:26 PM (15 years ago)
- Location:
- trunk/grails-app/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/TaskRecurringScheduleService.groovy
r213 r219 15 15 taskRecurringScheduleList.each() { 16 16 17 if ( dateUtilService. getTomorrow()> it.nextGenerationDate) {17 if ( dateUtilService.tomorrow > it.nextGenerationDate) { 18 18 def p = [:] 19 19 p.targetStartDate = it.nextTargetStartDate … … 73 73 return fail('task', "task.operationNotPermittedOnTaskInTrash") 74 74 75 if(result.taskRecurringScheduleInstance.nextTargetStartDate < dateUtilService. getToday())75 if(result.taskRecurringScheduleInstance.nextTargetStartDate < dateUtilService.today) 76 76 return fail("nextTargetStartDate", "taskRecurringSchedule.nextTargetStartDate.mayNotBePast") 77 77 … … 117 117 result.taskRecurringScheduleInstance.properties = params 118 118 119 if(result.taskRecurringScheduleInstance.nextTargetStartDate < dateUtilService. getToday())119 if(result.taskRecurringScheduleInstance.nextTargetStartDate < dateUtilService.today) 120 120 return fail("nextTargetStartDate", "taskRecurringSchedule.nextTargetStartDate.mayNotBePast") 121 121 -
trunk/grails-app/services/TaskSearchService.groovy
r181 r219 17 17 sort: params.sort, 18 18 order: params.order) { 19 ge("targetStartDate", dateUtilService. getToday())19 ge("targetStartDate", dateUtilService.today) 20 20 lt("targetStartDate", dateUtilService.getTomorrow()) 21 21 eq("trash", false) … … 35 35 order: params.order) { 36 36 eq("leadPerson", Person.get(authenticateService.userDomain().id)) 37 ge("targetStartDate", dateUtilService. getToday())37 ge("targetStartDate", dateUtilService.today) 38 38 lt("targetStartDate", dateUtilService.getTomorrow()) 39 39 eq("trash", false) … … 52 52 sort: params.sort, 53 53 order: params.order) { 54 ge("targetStartDate", dateUtilService. getToday()-7)54 ge("targetStartDate", dateUtilService.oneWeekAgo) 55 55 lt("targetStartDate", dateUtilService.getTomorrow()) 56 56 eq("trash", false) … … 70 70 order: params.order) { 71 71 eq("leadPerson", Person.get(authenticateService.userDomain().id)) 72 ge("targetStartDate", dateUtilService. getToday()-7)72 ge("targetStartDate", dateUtilService.oneWeekAgo) 73 73 lt("targetStartDate", dateUtilService.getTomorrow()) 74 74 eq("trash", false) … … 88 88 order: params.order) { 89 89 ne("taskType", TaskType.findByName("Unscheduled Breakin")) 90 ge("targetStartDate", dateUtilService. getToday()-7)90 ge("targetStartDate", dateUtilService.oneWeekAgo) 91 91 lt("targetStartDate", dateUtilService.getTomorrow()) 92 92 eq("trash", false) … … 106 106 order: params.order) { 107 107 eq("taskType", TaskType.findByName("Unscheduled Breakin")) 108 ge("targetStartDate", dateUtilService. getToday()-7)108 ge("targetStartDate", dateUtilService.oneWeekAgo) 109 109 lt("targetStartDate", dateUtilService.getTomorrow()) 110 110 eq("trash", false)
Note: See TracChangeset
for help on using the changeset viewer.