|
|
|
@ -3,6 +3,7 @@ package info.bukova.isspst.ui.reporting;
|
|
|
|
|
import info.bukova.isspst.reporting.Report;
|
|
|
|
|
import info.bukova.isspst.reporting.ReportDefinition;
|
|
|
|
|
import info.bukova.isspst.reporting.ReportType;
|
|
|
|
|
import info.bukova.isspst.services.Service;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -27,7 +28,8 @@ public class ReportDialogVM {
|
|
|
|
|
@Init
|
|
|
|
|
public void init(@ExecutionArgParam("reports") List<Report> reports,
|
|
|
|
|
@ExecutionArgParam("data") List<Object> data,
|
|
|
|
|
@ExecutionArgParam("singleObject") Object singleObject) {
|
|
|
|
|
@ExecutionArgParam("singleObject") Object singleObject,
|
|
|
|
|
@ExecutionArgParam("service") Service<Object> service) {
|
|
|
|
|
this.reports = reports;
|
|
|
|
|
|
|
|
|
|
if (data != null && data.size() > 0 && data.get(0).getClass() != reportDefinition.gatDataClass()) {
|
|
|
|
@ -36,6 +38,7 @@ public class ReportDialogVM {
|
|
|
|
|
|
|
|
|
|
dataList = data;
|
|
|
|
|
this.singleObject = singleObject;
|
|
|
|
|
reportDefinition.setService(service);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<Report> getReports() {
|
|
|
|
|