Ejemplo n.º 1
0
        private void FindSummaryForReport(Guid id, ModuleType moduleType)
        {
            var agencyId   = _summaryQueryService.GetSummaryInfo(id).Agency.AgencyId;
            var templateId = _templateQueryService.GetDefaultTemplate(agencyId, moduleType).Id;

            var templateDetails = GetTemplateDetails(templateId);

            if (templateDetails != null)
            {
                switch (moduleType)
                {
                case ModuleType.Arrest:
                    _arrestSummaryReportBuilder.GetValue(id, templateDetails, _reportDetails);
                    break;

                case ModuleType.Incident:
                    _incidentSummaryBuilder.GetValue(id, templateDetails, _reportDetails);
                    break;

                case ModuleType.FieldInterview:
                    _fieldInterViewSummaryBuilder.GetValue(id, templateDetails, _reportDetails);
                    break;

                case ModuleType.CallForService:
                    _callforserviceSummaryBuilder.GetValue(id, templateDetails, _reportDetails);
                    break;

                case ModuleType.OtherEvent:
                    _otherEventSummaryBuilder.GetValue(id, templateDetails, _reportDetails);
                    break;

                case ModuleType.Citation:
                    _citationSummaryReportBuilder.GetValue(id, templateDetails, _reportDetails);
                    break;
                }
            }
        }
Ejemplo n.º 2
0
 public Template GetDefaultTemplate(Guid agencyId, ModuleType moduleType)
 {
     return(_templateQueryService.GetDefaultTemplate(agencyId, moduleType));
 }