Add IndexOf and AttemptCounter properties to WSRequest and Description classes; implement getValue function in recipes-and-patterns.js

This commit is contained in:
2025-10-13 17:17:11 -07:00
parent 5f8c79e087
commit 61f1c7dc3b
5 changed files with 20 additions and 11 deletions

View File

@ -15,6 +15,7 @@ public class WSRequest
public bool SentToSPC { get; set; }
//
public string AttemptCounter { get; set; }
public string AutoOptimizeGain { get; set; }
public string AutoProbeHeightSet { get; set; }
public string Avg { get; set; }
@ -27,6 +28,7 @@ public class WSRequest
public string FileName { get; set; }
public string FilePath { get; set; }
public int Id { get; set; }
public string IndexOf { get; set; }
public string Layer { get; set; }
public string LotId { get; set; }
public string Op { get; set; }
@ -56,18 +58,20 @@ public class WSRequest
throw new Exception();
//Header
{
AttemptCounter = x.AttemptCounter;
AutoOptimizeGain = x.AutoOptimizeGain;
AutoProbeHeightSet = x.AutoProbeHeightSet;
Avg = x.Avg;
DLRatio = x.DLRatio;
DataReject = x.DataReject;
Date = x.Date;
Op = x.Employee; // different name
DLRatio = x.DLRatio;
Engineer = x.Engineer;
EquipId = logistics.MesEntity; // different name
FileName = x.FileName;
IndexOf = x.IndexOf;
Layer = x.Layer;
LotId = x.Lot; // different name
Op = x.Employee; // different name
PSN = x.PSN;
RDS = x.RDS;
Reactor = x.Reactor;

View File

@ -30,6 +30,8 @@ public class Description : IDescription, Shared.Properties.IDescription
[JsonPropertyName("PSN")] public string PSN { get; set; }
[JsonPropertyName("Reactor")] public string Reactor { get; set; }
[JsonPropertyName("RecipeName")] public string Recipe { get; set; }
[JsonPropertyName("IndexOf")] public string IndexOf { get; set; }
[JsonPropertyName("AttemptCounter")] public string AttemptCounter { get; set; }
//
[JsonPropertyName("AutoOptimizeGain")] public string AutoOptimizeGain { get; set; }
[JsonPropertyName("AutoProbeHeightSet")] public string AutoProbeHeightSet { get; set; }
@ -218,6 +220,8 @@ public class Description : IDescription, Shared.Properties.IDescription
PSN = processData.PSN,
Reactor = processData.Reactor,
Recipe = processData.Recipe,
IndexOf = nameof(IndexOf),
AttemptCounter = nameof(AttemptCounter),
//
AutoOptimizeGain = processData.AutoOptimizeGain,
AutoProbeHeightSet = processData.AutoProbeHeightSet,
@ -282,6 +286,8 @@ public class Description : IDescription, Shared.Properties.IDescription
PSN = nameof(PSN),
Reactor = nameof(Reactor),
Recipe = nameof(Recipe),
IndexOf = nameof(IndexOf),
AttemptCounter = nameof(AttemptCounter),
//
AutoOptimizeGain = nameof(AutoOptimizeGain),
AutoProbeHeightSet = nameof(AutoProbeHeightSet),