Add link to WorkMaterial
Add new columns OC and OS count
This commit is contained in:
@ -1,16 +1,18 @@
|
||||
namespace OI.Metrology.Shared.DataModels;
|
||||
|
||||
public record InfinityQSBase(int? SE_SGRP,
|
||||
int? SE_SGTM,
|
||||
int? SE_TSNO,
|
||||
public record InfinityQSBase(int EV_COUNT,
|
||||
int CL_COUNT,
|
||||
int SL_COUNT,
|
||||
int SE_SGRP,
|
||||
int SE_SGTM,
|
||||
int SE_TSNO,
|
||||
int TD_TEST,
|
||||
string? PR_NAME,
|
||||
string? JD_NAME,
|
||||
string? PL_NAME,
|
||||
string? PD_NAME,
|
||||
int? TD_TEST,
|
||||
string? TD_NAME,
|
||||
double? SE_VAL,
|
||||
int? EV_COUNT)
|
||||
double? SE_VAL)
|
||||
{
|
||||
|
||||
public static InfinityQSBaseV2[] Convert(InfinityQSBase[] collection)
|
||||
@ -18,36 +20,40 @@ public record InfinityQSBase(int? SE_SGRP,
|
||||
List<InfinityQSBaseV2> results = new();
|
||||
foreach (InfinityQSBase item in collection)
|
||||
results.Add(Map(item));
|
||||
return results.ToArray();
|
||||
return (from l in results orderby l.EventCount descending, l.ControlLimitCount descending, l.SpecLimitCount descending, l.SubGroupId, l.SiteNumber, l.VariableNumber select l).ToArray();
|
||||
}
|
||||
|
||||
public static InfinityQSBaseV2 Map(InfinityQSBase item)
|
||||
{
|
||||
InfinityQSBaseV2 result = new(item.SE_SGRP,
|
||||
InfinityQSBaseV2 result = new(item.EV_COUNT,
|
||||
item.CL_COUNT,
|
||||
item.SL_COUNT,
|
||||
item.SE_SGRP,
|
||||
item.SE_SGTM,
|
||||
item.SE_TSNO,
|
||||
item.TD_TEST,
|
||||
item.PR_NAME,
|
||||
item.JD_NAME,
|
||||
item.PL_NAME,
|
||||
item.PD_NAME,
|
||||
item.TD_TEST,
|
||||
item.TD_NAME,
|
||||
item.SE_VAL,
|
||||
item.EV_COUNT);
|
||||
item.SE_VAL);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public record InfinityQSBaseV2(int? SubGroupId,
|
||||
int? SubGroupDateTime,
|
||||
int? SiteNumber,
|
||||
public record InfinityQSBaseV2(int EventCount,
|
||||
int ControlLimitCount,
|
||||
int SpecLimitCount,
|
||||
int SubGroupId,
|
||||
int SubGroupDateTime,
|
||||
int SiteNumber,
|
||||
int VariableNumber,
|
||||
string? Process,
|
||||
string? Job,
|
||||
string? Lot,
|
||||
string? Part,
|
||||
int? VariableNumber,
|
||||
string? Variable,
|
||||
double? Value,
|
||||
int? EventCount)
|
||||
double? Value)
|
||||
{ }
|
Reference in New Issue
Block a user