public void GetValue(Guid id, string reportType, Template templateDetails, IReportsData reportDetails) { var callForServiceReportDetails = _callForServiceReportQueryService.FindCallForServiceReport(id); if (templateDetails != null) { _reportHeaderBuilder.GenerateReportHeader(ModuleType.CallForService.GetDescription(), reportType, callForServiceReportDetails.CaseNumber, callForServiceReportDetails.Number, callForServiceReportDetails.Agency.AgencyId, reportDetails, templateDetails.CaseNumberReportDisplayType, templateDetails.ReportNumberReportDisplayType); if (templateDetails.Sections.Any()) { foreach (var section in templateDetails.Sections) { PrepareCallForServiceReportSectionsForReport(section, section.Name, callForServiceReportDetails, reportDetails); } } } _attachmentBuilder.ReadAttachments(callForServiceReportDetails.Attachments, reportDetails); }
public CallForServiceReport Get(Guid id) { return(_reportQueryService.FindCallForServiceReport(id)); }