Fixed bug for expanding yield columns in javascript file, added database calls for unload temps and tools by wafer size, and included unload temps and tools by wafer size in production passdown report.
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
using ReportingServices.Models.PlanningReport;
|
||||
using ReportingServices.ReportingObjects;
|
||||
using System.Data;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace ReportingServices.Dependency_Injections
|
||||
{
|
||||
@ -125,6 +126,43 @@ namespace ReportingServices.Dependency_Injections
|
||||
return weeklyPartChanges;
|
||||
}
|
||||
|
||||
public int[] GetNumberOfToolsByWaferSize()
|
||||
{
|
||||
int[] singleLoadLocks = new int[2];
|
||||
|
||||
OpenConnection();
|
||||
|
||||
SqlCommand cmd = _connection.CreateCommand();
|
||||
|
||||
string query = "SELECT " +
|
||||
" SUSC_POCKET_SIZE, " +
|
||||
" COUNT(SUSC_POCKET_SIZE) " +
|
||||
" FROM REACTOR " +
|
||||
" WHERE REACT_ASSIGNMENT IS NOT NULL " +
|
||||
" AND REACT_ASSIGNMENT <> 'Out of Service' " +
|
||||
" AND REACT_ASSIGNMENT <> '' " +
|
||||
"GROUP BY SUSC_POCKET_SIZE";
|
||||
|
||||
cmd.CommandText = query;
|
||||
|
||||
using (SqlDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
reader.Read();
|
||||
|
||||
singleLoadLocks[0] = int.Parse(reader[1].ToString());
|
||||
|
||||
reader.Read();
|
||||
|
||||
singleLoadLocks[1] = int.Parse(reader[1].ToString());
|
||||
}
|
||||
|
||||
cmd.Dispose();
|
||||
|
||||
CloseConnection();
|
||||
|
||||
return singleLoadLocks;
|
||||
}
|
||||
|
||||
public int[] GetNumberOfSingleLoadLocks()
|
||||
{
|
||||
int[] singleLoadLocks = new int[2];
|
||||
@ -160,5 +198,39 @@ namespace ReportingServices.Dependency_Injections
|
||||
|
||||
return singleLoadLocks;
|
||||
}
|
||||
|
||||
public int[] GetNumberOfToolUnloadTempsLessThan700()
|
||||
{
|
||||
int[] unloadTempTools = new int[2];
|
||||
|
||||
OpenConnection();
|
||||
|
||||
SqlCommand cmd = _connection.CreateCommand();
|
||||
|
||||
string query = "SELECT REACTOR_TYPE, COUNT(DISTINCT(REACTOR)) AS ULT FROM RDS " +
|
||||
"INNER JOIN RDS_LAYER lay ON lay.RDS_NO = SEQ " +
|
||||
"WHERE DATE_OUT > DATEADD(DAY, -1, SYSDATETIME()) " +
|
||||
" AND UL_TEMP< 700 " +
|
||||
"GROUP BY REACTOR_TYPE";
|
||||
|
||||
cmd.CommandText = query;
|
||||
|
||||
using (SqlDataReader reader = cmd.ExecuteReader())
|
||||
{
|
||||
reader.Read();
|
||||
|
||||
unloadTempTools[0] = int.Parse(reader[1].ToString());
|
||||
|
||||
reader.Read();
|
||||
|
||||
unloadTempTools[1] = int.Parse(reader[1].ToString());
|
||||
}
|
||||
|
||||
cmd.Dispose();
|
||||
|
||||
CloseConnection();
|
||||
|
||||
return unloadTempTools;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user