InfinityQS

This commit is contained in:
2023-02-24 20:34:23 -07:00
parent f3d199cccb
commit 8e15b6a3a5
13 changed files with 531 additions and 36 deletions

View File

@ -0,0 +1,41 @@
using System.Text.Json.Serialization;
namespace OI.Metrology.Shared.DataModels;
public class InfinityQSBase
{
[JsonPropertyName("se_sgrp")]
public int? SubGroupId { get; set; }
[JsonPropertyName("se_sgtm")]
public int? SubGroupDateTime { get; set; }
[JsonPropertyName("se_tsno")]
public int? TestNumber { get; set; }
[JsonPropertyName("rd_name")]
public string? Process { get; set; }
[JsonPropertyName("jd_name")]
public string? Job { get; set; }
[JsonPropertyName("pl_name")]
public string? Lot { get; set; }
[JsonPropertyName("pd_name")]
public string? Part { get; set; }
[JsonPropertyName("td_test")]
public int? Test { get; set; }
[JsonPropertyName("td_name")]
public string? TestName { get; set; }
[JsonPropertyName("se_val")]
public double? Value { get; set; }
[JsonPropertyName("ev_count")]
public int? EventCount { get; set; }
}

View File

@ -0,0 +1,74 @@
using System.Text.Json.Serialization;
namespace OI.Metrology.Shared.DataModels;
public class InfinityQSEvent
{
[JsonPropertyName("F_EVNT")]
public int Evnt { get; set; }
[JsonPropertyName("F_CRTM")]
public int Crtm { get; set; }
[JsonPropertyName("F_EDTM")]
public int Edtm { get; set; }
[JsonPropertyName("F_TYPE")]
public int Type { get; set; }
[JsonPropertyName("F_NAME")]
public string? Name { get; set; }
[JsonPropertyName("F_EMPL")]
public int Empl { get; set; }
[JsonPropertyName("F_EVTM")]
public int Evtm { get; set; }
[JsonPropertyName("F_PRCS")]
public int Prcs { get; set; }
[JsonPropertyName("F_PART")]
public int Part { get; set; }
[JsonPropertyName("F_TEST")]
public int Test { get; set; }
[JsonPropertyName("F_SGTM")]
public int Sgtm { get; set; }
[JsonPropertyName("F_ACC")]
public int Acc { get; set; }
[JsonPropertyName("F_ACEM")]
public int Acem { get; set; }
[JsonPropertyName("F_ACTM")]
public int Actm { get; set; }
[JsonPropertyName("F_CAC")]
public int Cac { get; set; }
[JsonPropertyName("F_CAEM")]
public int Caem { get; set; }
[JsonPropertyName("F_CATM")]
public int Catm { get; set; }
[JsonPropertyName("F_FLAG")]
public int Flag { get; set; }
[JsonPropertyName("F_USER")]
public int User { get; set; }
[JsonPropertyName("F_DSBL")]
public int Dsbl { get; set; }
[JsonPropertyName("F_RFC")]
public int Rfc { get; set; }
[JsonPropertyName("F_TRTM")]
public int Trtm { get; set; }
}

View File

@ -0,0 +1,18 @@
namespace OI.Metrology.Shared.Models.Stateless;
public interface IInfinityQSController<T>
{
enum Action : int
{
Index = 0,
MarkAsPinned = 1
}
static string GetRouteName() => nameof(IInfinityQSController<T>)[1..^10];
T GetCommandText(string sub_group_id, string process, string job, string part, string lot, string date_time);
T GetData(string sub_group_id);
T GetEvents(string sub_group_id);
T GetHeader(string sub_group_id);
}

View File

@ -0,0 +1,13 @@
using OI.Metrology.Shared.DataModels;
namespace OI.Metrology.Shared.Models.Stateless;
public interface IInfinityQSRepository
{
string GetCommandText(string? subGroupId, string? process, string? job, string? part, string? lot, string? dateTime);
Result<InfinityQSBase[]> GetData(string subGroupId);
Result<InfinityQSBase[]> GetHeader(string subGroupId);
Result<InfinityQSEvent[]> GetEvents(string subGroupId);
}

View File

@ -6,7 +6,8 @@ public interface IPinController<T>
enum Action : int
{
Index = 0,
MarkAsPinned = 1
MarkAsPinned = 1,
PinnedTable = 2
}
static string GetRouteName() => nameof(IPinController<T>)[1..^10];