First Commit

This commit is contained in:
Daniel Wathen
2022-11-30 13:15:01 -07:00
commit f996dcfb36
105 changed files with 76792 additions and 0 deletions

View 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; }
}
}

View File

@ -0,0 +1,8 @@
namespace ReportingServices.ReportingObjects
{
public class EquipmentStateByDay
{
public string StartTime { get; set; }
public string AvailablePct { get; set; }
}
}

View 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;
}
}
}

View 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; }
}
}

View 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;
}
}
}

View File

@ -0,0 +1,12 @@
namespace ReportingServices.ReportingObjects
{
public class ToolAvailibilityByType
{
public List<EquipmentStateByDay> EquipmentStates { get; set; }
public ToolAvailibilityByType(List<EquipmentStateByDay> equipmentStates)
{
EquipmentStates = equipmentStates;
}
}
}

View 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++;
}
}
}
}

View 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; }
}
}