ready to test
This commit is contained in:
22
Shared/DataModels/InfinityQSEpp.cs
Normal file
22
Shared/DataModels/InfinityQSEpp.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace OI.Metrology.Shared.DataModels;
|
||||
|
||||
public record InfinityQS1090FullLoad([property: JsonPropertyName("se_sgrp")] int SubGroupId,
|
||||
[property: JsonPropertyName("se_date_time")] DateTime SubGroupIdFormated,
|
||||
[property: JsonPropertyName("pr_name")] int? Reactor,
|
||||
[property: JsonPropertyName("pd_name")] int? Part,
|
||||
[property: JsonPropertyName("se_value")] int Value,
|
||||
[property: JsonPropertyName("se_temp_offset_percent")] int 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
|
||||
{
|
||||
}
|
43
Shared/Models/Reactor.cs
Normal file
43
Shared/Models/Reactor.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace OI.Metrology.Shared.Models;
|
||||
|
||||
public record Reactor(
|
||||
[property: JsonPropertyName("reactorNo")] int ReactorNo,
|
||||
[property: JsonPropertyName("reactType")] string ReactType,
|
||||
[property: JsonPropertyName("reactAssignment")] string ReactAssignment,
|
||||
[property: JsonPropertyName("pickPlace")] bool PickPlace,
|
||||
[property: JsonPropertyName("loadLockDown")] string LoadLockDown,
|
||||
[property: JsonPropertyName("0311Active")] bool _0311Active,
|
||||
[property: JsonPropertyName("loadedRDS")] IReadOnlyList<int> LoadedRDS,
|
||||
[property: JsonPropertyName("isRunning")] bool IsRunning,
|
||||
[property: JsonPropertyName("outOfProdDTM")] string OutOfProdDTM,
|
||||
[property: JsonPropertyName("workOrder")] int? WorkOrder,
|
||||
[property: JsonPropertyName("workOrderCustomer")] string WorkOrderCustomer,
|
||||
[property: JsonPropertyName("currMode")] string CurrMode,
|
||||
[property: JsonPropertyName("serviceDesc")] string ServiceDesc,
|
||||
[property: JsonPropertyName("e10State")] string E10State
|
||||
)
|
||||
{
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
string result = JsonSerializer.Serialize(this, new JsonSerializerOptions() { WriteIndented = true });
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Reactor))]
|
||||
public partial class ReactorSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
[JsonSerializable(typeof(Reactor[]))]
|
||||
public partial class ReactorCollectionSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
|
@ -10,8 +10,11 @@ public interface IInfinityQSV3Controller<T>
|
||||
}
|
||||
|
||||
static string GetRouteName() => nameof(IInfinityQSV3Controller<T>)[1..^10];
|
||||
T GetCommandText(string sub_group_id, string process, string job, string part, string lot, string date_time);
|
||||
T GetEpiProTempVerification();
|
||||
T GetData(string sub_group_id);
|
||||
T GetHeader(string sub_group_id);
|
||||
T GetDescriptors(string sub_group_id);
|
||||
T GetProductDataAverageSumOfDefectsProcessMeanProcessSigma(string process, string? recipe);
|
||||
T GetCommandText(string sub_group_id, string process, string job, string part, string lot, string date_time);
|
||||
|
||||
}
|
@ -5,13 +5,15 @@ namespace OI.Metrology.Shared.Models.Stateless;
|
||||
public interface IInfinityQSV3Repository
|
||||
{
|
||||
|
||||
string GetEpiProTempVerification();
|
||||
string GetCommandText(string subGroupId);
|
||||
string GetCommandText(string process, string? part);
|
||||
string GetCommandText(InfinityQSV3 infinityQSV2);
|
||||
Result<InfinityQSV3[]> GetData(string subGroupId);
|
||||
Result<InfinityQSV3[]> GetHeader(string subGroupId);
|
||||
string GetCommandText(string process, string? part);
|
||||
string GetCommandText(List<string> eppReactorNumbers);
|
||||
Result<InfinityQSDescriptorV3[]> GetDescriptors(string subGroupId);
|
||||
string GetProductDataAverageSumOfDefectsProcessMeanProcessSigma(string process, string? recipe);
|
||||
string GetCommandText(string? subGroupId, string? process, string? job, string? part, string? lot, string? dateTime);
|
||||
Result<InfinityQSV3[]> GetData(string subGroupId);
|
||||
Result<InfinityQSDescriptorV3[]> GetDescriptors(string subGroupId);
|
||||
Result<InfinityQSV3[]> GetHeader(string subGroupId);
|
||||
|
||||
}
|
Reference in New Issue
Block a user