86 lines
3.3 KiB
C#
86 lines
3.3 KiB
C#
namespace OI.Metrology.Shared.DataModels;
|
|
|
|
public record InfinityQSEvent(int F_EVNT,
|
|
int F_CRTM,
|
|
int F_EDTM,
|
|
int F_TYPE,
|
|
string F_NAME,
|
|
int F_EMPL,
|
|
int F_EVTM,
|
|
int F_PRCS,
|
|
int F_PART,
|
|
int F_TEST,
|
|
int F_SGTM,
|
|
int F_ACC,
|
|
int F_ACEM,
|
|
int F_ACTM,
|
|
int F_CAC,
|
|
int F_CAEM,
|
|
int F_CATM,
|
|
int F_FLAG,
|
|
int F_USER,
|
|
int F_DSBL,
|
|
int F_RFC,
|
|
int F_TRTM)
|
|
{
|
|
|
|
public static InfinityQSEventV2[] Convert(InfinityQSEvent[] collection)
|
|
{
|
|
List<InfinityQSEventV2> results = new();
|
|
foreach (InfinityQSEvent item in collection)
|
|
results.Add(Map(item));
|
|
return results.ToArray();
|
|
}
|
|
|
|
public static InfinityQSEventV2 Map(InfinityQSEvent item)
|
|
{
|
|
InfinityQSEventV2 result = new(item.F_EVNT,
|
|
item.F_CRTM,
|
|
item.F_EDTM,
|
|
item.F_TYPE,
|
|
item.F_NAME,
|
|
item.F_EMPL,
|
|
item.F_EVTM,
|
|
item.F_PRCS,
|
|
item.F_PART,
|
|
item.F_TEST,
|
|
item.F_SGTM,
|
|
item.F_ACC,
|
|
item.F_ACEM,
|
|
item.F_ACTM,
|
|
item.F_CAC,
|
|
item.F_CAEM,
|
|
item.F_CATM,
|
|
item.F_FLAG,
|
|
item.F_USER,
|
|
item.F_DSBL,
|
|
item.F_RFC,
|
|
item.F_TRTM);
|
|
return result;
|
|
}
|
|
|
|
}
|
|
|
|
public record InfinityQSEventV2(int Evnt,
|
|
int Crtm,
|
|
int Edtm,
|
|
int Type,
|
|
string Name,
|
|
int Empl,
|
|
int Evtm,
|
|
int Prcs,
|
|
int Part,
|
|
int Test,
|
|
int Sgtm,
|
|
int Acc,
|
|
int Acem,
|
|
int Actm,
|
|
int Cac,
|
|
int Caem,
|
|
int Catm,
|
|
int Flag,
|
|
int User,
|
|
int Dsbl,
|
|
int Rfc,
|
|
int Trtm)
|
|
{ } |