Working in the refactoring the code of reports (SLA_monthly).

This commit is contained in:
mdtrooper 2015-05-05 13:15:10 +02:00
parent 5545e4e616
commit c2fdcbb1d8
2 changed files with 11 additions and 4 deletions

View File

@ -421,6 +421,14 @@ function reporting_make_reporting_data($id_report, $date, $time,
$force_width_chart, $force_width_chart,
$force_height_chart); $force_height_chart);
break; break;
case 'SLA_monthly':
$report['contents'][] = reporting_enterprise_sla_monthly_refactoriced(
$report,
$content);
break;
case 'SLA_services':
break;
} }
} }

View File

@ -258,6 +258,9 @@ function reporting_html_print_report($report, $mini = false) {
case 'SLA': case 'SLA':
reporting_html_SLA($table, $item, $mini); reporting_html_SLA($table, $item, $mini);
break; break;
case 'SLA_monthly':
reporting_enterprise_html_SLA_monthly($table, $item, $mini);
break;
} }
if ($item['type'] == 'agent_module') if ($item['type'] == 'agent_module')
@ -4045,10 +4048,6 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
$item_title = $content['name']; $item_title = $content['name'];
switch ($content["type"]) { switch ($content["type"]) {
case 'SLA_monthly':
if (function_exists("reporting_enterprise_sla_monthly"))
reporting_enterprise_sla_monthly($mini, $content, $report, $table, $item_title);
break;
case 'SLA_services': case 'SLA_services':
if (function_exists("reporting_enterprise_sla_services")) if (function_exists("reporting_enterprise_sla_services"))
reporting_enterprise_sla_services($mini, $content, $report, $table, $item_title); reporting_enterprise_sla_services($mini, $content, $report, $table, $item_title);