DEP08SIASM - Testing EDA

This commit is contained in:
2022-03-10 17:29:39 -07:00
parent c6923ed84f
commit e476b14a54
5 changed files with 123 additions and 179 deletions

View File

@ -23,10 +23,16 @@ public class Description : IDescription
public string ProcessJobID { get; set; }
public string MID { get; set; }
//
public string Process { get; set; } //5
public string Date { get; set; } //6
public string Part { get; set; } //7
public string Lot { get; set; } //8
public string Date { get; set; }
public string Employee { get; set; }
public string Lot { get; set; }
public string PSN { get; set; }
public string Reactor { get; set; }
public string Recipe { get; set; }
//
public int Red { get; set; }
public int Green { get; set; }
public int TotalDelta { get; set; }
string IDescription.GetEventDescription() => "File Has been read and parsed";
@ -51,8 +57,16 @@ public class Description : IDescription
List<string> IDescription.GetHeaderNames()
{
string[] results = new string[] { nameof(Process), nameof(Date), nameof(Part), nameof(Lot) };
return results.ToList();
List<string> results = new()
{
nameof(Date),
nameof(Employee),
nameof(Lot),
nameof(PSN),
nameof(Reactor),
nameof(Recipe)
};
return results;
}
IDescription IDescription.GetDisplayNames()
@ -63,7 +77,12 @@ public class Description : IDescription
List<string> IDescription.GetParameterNames()
{
List<string> results = new();
List<string> results = new()
{
nameof(Red),
nameof(Green),
nameof(TotalDelta),
};
return results;
}
@ -115,7 +134,7 @@ public class Description : IDescription
{
List<IDescription> results = new();
if (iProcessData is null || !iProcessData.Details.Any() || iProcessData is not ProcessData)
if (iProcessData is null || !iProcessData.Details.Any() || iProcessData is not ProcessData processData)
results.Add(GetDefault(fileRead, logistics));
else
{
@ -128,7 +147,7 @@ public class Description : IDescription
nullData = configDataNullData.ToString();
for (int i = 0; i < iProcessData.Details.Count; i++)
{
if (iProcessData.Details[i] is not string detail)
if (iProcessData.Details[i] is not string _)
continue;
description = new Description
{
@ -145,10 +164,16 @@ public class Description : IDescription
ProcessJobID = logistics.ProcessJobID,
MID = logistics.MID,
//
Process = logistics.ProcessJobID,
Date = logistics.DateTimeFromSequence.Ticks.ToString(),
Part = string.Empty,
Lot = detail
Date = logistics.DateTimeFromSequence.ToUniversalTime().ToString("MM/dd/yyyy HH:mm:ss"),
Employee = string.Empty,
Lot = processData.Text,
PSN = string.Empty,
Reactor = logistics.ProcessJobID,
Recipe = processData.Recipe,
//
Red = processData.Red,
Green = processData.Green,
TotalDelta = processData.TotalDelta,
};
results.Add(description);
}
@ -177,12 +202,19 @@ public class Description : IDescription
MesEntity = fileRead.MesEntity,
ReportFullPath = logistics.ReportFullPath,
ProcessJobID = logistics.ProcessJobID,
MID = logistics.MID
MID = logistics.MID,
//
Date = nameof(Date),
Employee = nameof(Employee),
Lot = nameof(Lot),
PSN = nameof(PSN),
Reactor = nameof(Reactor),
Recipe = nameof(Recipe),
//
Red = -1,
Green = -1,
TotalDelta = -1,
};
result.Process = nameof(Process);
result.Date = nameof(Date);
result.Part = nameof(Part);
result.Lot = nameof(Lot);
return result;
}