MET08DDUPSP1TBI - v2.43.4 - MeanThickness

This commit is contained in:
Mike Phares 2022-09-13 08:15:25 -07:00
parent 65b4ae1463
commit 67f10dbc2e
3 changed files with 19 additions and 12 deletions

View File

@ -3,11 +3,12 @@ namespace Adaptation.FileHandlers.TIBCO.Transport;
public class Input public class Input
{ {
public string Sequence { get; set; }
public string Area { get; set; } public string Area { get; set; }
public string EquipmentType { get; set; } public string EquipmentType { get; set; }
public string MesEntity { get; set; }
public string MID { get; set; } public string MID { get; set; }
public string MeanThickness { get; set; }
public string MesEntity { get; set; }
public string Recipe { get; set; } public string Recipe { get; set; }
public string Sequence { get; set; }
} }

View File

@ -61,7 +61,7 @@ public class Job
Equipment = input.MesEntity; Equipment = input.MesEntity;
JobName = DateTime.Ticks.ToString(); JobName = DateTime.Ticks.ToString();
if (!IsValid(rds)) if (!IsValid(rds))
(basicType, epiLayer, lotName, psn, reactor) = Get(lsl2SQLConnectionString, psn, rds, reactor); (basicType, epiLayer, lotName, psn, reactor) = Get(lsl2SQLConnectionString, input, psn, rds, reactor);
else else
{ {
basicType = hyphen; basicType = hyphen;
@ -222,7 +222,7 @@ public class Job
return result; return result;
} }
private static (string, string, string, string, string) Get(string lsl2SQLConnectionString, string psn, int rds, string reactor) private static (string, string, string, string, string) Get(string lsl2SQLConnectionString, Input input, string psn, int rds, string reactor)
{ {
string lotName; string lotName;
string epiLayer; string epiLayer;
@ -267,13 +267,19 @@ public class Job
epiLayer = "1"; epiLayer = "1";
else else
{ {
epiLayer = runs[zero].EpiLayer; if (string.IsNullOrEmpty(input.MeanThickness) || !double.TryParse(input.MeanThickness, out double meanThickness))
foreach (Run run in runs) epiLayer = runs[zero].EpiLayer;
else
{ {
if (run.EpiThickMin is null || run.EpiThickMax is null) epiLayer = hyphen;
continue; foreach (Run run in runs)
if (run.EpiResMin is null || run.EpiResMax is null) {
continue; if (run.EpiThickMin is null || run.EpiThickMax is null)
continue;
if (meanThickness < run.EpiThickMin || meanThickness > run.EpiThickMax)
continue;
epiLayer = run.EpiLayer;
}
} }
} }
} }

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.43.0.0")] [assembly: AssemblyVersion("2.43.4.0")]
[assembly: AssemblyFileVersion("2.43.0.0")] [assembly: AssemblyFileVersion("2.43.4.0")]