Delete Work Material
Added InfinityQSV3-GetEpiProTempVerification Added nigth shift
This commit is contained in:
22
Shared/DataModels/InfinityQS1090FullLoad.cs
Normal file
22
Shared/DataModels/InfinityQS1090FullLoad.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace OI.Metrology.Shared.DataModels;
|
||||
|
||||
public record InfinityQS1090FullLoad([property: JsonPropertyName("f_sgrp")] int SubGroupId,
|
||||
[property: JsonPropertyName("date_time")] DateTime SubGroupIdFormated,
|
||||
[property: JsonPropertyName("pr_name")] string Reactor,
|
||||
[property: JsonPropertyName("pd_name")] string Part,
|
||||
[property: JsonPropertyName("iq_value")] float Value,
|
||||
[property: JsonPropertyName("iq_temp_offset_percent")] float TemperatureOffsetPercentage);
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
[JsonSerializable(typeof(InfinityQS1090FullLoad))]
|
||||
public partial class InfinityQS1090FullLoadSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
[JsonSerializable(typeof(Result<InfinityQS1090FullLoad[]>))]
|
||||
public partial class InfinityQS1090FullLoadArraySourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
@ -1,50 +0,0 @@
|
||||
namespace OI.Metrology.Shared.DataModels;
|
||||
|
||||
public record WorkMaterial(string RDS_NO,
|
||||
int REACTOR,
|
||||
string POCKET_NO,
|
||||
string ZONE,
|
||||
int IN_CASS_NO,
|
||||
int IN_SLOT_NO,
|
||||
int OUT_CASS_NO,
|
||||
int OUT_SLOT_NO,
|
||||
string PS_NO,
|
||||
string RECIPE_NAME,
|
||||
int RECIPE_NO,
|
||||
string SPEC_TYPE)
|
||||
{
|
||||
|
||||
public static WorkMaterialV2[] Convert(List<WorkMaterial> collection)
|
||||
{
|
||||
List<WorkMaterialV2> results = new();
|
||||
foreach (WorkMaterial item in collection)
|
||||
results.Add(Map(item));
|
||||
return results.ToArray();
|
||||
}
|
||||
|
||||
public static WorkMaterialV2 Map(WorkMaterial item)
|
||||
{
|
||||
WorkMaterialV2 result = new(item.RDS_NO,
|
||||
item.REACTOR,
|
||||
item.POCKET_NO,
|
||||
item.ZONE,
|
||||
item.IN_CASS_NO,
|
||||
item.IN_SLOT_NO,
|
||||
item.OUT_CASS_NO,
|
||||
item.OUT_SLOT_NO,
|
||||
item.PS_NO);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public record WorkMaterialV2(string RunDataSheet,
|
||||
int Reactor,
|
||||
string Pocket,
|
||||
string Zone,
|
||||
int InCassetteNumber,
|
||||
int InSlotNumber,
|
||||
int OutCassetteNumber,
|
||||
int OutSlotNumber,
|
||||
string PSN)
|
||||
{ }
|
Reference in New Issue
Block a user