Changes to support barcode scanner and
new CDE5 Windows 7 machine
This commit is contained in:
@ -90,24 +90,32 @@ public class ProcessData : IProcessData
|
||||
{
|
||||
if (segments.Length > 0)
|
||||
{
|
||||
Title = segments[0];
|
||||
// Remove illegal characters \/:*?"<>| found in the Run.
|
||||
Run = Regex.Replace(segments[0], @"[\\,\/,\:,\*,\?,\"",\<,\>,\|]", "_").Split('\r')[0].Split('\n')[0];
|
||||
string[] parsedBatch = segments[0].Split('-');
|
||||
if (parsedBatch.Length > 0)
|
||||
Reactor = parsedBatch[0];
|
||||
if (parsedBatch.Length > 1)
|
||||
RDS = parsedBatch[1];
|
||||
if (parsedBatch.Length > 2)
|
||||
// Remove illegal characters \/:*?"<>| found in the title.
|
||||
string title = Regex.Replace(segments[0], @"[\\,\/,\:,\*,\?,\"",\<,\>,\|]", "_").Split('\r')[0].Split('\n')[0];
|
||||
if (title.StartsWith("1T") || title.StartsWith("1t"))
|
||||
title = title.Substring(2);
|
||||
Title = title;
|
||||
Run = title;
|
||||
string[] parsedBatch = title.Split('-');
|
||||
if (parsedBatch.Length == 1)
|
||||
RDS = title;
|
||||
else
|
||||
{
|
||||
string[] parsedPSN = parsedBatch[2].Split('.');
|
||||
if (parsedPSN.Length > 0)
|
||||
PSN = parsedPSN[0];
|
||||
if (parsedPSN.Length > 1)
|
||||
Layer = parsedPSN[1];
|
||||
if (parsedBatch.Length > 0)
|
||||
Reactor = parsedBatch[0];
|
||||
if (parsedBatch.Length > 1)
|
||||
RDS = parsedBatch[1];
|
||||
if (parsedBatch.Length > 2)
|
||||
{
|
||||
string[] parsedPSN = parsedBatch[2].Split('.');
|
||||
if (parsedPSN.Length > 0)
|
||||
PSN = parsedPSN[0];
|
||||
if (parsedPSN.Length > 1)
|
||||
Layer = parsedPSN[1];
|
||||
}
|
||||
if (parsedBatch.Length > 3)
|
||||
Zone = parsedBatch[3];
|
||||
}
|
||||
if (parsedBatch.Length > 3)
|
||||
Zone = parsedBatch[3];
|
||||
}
|
||||
}
|
||||
|
||||
@ -217,19 +225,19 @@ public class ProcessData : IProcessData
|
||||
for (int i = 0; i < lines.Length; i++)
|
||||
{
|
||||
segments = lines[i].Split(separator, StringSplitOptions.RemoveEmptyEntries);
|
||||
if (lines[i].Contains(",<Title>"))
|
||||
if (lines[i].Contains("<Title>"))
|
||||
SetTitleData(segments);
|
||||
else if (lines[i].Contains(",<FileName, Proj,Rcpe, LotID,WfrID>"))
|
||||
else if (lines[i].Contains("<FileName, Proj,Rcpe, LotID,WfrID"))
|
||||
SetFileNameData(segments);
|
||||
else if (lines[i].Contains(",<DateTime,Temp,TCR%,N|P>"))
|
||||
else if (lines[i].Contains("<DateTime,Temp,TCR%,N|P>"))
|
||||
SetDateTimeData(logistics, segments);
|
||||
else if (lines[i].Contains(",<Operator, Epuipment>"))
|
||||
else if (lines[i].Contains("<Operator, Epuipment>"))
|
||||
SetOperatorData(segments);
|
||||
else if (lines[i].Contains(",<Engineer>"))
|
||||
else if (lines[i].Contains("<Engineer>"))
|
||||
SetEngineerData(segments);
|
||||
else if (lines[i].Contains(",<NumProbePoints, SingleOrDualProbeConfig, #ActPrbPts, Rsens,IdrvMx,VinGain, DataRejectSigma, MeritThreshold>"))
|
||||
else if (lines[i].Contains("<NumProbePoints, SingleOrDualProbeConfig, #ActPrbPts, Rsens,IdrvMx,VinGain, DataRejectSigma, MeritThreshold"))
|
||||
SetNumProbePointsData(segments);
|
||||
else if (lines[i].Contains(",<R,Th,Data, Rs,RsA,RsB, #Smpl, x,y, Irng,Vrng,ChiSq,merit,DataIntegrity>"))
|
||||
else if (lines[i].Contains("<R,Th,Data, Rs,RsA,RsB, #Smpl, x,y, Irng,Vrng"))
|
||||
{
|
||||
for (int z = i; z < lines.Length; z++)
|
||||
{
|
||||
@ -250,8 +258,6 @@ public class ProcessData : IProcessData
|
||||
item.Pt = (i + 1).ToString();
|
||||
item.UniqueId = string.Concat(item, "_Point-", item.Pt);
|
||||
}
|
||||
// Remove illegal characters \/:*?"<>| found in the Lot.
|
||||
Lot = Regex.Replace(Lot, @"[\\,\/,\:,\*,\?,\"",\<,\>,\|]", "_").Split('\r')[0].Split('\n')[0];
|
||||
StringBuilder stringBuilder = new();
|
||||
string reportFileName = Path.GetFileName(logistics.ReportFullPath);
|
||||
_ = stringBuilder.AppendLine($"RUN [{Title}]");
|
||||
|
Reference in New Issue
Block a user