From c11de016025c2785585f24b37c988505999761c5 Mon Sep 17 00:00:00 2001 From: Daniel Wathen Date: Thu, 26 Jan 2023 15:16:43 -0700 Subject: [PATCH] Made report header partial view which includes report title and date pulled to be included in each report. --- .../PlanningReport/WeeklyPartChangesReport.cshtml | 5 +++-- .../Views/ProductionReport/DailyReport.cshtml | 10 ++-------- .../Views/ProductionReport/HoldLotReport.cshtml | 5 +++-- .../Views/ProductionReport/NCRReport.cshtml | 6 +++--- ReportingServices.UI/Views/Shared/_ReportHeader.cshtml | 8 ++++++++ 5 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 ReportingServices.UI/Views/Shared/_ReportHeader.cshtml diff --git a/ReportingServices.UI/Views/PlanningReport/WeeklyPartChangesReport.cshtml b/ReportingServices.UI/Views/PlanningReport/WeeklyPartChangesReport.cshtml index f9be3e1..a48cfa7 100644 --- a/ReportingServices.UI/Views/PlanningReport/WeeklyPartChangesReport.cshtml +++ b/ReportingServices.UI/Views/PlanningReport/WeeklyPartChangesReport.cshtml @@ -2,11 +2,12 @@ @{ ViewData["Title"] = "Weekly Part Changes | Mesa Reporting Services"; + ViewData["ReportTitle"] = "Part Changes Report"; } -

Weekly Part Changes

+
@@ -14,7 +15,7 @@

Number of Part Changes: @Model.TotalPartChanges

-

@Model.StartDate - @Model.EndDate

+

Date Range: @Model.StartDate - @Model.EndDate

diff --git a/ReportingServices.UI/Views/ProductionReport/DailyReport.cshtml b/ReportingServices.UI/Views/ProductionReport/DailyReport.cshtml index 033b488..aec222e 100644 --- a/ReportingServices.UI/Views/ProductionReport/DailyReport.cshtml +++ b/ReportingServices.UI/Views/ProductionReport/DailyReport.cshtml @@ -21,18 +21,12 @@ @{ ViewData["Title"] = "Daily Passdown | Mesa Reporting Services"; + ViewData["ReportTitle"] = "Daily Report"; } -
-

Daily Report

-

-
- -
-

Date Pulled: @DateTime.Now

-
+ diff --git a/ReportingServices.UI/Views/ProductionReport/HoldLotReport.cshtml b/ReportingServices.UI/Views/ProductionReport/HoldLotReport.cshtml index f614a32..6fb5d50 100644 --- a/ReportingServices.UI/Views/ProductionReport/HoldLotReport.cshtml +++ b/ReportingServices.UI/Views/ProductionReport/HoldLotReport.cshtml @@ -2,12 +2,13 @@ @{ ViewData["Title"] = "Hold Lot Report | Mesa Reporting Services"; + ViewData["ReportTitle"] = "Hold Lot Report"; } -

Hold Lots

-

+ + diff --git a/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml b/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml index d511e5e..8836247 100644 --- a/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml +++ b/ReportingServices.UI/Views/ProductionReport/NCRReport.cshtml @@ -2,13 +2,13 @@ @{ ViewData["Title"] = "Open NCR Report | Mesa Reporting Services"; + ViewData["ReportTitle"] = "Open NCR Report"; } -

Open NCRs

-
-
+ +
diff --git a/ReportingServices.UI/Views/Shared/_ReportHeader.cshtml b/ReportingServices.UI/Views/Shared/_ReportHeader.cshtml new file mode 100644 index 0000000..a640883 --- /dev/null +++ b/ReportingServices.UI/Views/Shared/_ReportHeader.cshtml @@ -0,0 +1,8 @@ +
+

@ViewData["ReportTitle"].ToString()

+

+
+ +
+

Date Pulled: @DateTime.Now

+
\ No newline at end of file