Added data pull for previous week and capability for production passdown to view previous week data, added tool state mapping json file and production passdown report shows owners, removed unnecessary jQuery package.

This commit is contained in:
Daniel Wathen
2022-12-07 10:44:11 -07:00
parent 3409ad58b7
commit 4592b035b6
16 changed files with 651 additions and 576 deletions

View File

@ -2,6 +2,8 @@
{
public class ManualReportEntries
{
public DayOfWeek Day { get; set; }
public DateTime Date { get; set; }
public int OperatorHeadcountDays { get; set; }
public int OperatorHeadcountNights { get; set; }
public int OperatorCallOutsDays { get; set; }

View File

@ -1,14 +0,0 @@
namespace ReportingServices.ReportingObjects
{
public class ManualReportEntriesByDay
{
public DayOfWeek Day { get; set; }
public ManualReportEntries Entries { get; set; }
public ManualReportEntriesByDay(DayOfWeek day, ManualReportEntries entries)
{
Day = day;
Entries = entries;
}
}
}

View File

@ -0,0 +1,10 @@
namespace ReportingServices.ReportingObjects
{
public class QuarterlyTargets
{
public int Reactor_Outs { get; set; }
public int Yield_Outs { get; set; }
public int IFX_Scrap { get; set; }
public float Yield { get; set; }
}
}

View File

@ -32,14 +32,14 @@
{
float elapsedTime = 0f;
if (ToolStateCurrents[ToolStateCurrents.Count - 1].BasicStateDescription.ToUpper() != "PRODUCTIVE")
if (ToolStateCurrents[ToolStateCurrents.Count - 1].BasicStateDescription.ToUpper() != "PRODUCTIVE" && ToolStateCurrents[ToolStateCurrents.Count - 1].BasicStateDescription.ToUpper() != "OUT OF SERVICE")
float.Parse(ToolStateCurrents[ToolStateCurrents.Count - 1].GanttElapsedHours);
for (int i = ToolStateCurrents.Count - 2; i >= 0; i--)
{
if (ToolStateCurrents[i].Tool == ToolStateCurrents[i + 1].Tool)
{
if (ToolStateCurrents[i].BasicStateDescription.ToUpper() != "PRODUCTIVE")
if (ToolStateCurrents[i].BasicStateDescription.ToUpper() != "PRODUCTIVE" && ToolStateCurrents[ToolStateCurrents.Count - 1].BasicStateDescription.ToUpper() != "OUT OF SERVICE")
elapsedTime += float.Parse(ToolStateCurrents[i].GanttElapsedHours);
}
else
@ -47,7 +47,7 @@
if (elapsedTime >= 12)
ToolsDownGreaterThan12Hours.Add(ToolStateCurrents[i + 1].Tool);
if (ToolStateCurrents[i].BasicStateDescription.ToUpper() != "PRODUCTIVE")
if (ToolStateCurrents[i].BasicStateDescription.ToUpper() != "PRODUCTIVE" && ToolStateCurrents[ToolStateCurrents.Count - 1].BasicStateDescription.ToUpper() != "OUT OF SERVICE")
elapsedTime = float.Parse(ToolStateCurrents[i].GanttElapsedHours);
else
elapsedTime = 0;
@ -61,7 +61,7 @@
{
if (tools.BasicStateDescription == "Productive")
UpTools++;
else
else if (tools.ReactorStatus != "Out of Service")
DownTools++;
}
}