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:
@ -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; }
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
10
ReportingServices/ReportingObjects/QuarterlyTargets.cs
Normal file
10
ReportingServices/ReportingObjects/QuarterlyTargets.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user