Class: GenerateReportController

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/generate_report_controller.rb

Instance Method Summary collapse

Instance Method Details

#get_pr_filtersObject



20
21
22
23
# File 'app/controllers/generate_report_controller.rb', line 20

def get_pr_filters
  @report_template = ReportTemplate.find(params["report_template_id"])
  get_ac_filters_applied(params, @report_template.ac_filter_def)
end

#get_pr_report_classObject



6
7
8
9
# File 'app/controllers/generate_report_controller.rb', line 6

def get_pr_report_class
  @report_template = ReportTemplate.find(params["report_template_id"])
  Kernel.const_get(@report_template.report_class)
end

#get_pr_report_dataObject



13
14
15
16
17
18
# File 'app/controllers/generate_report_controller.rb', line 13

def get_pr_report_data
  @report_template = ReportTemplate.find(params["report_template_id"])
  mc=Kernel
  @report_template.ac_filter_def.model_class.split('::').each {|c| mc=mc.const_get(c)}
  mc.apply_ac_filter(parse_ac_filters(params), get_system_criteria)
end

#get_pr_report_paramsObject



11
# File 'app/controllers/generate_report_controller.rb', line 11

def get_pr_report_params; end