Added Hot Work Order information into downed tool table and as a line item in the daily report.

This commit is contained in:
Daniel Wathen
2023-01-18 16:03:42 -07:00
parent 930360a7a9
commit a963525b43
14 changed files with 63 additions and 743 deletions

View File

@ -75,6 +75,7 @@ public static class DailyReportHelper
Task<OutsAndScrapTotal> task4 = null;
Task<OutsAndScrapTotal> task5 = null;
Task<OutsAndScrapTotal> task6 = null;
Task<List<string>> task7 = null;
try
{
@ -108,6 +109,7 @@ public static class DailyReportHelper
task4 = ApiCaller.GetApi<OutsAndScrapTotal>(baseUrlScrapeDb + "GetOutsAndScrapTotals?startDate=" + task3.Result + "&endDate=" + currentDateTime.ToString());
task5 = ApiCaller.GetApi<OutsAndScrapTotal>(baseUrlScrapeDb + "GetOutsAndScrapTotals?startDate=" + task3.Result + "&endDate=" + report.StartDate.ToString());
task6 = ApiCaller.GetApi<OutsAndScrapTotal>(baseUrlScrapeDb + "GetOutsAndScrapTotals?startDate=" + task3.Result + "&endDate=" + report.StartDate.AddDays(-7).ToString());
task7 = ApiCaller.GetApi<List<string>>(baseUrlScrapeDb + "GetCurrentHotWORunning");
}
catch (Exception ex)
{
@ -133,7 +135,6 @@ public static class DailyReportHelper
report.SetReactorInfo(reactors, GetUnscheduledReactors(report));
report.ToolEvents = report.ToolEvents
.Where(x => x.Reactor is not "47")
.OrderBy(x => x.Reactor)
.ToList();
@ -153,6 +154,8 @@ public static class DailyReportHelper
report.CurrentWeek.QTDOutsAndScrap = task4.Result;
report.PreviousWeek.QTDOutsAndScrap = task4.Result;
report.CurrentHotWORunning = task7.Result;
}
catch (Exception ex)
{