Added calculation for daily planned wafer outs and display on production report.
This commit is contained in:
@ -7,6 +7,7 @@ namespace ReportingServices.Shared.ViewModels.ProductionReport
|
||||
public DateTime StartDate { get; set; }
|
||||
public List<ReactorOutsByDay> OutsByDay { get; set; }
|
||||
public List<ScrapByDay> ScrapByDay { get; set; }
|
||||
public int DailyPlanWafers { get; set; }
|
||||
public bool IsCurrentWeek { get; set; }
|
||||
|
||||
public YieldStatistics(DateTime startDate, bool isCurrentWeek)
|
||||
@ -15,10 +16,11 @@ namespace ReportingServices.Shared.ViewModels.ProductionReport
|
||||
IsCurrentWeek = isCurrentWeek;
|
||||
}
|
||||
|
||||
public void SetYieldInformation(YieldInformation yieldInformation)
|
||||
public void SetYieldInformation(YieldInformation yieldInformation, QuarterlyTargets targets)
|
||||
{
|
||||
OutsByDay = GetReactorOutsByDay(yieldInformation.Outs);
|
||||
ScrapByDay = yieldInformation.Scrap;
|
||||
DailyPlanWafers = targets.Yield_Outs / targets.PlanWorkingDays;
|
||||
}
|
||||
|
||||
public static List<string> GetDistinctDatesFromReactorOuts(List<ReactorOutsByRDS> outs)
|
||||
|
Reference in New Issue
Block a user