Beispiel #1
0
        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);
        }
Beispiel #2
0
 public CallForServiceReport Get(Guid id)
 {
     return(_reportQueryService.FindCallForServiceReport(id));
 }