First Commit
This commit is contained in:
21
ReportingServices/ReportingObjects/DailyReportingSummary.cs
Normal file
21
ReportingServices/ReportingObjects/DailyReportingSummary.cs
Normal file
@ -0,0 +1,21 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class DailyReportingSummary
|
||||
{
|
||||
public int OperatorHeadcountDays { get; set; }
|
||||
public int OperatorHeadcountNights { get; set; }
|
||||
public int OperatorCallOutsDays { get; set; }
|
||||
public int OperatorCallOutsNights { get; set; }
|
||||
public int EngineeringHeadcountDays { get; set; }
|
||||
public int EngineeringHeadcountNights { get; set; }
|
||||
public int EngineeringCallOutsDays { get; set; }
|
||||
public int EngineeringCallOutsNights { get; set; }
|
||||
public int MaintenanceHeadcountDays { get; set; }
|
||||
public int MaintenanceHeadcountNights { get; set; }
|
||||
public int MaintenanceCallOutsDays { get; set; }
|
||||
public int MaintenanceCallOutsNights { get; set; }
|
||||
public string BottleChanges { get; set; }
|
||||
public string DailyPartChanges { get; set; }
|
||||
public string WeeklyPartChanges { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class EquipmentStateByDay
|
||||
{
|
||||
public string StartTime { get; set; }
|
||||
public string AvailablePct { get; set; }
|
||||
}
|
||||
}
|
14
ReportingServices/ReportingObjects/ReactorOutsByDay.cs
Normal file
14
ReportingServices/ReportingObjects/ReactorOutsByDay.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class ReactorOutsByDay
|
||||
{
|
||||
public string StartDate { get; set; }
|
||||
public int TotalWafers { get; set; }
|
||||
|
||||
public ReactorOutsByDay(string startDate, int totalWafers)
|
||||
{
|
||||
StartDate = startDate;
|
||||
TotalWafers = totalWafers;
|
||||
}
|
||||
}
|
||||
}
|
9
ReportingServices/ReportingObjects/ReactorOutsByRDS.cs
Normal file
9
ReportingServices/ReportingObjects/ReactorOutsByRDS.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class ReactorOutsByRDS
|
||||
{
|
||||
public string RDS_NO { get; set; }
|
||||
public string Units { get; set; }
|
||||
public string EndProcessTime { get; set; }
|
||||
}
|
||||
}
|
20
ReportingServices/ReportingObjects/ScrapByDay.cs
Normal file
20
ReportingServices/ReportingObjects/ScrapByDay.cs
Normal file
@ -0,0 +1,20 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class ScrapByDay
|
||||
{
|
||||
public string StartDate { get; set; }
|
||||
public int TW_PROD { get; set; }
|
||||
public int TOT_REJ_CUST { get; set; }
|
||||
public int TOT_REJ_MANU { get; set; }
|
||||
public int TOT_REJ_WFRS { get; set; }
|
||||
|
||||
public ScrapByDay(string startDate, string tw_prod, string tot_rej_cust, string tot_rej_manu)
|
||||
{
|
||||
StartDate = startDate;
|
||||
TW_PROD = int.Parse(tw_prod);
|
||||
TOT_REJ_CUST = int.Parse(tot_rej_cust);
|
||||
TOT_REJ_MANU = int.Parse(tot_rej_manu);
|
||||
TOT_REJ_WFRS = TOT_REJ_CUST + TOT_REJ_MANU;
|
||||
}
|
||||
}
|
||||
}
|
12
ReportingServices/ReportingObjects/ToolAvailibilityByType.cs
Normal file
12
ReportingServices/ReportingObjects/ToolAvailibilityByType.cs
Normal file
@ -0,0 +1,12 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class ToolAvailibilityByType
|
||||
{
|
||||
public List<EquipmentStateByDay> EquipmentStates { get; set; }
|
||||
|
||||
public ToolAvailibilityByType(List<EquipmentStateByDay> equipmentStates)
|
||||
{
|
||||
EquipmentStates = equipmentStates;
|
||||
}
|
||||
}
|
||||
}
|
69
ReportingServices/ReportingObjects/ToolStateByType.cs
Normal file
69
ReportingServices/ReportingObjects/ToolStateByType.cs
Normal file
@ -0,0 +1,69 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class ToolStateByType
|
||||
{
|
||||
public int DownTools { get; set; }
|
||||
public int UpTools { get; set; }
|
||||
public List<ToolStateCurrent> ToolStateCurrents { get; set; }
|
||||
public List<string> ToolsDownGreaterThan12Hours { get; set; }
|
||||
|
||||
public ToolStateByType(List<ToolStateCurrent> toolStateCurrents)
|
||||
{
|
||||
ToolStateCurrents = toolStateCurrents;
|
||||
ToolsDownGreaterThan12Hours = new List<string>();
|
||||
UpTools = 0;
|
||||
DownTools = 0;
|
||||
|
||||
GetToolsDownGreaterThan12Hours();
|
||||
GetMostRecentTransactions();
|
||||
DetermineUpAndDownTools();
|
||||
}
|
||||
|
||||
public void GetMostRecentTransactions()
|
||||
{
|
||||
for (int i = ToolStateCurrents.Count - 2; i >= 0; i--)
|
||||
{
|
||||
if (ToolStateCurrents[i].Tool == ToolStateCurrents[i + 1].Tool)
|
||||
ToolStateCurrents.RemoveAt(i);
|
||||
}
|
||||
}
|
||||
|
||||
public void GetToolsDownGreaterThan12Hours()
|
||||
{
|
||||
float elapsedTime = 0f;
|
||||
|
||||
if (ToolStateCurrents[ToolStateCurrents.Count - 1].BasicStateDescription.ToUpper() != "PRODUCTIVE")
|
||||
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")
|
||||
elapsedTime += float.Parse(ToolStateCurrents[i].GanttElapsedHours);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (elapsedTime >= 12)
|
||||
ToolsDownGreaterThan12Hours.Add(ToolStateCurrents[i + 1].Tool);
|
||||
|
||||
if (ToolStateCurrents[i].BasicStateDescription.ToUpper() != "PRODUCTIVE")
|
||||
elapsedTime = float.Parse(ToolStateCurrents[i].GanttElapsedHours);
|
||||
else
|
||||
elapsedTime = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void DetermineUpAndDownTools()
|
||||
{
|
||||
foreach (ToolStateCurrent tools in ToolStateCurrents)
|
||||
{
|
||||
if (tools.BasicStateDescription == "Productive")
|
||||
UpTools++;
|
||||
else
|
||||
DownTools++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
ReportingServices/ReportingObjects/ToolStateCurrent.cs
Normal file
15
ReportingServices/ReportingObjects/ToolStateCurrent.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace ReportingServices.ReportingObjects
|
||||
{
|
||||
public class ToolStateCurrent
|
||||
{
|
||||
public string Tool { get; set; }
|
||||
public string TranTime { get; set; }
|
||||
public string GanttEndTime { get; set; }
|
||||
public string GanttElapsedHours { get; set; }
|
||||
public string BasicStateDescription { get; set; }
|
||||
public string SubState { get; set; }
|
||||
public string ReactorStatus { get; set; }
|
||||
public string Comment { get; set; }
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user