Added Hot Work Order information into downed tool table and as a line item in the daily report.
This commit is contained in:
@ -75,6 +75,7 @@ public static class DailyReportHelper
|
||||
Task<OutsAndScrapTotal> task4 = null;
|
||||
Task<OutsAndScrapTotal> task5 = null;
|
||||
Task<OutsAndScrapTotal> task6 = null;
|
||||
Task<List<string>> task7 = null;
|
||||
|
||||
try
|
||||
{
|
||||
@ -108,6 +109,7 @@ public static class DailyReportHelper
|
||||
task4 = ApiCaller.GetApi<OutsAndScrapTotal>(baseUrlScrapeDb + "GetOutsAndScrapTotals?startDate=" + task3.Result + "&endDate=" + currentDateTime.ToString());
|
||||
task5 = ApiCaller.GetApi<OutsAndScrapTotal>(baseUrlScrapeDb + "GetOutsAndScrapTotals?startDate=" + task3.Result + "&endDate=" + report.StartDate.ToString());
|
||||
task6 = ApiCaller.GetApi<OutsAndScrapTotal>(baseUrlScrapeDb + "GetOutsAndScrapTotals?startDate=" + task3.Result + "&endDate=" + report.StartDate.AddDays(-7).ToString());
|
||||
task7 = ApiCaller.GetApi<List<string>>(baseUrlScrapeDb + "GetCurrentHotWORunning");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@ -133,7 +135,6 @@ public static class DailyReportHelper
|
||||
report.SetReactorInfo(reactors, GetUnscheduledReactors(report));
|
||||
|
||||
report.ToolEvents = report.ToolEvents
|
||||
.Where(x => x.Reactor is not "47")
|
||||
.OrderBy(x => x.Reactor)
|
||||
.ToList();
|
||||
|
||||
@ -153,6 +154,8 @@ public static class DailyReportHelper
|
||||
|
||||
report.CurrentWeek.QTDOutsAndScrap = task4.Result;
|
||||
report.PreviousWeek.QTDOutsAndScrap = task4.Result;
|
||||
|
||||
report.CurrentHotWORunning = task7.Result;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -578,4 +578,35 @@ public class ScrapeDatabaseRepository : IScrapeDatabaseRepository
|
||||
|
||||
return lots;
|
||||
}
|
||||
|
||||
public List<string> GetCurrentHotWORunning()
|
||||
{
|
||||
List<string> lots = new();
|
||||
|
||||
OpenConnection();
|
||||
|
||||
SqlCommand cmd = _connection.CreateCommand();
|
||||
|
||||
string query = "SELECT REACT_NO " +
|
||||
" FROM SCHED_DET_NG schd " +
|
||||
"INNER JOIN WO_LOG wlog ON WO = WO_NO " +
|
||||
" WHERE STOP_DTM > SYSDATETIME() " +
|
||||
" AND START_DTM < SYSDATETIME() " +
|
||||
" AND HOT_FLAG = 1 " +
|
||||
"ORDER BY REACT_NO";
|
||||
|
||||
cmd.CommandText = query;
|
||||
|
||||
using (SqlDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
lots.Add("R" + reader[0].ToString());
|
||||
}
|
||||
|
||||
cmd.Dispose();
|
||||
|
||||
CloseConnection();
|
||||
|
||||
return lots;
|
||||
}
|
||||
}
|
@ -20,4 +20,5 @@ public interface IScrapeDatabaseRepository
|
||||
public OutsAndScrapTotal GetOutsAndScrapTotals(string startDate, string endDate);
|
||||
public DateTime GetQuarterStartDate();
|
||||
public List<HoldLot> GetCurrentHoldLots();
|
||||
public List<string> GetCurrentHotWORunning();
|
||||
}
|
@ -17,6 +17,7 @@ public class DailyReport
|
||||
public ManualReportEntries ManualReportEntries { get; set; }
|
||||
public List<UnloadTempsByDay> UnloadTempsByDay { get; set; }
|
||||
public List<SLLTool> SLLTools { get; set; }
|
||||
public List<string> CurrentHotWORunning { get; set; }
|
||||
public int NumberOfToolsWaferSize6IN { get; set; }
|
||||
public int NumberOfToolsWaferSize8IN { get; set; }
|
||||
public int NumberOfToolsWaferSize6INScheduled { get; set; }
|
||||
|
Reference in New Issue
Block a user