コード例 #1
0
        private ReportData CreateReportData()
        {
            var reportPQMs = new ReportPQMs();

            int numPqms = _vm.PqmSummaries.Count();

            ReportPQM[] reportPQMList = new ReportPQM[numPqms];
            var         reportPQM     = new ReportPQM();
            int         i             = 0;

            foreach (var pqm in _vm.PqmSummaries)
            {
                reportPQMList[i]                       = new ReportPQM();
                reportPQMList[i].Achieved              = pqm.Achieved;
                reportPQMList[i].DVHObjective          = pqm.DVHObjective;
                reportPQMList[i].Goal                  = pqm.Goal;
                reportPQMList[i].StructureNameWithCode = pqm.Structure.StructureNameWithCode;
                reportPQMList[i].StructVolume          = pqm.StructVolume;
                reportPQMList[i].TemplateId            = pqm.TemplateId;
                reportPQMList[i].Variation             = pqm.Variation;
                reportPQMList[i].Met                   = pqm.Met;
                i++;
            }
            reportPQMs.PQMs = reportPQMList;

            return(new ReportData
            {
                ReportPatient = new ReportPatient
                {
                    Id = _vm.Patient.Id,
                    FirstName = _vm.Patient.FirstName,
                    LastName = _vm.Patient.LastName,
                    Sex = GetPatientSex(_vm.Patient.Sex),
                    Birthdate = (DateTime)_vm.Patient.DateOfBirth,
                    Doctor = new Doctor
                    {
                        Name = _vm.Patient.PrimaryOncologistId
                    }
                },
                ReportPlanningItem = new ReportPlanningItem
                {
                    Id = _vm.ActivePlanningItem.PlanningItemIdWithCourse,
                    Type = _vm.ActivePlanningItem.PlanningItemType,
                    Created = _vm.ActivePlanningItem.Creation
                },
                ReportStructureSet = new ReportStructureSet
                {
                    Id = _vm.StructureSet.Id,
                    Image = new ReportImage
                    {
                        Id = _vm.Image.Id,
                        CreationTime = (DateTime)_vm.Image.CreationDateTime
                    }
                },
                ReportPQMs = reportPQMs,
            });
        }
コード例 #2
0
ファイル: PQMsContent.cs プロジェクト: rookiess06/PlanCheck
        private void AddPQMTable(Section section, ReportPQMs PQMs)
        {
            var table = section.AddTable();

            FormatTable(table);
            AddColumnsAndHeaders(table);
            AddPQMRows(table, PQMs);

            AddLastRowBorder(table);
            AlternateRowShading(table);
        }
コード例 #3
0
ファイル: PQMsContent.cs プロジェクト: rookiess06/PlanCheck
        private void AddPQMRows(Table table, ReportPQMs PQMs)
        {
            foreach (var pqm in PQMs.PQMs)
            {
                var row = table.AddRow();
                row.Format.Font.Size  = 10;
                row.VerticalAlignment = VerticalAlignment.Center;

                row.Cells[0].AddParagraph(pqm.TemplateId);
                row.Cells[1].AddParagraph(pqm.StructureNameWithCode);
                row.Cells[2].AddParagraph(pqm.StructVolume);
                row.Cells[3].AddParagraph(pqm.DVHObjective);
                row.Cells[4].AddParagraph(pqm.Goal);
                row.Cells[5].AddParagraph(pqm.Achieved);
                row.Cells[6].AddParagraph(pqm.Met);
            }
        }
コード例 #4
0
ファイル: PQMsContent.cs プロジェクト: rookiess06/PlanCheck
 public void Add(Section section, ReportStructureSet structureSet, ReportPlanningItem reportPlanningItem, ReportPQMs reportPQMs)
 {
     AddHeading(section, structureSet, reportPlanningItem);
     AddPQMs(section, reportPQMs);
 }
コード例 #5
0
ファイル: PQMsContent.cs プロジェクト: rookiess06/PlanCheck
 private void AddPQMs(Section section, ReportPQMs PQMs)
 {
     AddTableTitle(section, "PQMs");
     AddPQMTable(section, PQMs);
 }
コード例 #6
0
 private void AddPQMs(Section section, ReportStructureSet structureSet, ReportPlanningItem reportPlanningItem, ReportPQMs reportPQMs)
 {
     new PQMsContent().Add(section, structureSet, reportPlanningItem, reportPQMs);
 }