Esempio n. 1
0
        public void GetValue(Guid id, Template templateDetails, IReportsData reportDetails)
        {
            var citationSummary = _citationSummaryQueryService.FindCitationSummary(id);
            var caseNumber      = citationSummary.Case != null ? citationSummary.Case.Number : string.Empty;

            if (templateDetails != null)
            {
                _reportHeaderBuilder.GenerateReportHeader(ModuleType.Citation.GetDescription(),
                                                          RelatedToType.Summary.GetDescription(), caseNumber,
                                                          citationSummary.Number, citationSummary.Agency.AgencyId, reportDetails,
                                                          templateDetails.CaseNumberReportDisplayType, templateDetails.ReportNumberReportDisplayType);

                #region Render fields section wise

                if (templateDetails.Sections.Any())
                {
                    foreach (var section in templateDetails.Sections)
                    {
                        PrepareCitationSummarySectionsForReport(section, section.Name, citationSummary, reportDetails);
                    }
                }

                #endregion
            }
            _attachmentBuilder.ReadAttachments(citationSummary.Attachments, reportDetails);
        }
 public CitationSummary Get(Guid id)
 {
     return(_citationSummaryQueryService.FindCitationSummary(id));
 }