Skip to content

Commit 59a1cd5

Browse files
LNK-4526: Add Timestamp for Reports (#1333)
* LNK-4526: Add Timestamp for Reports * LNK-4526: Add timestamp for Reports
1 parent 51aa1b4 commit 59a1cd5

5 files changed

Lines changed: 13 additions & 4 deletions

File tree

DotNet/Report/Application/Factory/ScheduledReportFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public ScheduledReportListSummary FromDomain(ReportSchedule reportScheduleModel)
1919
SubmitDate = reportScheduleModel.SubmitReportDateTime,
2020
ReportTypes = reportScheduleModel.ReportTypes,
2121
Frequency = reportScheduleModel.Frequency,
22-
PayloadRootUri = reportScheduleModel.PayloadRootUri
22+
PayloadRootUri = reportScheduleModel.PayloadRootUri,
23+
CreatedDate = reportScheduleModel.CreateDate
2324
};
2425
}
2526
}

DotNet/Shared/Application/Models/Report/ScheduledReportListSummary.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class ScheduledReportListSummary
1616
public int InitialPopulationCount { get; set; }
1717
public ScheduledReportMetrics? ReportMetrics { get; set; }
1818
public string? PayloadRootUri { get; set; }
19+
public DateTime? CreatedDate { get; set; }
1920
}
2021

2122
public class ScheduledReportMetrics

Web/Admin.UI/src/app/components/reports/reports-dashboard/reports-dashboard.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
'status-submitted': report.submitted == true
7272
}">{{ report.submitted ? 'Submitted' : 'Pending' }}</span>
7373
<span style="display: block; margin-top: 1em;"
74-
*ngIf="report.submitted">{{ report.submitDate | date }}</span>
74+
*ngIf="report.submitted">{{ report.submitDate }}</span>
75+
<span style="display: block; margin-top: 1em;"
76+
*ngIf="report.createdDate">{{ report.createdDate }}</span>
7577
</td>
7678
<td>
7779
<button type="button"

Web/Admin.UI/src/app/components/tenant/facility-view/facility-view.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@
138138
>{{ report.submitted ? 'Submitted' : 'Pending' }}</span>
139139
@if (report.submitted) {
140140
<span style="display: block; margin-top: 1em;"
141-
>{{ report.submitDate | date }}</span>
141+
>{{ report.submitDate }}</span>
142+
}
143+
@if (report.createdDate) {
144+
<span style="display: block; margin-top: 1em;"
145+
>{{ report.createdDate }}</span>
142146
}
143147
</td>
144148
<td>

Web/Admin.UI/src/app/components/tenant/facility-view/report-view.interface.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface IReportListSummary {
1212
censusCount: number;
1313
initialPopulationCount: number;
1414
reportMetrics: IScheduledReportMetrics;
15+
createdDate: Date;
1516
}
1617

1718
export interface ICensusCount {
@@ -38,7 +39,7 @@ export interface IMeasureReportSummary {
3839
validationStatus: string;
3940
resourceCount: number;
4041
resourceCountSummary: Record<string, number>;
41-
reportScheduleId : string;
42+
reportScheduleId : string
4243
}
4344

4445
export class IPagedMeasureReportSummary {

0 commit comments

Comments
 (0)