Moved API and DB methods to interfaces in order to leverage Dependency Injection, disolved APICaller class, including functionality in several other functions, included Single Load Lock information into Production Passdown report, changed persistant data file to json instead of xml, and adjusted persistant data file to include a week's worth of data instead of a single day.

This commit is contained in:
Daniel Wathen
2022-12-02 14:41:19 -07:00
parent e9c071c8f7
commit 740896adf0
31 changed files with 857 additions and 549 deletions

View File

@ -0,0 +1,16 @@
namespace ReportingServices.Models.PlanningReport
{
public class ReactorPSNWORuns
{
public string REACTOR { get; set; }
public string PSN { get; set; }
public int WO_COUNT { get; set; }
public ReactorPSNWORuns(string reactor, string psn, int wo_count)
{
REACTOR = reactor;
PSN = psn;
WO_COUNT = wo_count;
}
}
}

View File

@ -2,15 +2,17 @@
{
public class WeeklyPartChanges
{
public string REACTOR { get; set; }
public string PSN { get; set; }
public int WO_COUNT { get; set; }
public int TotalPartChanges { get; set; }
public string StartDate { get; set; }
public string EndDate { get; set; }
public List<ReactorPSNWORuns> ReactorPSNWORuns { get; set; }
public WeeklyPartChanges(string reactor, string psn, int wo_count)
public WeeklyPartChanges(int totalPartChanges, string startDate, string endDate, List<ReactorPSNWORuns> reactorPSNWORuns)
{
REACTOR = reactor;
PSN = psn;
WO_COUNT = wo_count;
TotalPartChanges = totalPartChanges;
StartDate = startDate;
EndDate = endDate;
ReactorPSNWORuns = reactorPSNWORuns;
}
}
}