public ReportListItem CreateReportListItem(Report report, Procedure rp, IPersistenceContext context) { var data = new ReportListItem(); UpdateListItem(data, rp.Order, context); UpdateListItem(data, rp.Order.Visit, context); UpdateListItem(data, rp, context); UpdateListItem(data, report, context); return data; }
private static void UpdateListItem(ReportListItem data, Report report, IPersistenceContext context) { data.ReportRef = report.GetRef(); data.ReportStatus = EnumUtils.GetEnumValueInfo(report.Status, context); }