public void GetValue(Guid id, string reportType, Template templateDetails, IReportsData reportDetails) { var fieldInterviewReportDetails = _fieldInterviewReportQueryService.FindFieldInterviewReport(id); if (templateDetails != null) { _reportHeaderBuilder.GenerateReportHeader(ModuleType.FieldInterview.GetDescription(), reportType, fieldInterviewReportDetails.CaseNumber, fieldInterviewReportDetails.Number, fieldInterviewReportDetails.Agency.AgencyId, reportDetails, templateDetails.CaseNumberReportDisplayType, templateDetails.ReportNumberReportDisplayType); #region Render fields section wise if (templateDetails.Sections.Any()) { foreach (var section in templateDetails.Sections) { PrepareFieldInterviewReportSectionsForReport(section, section.Name, fieldInterviewReportDetails, reportDetails); } } #endregion } _attachmentBuilder.ReadAttachments(fieldInterviewReportDetails.Attachments, reportDetails); }
public FieldInterviewReport Get(Guid id) { return(_fieldInterviewReportQueryService.FindFieldInterviewReport(id)); }