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,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];