Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Command object for running real time reports.
- *
- * @author conor@nogoodsoftware.com
- */
- @Validateable
- class ReportQueryCommand extends BaseCommand {
- Company company
- // period start
- def startDate
- def endDate
- def interpreterBusinessUnit
- def customerBusinessUnit
- static constraints = {
- company(nullable: false)
- startDate(nullable: false)
- endDate(nullable: false)
- }
- void setStartDate(def date){
- startDate = convertDate(date, companyContext.configSettings.dateFormat, companyContext.configSettings.timeZone)
- }
- void setEndDate(def date){
- endDate = convertDate(date, companyContext.configSettings.dateFormat, companyContext.configSettings.timeZone)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement