コード例 #1
0
 public void PdfHumCaseInvestigationTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportHumCaseInvestigation(new HumIdModel("en", 1, 2, 3, 4, false)));
     }
 }
コード例 #2
0
 public void PdfHumUrgentyNotificationTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportHumUrgentyNotification(new BaseIdModel("en", 1, false)));
     }
 }
コード例 #3
0
 public void PdfVetActiveSurveillanceSampleCollectedTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportVetActiveSurveillanceSampleCollected(new BaseIdModel("en", 1, false)));
     }
 }
コード例 #4
0
        public ActionResult HumanInvestigationReport(long id)
        {
            byte[] report = null;
            using (var manager = DbManagerFactory.Factory.Create(EidssUserContext.Instance))
            {
                var  acc         = HumanCase.Accessor.Instance(null);
                var  humanCase   = acc.SelectByKey(manager, id);
                long diagnosisId = humanCase.idfsFinalDiagnosis.HasValue
                    ? humanCase.idfsFinalDiagnosis.Value
                    : humanCase.idfsTentativeDiagnosis.Value;
                if (humanCase.FFPresenterCs.CurrentObservation.HasValue && humanCase.FFPresenterEpi.CurrentObservation.HasValue)
                {
                    using (var wrapper = new ReportClientWrapper())
                    {
                        var model = new HumIdModel(ModelUserContext.CurrentLanguage,
                                                   humanCase.idfCase,
                                                   humanCase.FFPresenterEpi.CurrentObservation.Value,
                                                   humanCase.FFPresenterCs.CurrentObservation.Value,
                                                   diagnosisId,
                                                   ModelUserContext.Instance.IsArchiveMode);

                        report = wrapper.Client.ExportHumCaseInvestigation(model);
                    }
                }
            }
            return(File(report, "application/pdf", "HumanInvestigationReport.pdf"));
        }
コード例 #5
0
 public void PdfExportVetSamplesBySampleTypeTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportVetSamplesBySampleType(new BaseYearModel("en", 2012, false)));
     }
 }
コード例 #6
0
 public void ExportExistingBarcodesPdfTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportExistingBarcodes((long)NumberingObjectEnum.Sample, new[] { 50856020000000 }));
     }
 }
コード例 #7
0
 public void UniOutbreakPdfTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportOutbreak(new BaseIdModel("en", 1, false)));
     }
 }
コード例 #8
0
 public void PdfVetYearlySituationTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportVetYearlySituation(new BaseYearModel("en", 2012, false)));
     }
 }
コード例 #9
0
 public void PdfLimAccessionInTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLimAccessionIn(new BaseIdModel("en", 1, false)));
     }
 }
コード例 #10
0
 public void PdfLimContainerDetailsTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLimSample(new BaseIdModel("en", 1, false)));
     }
 }
コード例 #11
0
 public void PdfLimSampleTransferTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLimSampleTransfer(new BaseIdModel("en", 1, false)));
     }
 }
コード例 #12
0
 public void PdfLimBatchTestTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLimBatchTest(new LimBatchTestModel("en", 1, 2, false)));
     }
 }
コード例 #13
0
 public ActionResult VetInvestigationReport(long id)
 {
     byte[] report;
     using (DbManagerProxy manager = DbManagerFactory.Factory.Create(ModelUserContext.Instance))
     {
         VetCase.Accessor acc         = VetCase.Accessor.Instance(null);
         VetCase          vetCase     = acc.SelectByKey(manager, id);
         long             diagnosisId = -1;
         if (vetCase.idfsFinalDiagnosis.HasValue || vetCase.idfsTentativeDiagnosis.HasValue)
         {
             diagnosisId = vetCase.idfsFinalDiagnosis.HasValue
                               ? vetCase.idfsFinalDiagnosis.Value
                               : vetCase.idfsTentativeDiagnosis.Value;
         }
         using (var wrapper = new ReportClientWrapper())
         {
             var model = new VetIdModel(ModelUserContext.CurrentLanguage,
                                        vetCase.idfCase,
                                        diagnosisId, BaseSettings.PrintMapInVetReports,
                                        ModelUserContext.Instance.IsArchiveMode);
             report = vetCase._HACode == (int)HACode.Livestock
                          ? wrapper.Client.ExportVetLivestockInvestigation(model)
                          : wrapper.Client.ExportVetAvianInvestigation(model);
         }
     }
     return(File(report, "application/pdf", "VetInvestigationReport.pdf"));
 }
コード例 #14
0
 public void PdfVetActiveSurveillanceTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportVetActiveSurveillance(new BaseYearModel("en", 2012, false)));
     }
 }
コード例 #15
0
 public void ExportNewBarcodesPdfTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportNewBarcodes((long)NumberingObjectEnum.HumanCase, 5));
     }
 }
コード例 #16
0
 public void PdfVetAggregateCaseTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportVetAggregateCase(new AggregateModel("en", 1, 6707800000000, 2, false)));
     }
 }
コード例 #17
0
 public void PdfVetLivestockInvestigationTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportVetLivestockInvestigation(new VetIdModel("en", 1, 2, false, false)));
     }
 }
コード例 #18
0
 public void PdfLimSampleDestructionTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLimSampleDestruction(new IdListModel("en", new long[] { 1, 2 }, false)));
     }
 }
コード例 #19
0
 public void PdfLimContainerContentPdfTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLimContainerContent(
                       new LimContainerContentModel("en", 1, null, false)));
     }
 }
コード例 #20
0
 public void PdfHumMonthInfectiousDiseaseV61Test()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         var model = new MonthInfectiousDiseaseModel("en", 2012, 1, true, false);
         AssertPDF(wrapper.Client.ExportHumMonthInfectiousDiseaseV61(model));
     }
 }
コード例 #21
0
 public void PdfExportHumComparativeSeveralYearsGGReportTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         var model = new ComparativeGGSeveralYearsSurrogateModel("en", 2015, 2016, new [] { "1", "2" }, new string[0], "xxx", null, null, null, null, null, new List <PersonalDataGroup>(), false);
         AssertPDF(wrapper.Client.ExportHumComparativeSeveralYearsGGReport(model));
     }
 }
コード例 #22
0
 public void PdfHumComparativeGGReportTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         var model = new ComparativeGGSurrogateModel("en", null, null, null, null, 2015, 2016, 1, 2, null, new List <PersonalDataGroup>(), false);
         AssertPDF(wrapper.Client.ExportHumComparativeGGReport(model));
     }
 }
コード例 #23
0
 public void PdfHumAnnualInfectiousDiseaseTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         var model = new AnnualInfectiousDiseaseModel("en", 2012, false);
         AssertPDF(wrapper.Client.ExportHumAnnualInfectiousDisease(model));
     }
 }
コード例 #24
0
 public void PdfAssignmentLabDiagnosticAZTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportAssignmentLabDiagnosticAZ(
                       new AssignmentLabDiagnosticModel("en", "123", 123, false)));
     }
 }
コード例 #25
0
 public void PdfLaboratoryResearchResultTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         var model = new VetLaboratoryResearchResultModel("en", "xxx", null, "aaa", "bbb", "ccc", false);
         AssertPDF(wrapper.Client.ExportVetLaboratoryResearchResult(model));
     }
 }
コード例 #26
0
 public void PdfHum60BJournalTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         var model = new Hum60BJournalModel("en", DateTime.Now.AddMonths(-1), DateTime.Now, false);
         AssertPDF(wrapper.Client.ExportHum60BJournal(model));
     }
 }
コード例 #27
0
 public void PdfHumAntibioticResistanceCardLMATest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportHumAntibioticResistanceCardLma(
                       new VetLabSampleModel("en", "123", false)));
     }
 }
コード例 #28
0
 public void PdfLabTestingResultsAZTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportLabTestingResultsAZ(
                       new LabTestingTesultsModel("en", "123", 1234, false)));
     }
 }
コード例 #29
0
 public void AdmEventLogPdfTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportAdmEventLog(
                       new BaseIntervalModel("en", DateTime.Now.AddMonths(-1), DateTime.Now, false)));
     }
 }
コード例 #30
0
 public void PdfHumMicrobiologyResearchCardTest()
 {
     using (var wrapper = new ReportClientWrapper())
     {
         AssertPDF(wrapper.Client.ExportHumMicrobiologyResearchCard(
                       new HumanLabSampleModel("en", "123", "", "", false)));
     }
 }