v2.47.0 - Read to test IQS query - better date
This commit is contained in:
@ -23,7 +23,7 @@ public partial class ProcessData : IProcessData
|
||||
public string MesEntity { get; set; }
|
||||
public string Batch { get; set; }
|
||||
public string Cassette { get; set; }
|
||||
public string Date { get; set; }
|
||||
public DateTime Date { get; set; }
|
||||
public string Employee { get; set; }
|
||||
public string Layer { get; set; }
|
||||
public string MeanThickness { get; set; }
|
||||
@ -49,14 +49,14 @@ public partial class ProcessData : IProcessData
|
||||
{
|
||||
}
|
||||
|
||||
public ProcessData(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, string originalDataBioRad, ProcessData lastProcessData)
|
||||
public ProcessData(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, string originalDataBioRad, ProcessData lastProcessData, long tickOffset)
|
||||
{
|
||||
JobID = logistics.JobID;
|
||||
fileInfoCollection.Clear();
|
||||
_Details = new List<object>();
|
||||
MesEntity = logistics.MesEntity;
|
||||
_Log = LogManager.GetLogger(typeof(ProcessData));
|
||||
Parse(fileRead, logistics, fileInfoCollection, originalDataBioRad, lastProcessData);
|
||||
Parse(fileRead, logistics, fileInfoCollection, originalDataBioRad, lastProcessData, tickOffset);
|
||||
}
|
||||
|
||||
string IProcessData.GetCurrentReactor(IFileRead fileRead, Logistics logistics, Dictionary<string, string> reactors) => throw new Exception(string.Concat("See ", nameof(Parse)));
|
||||
@ -232,7 +232,7 @@ public partial class ProcessData : IProcessData
|
||||
}
|
||||
}
|
||||
|
||||
internal static DateTime GetDateTime(Logistics logistics, string dateTimeText)
|
||||
internal static DateTime GetDateTime(Logistics logistics, long tickOffset, string dateTimeText)
|
||||
{
|
||||
DateTime result;
|
||||
string inputDateFormat = "ddd mmm dd HH:mm:ss yyyy";
|
||||
@ -245,7 +245,7 @@ public partial class ProcessData : IProcessData
|
||||
else
|
||||
{
|
||||
if (dateTimeParsed < logistics.DateTimeFromSequence.AddDays(1) && dateTimeParsed > logistics.DateTimeFromSequence.AddDays(-1))
|
||||
result = dateTimeParsed;
|
||||
result = new(dateTimeParsed.Ticks + tickOffset);
|
||||
else
|
||||
result = logistics.DateTimeFromSequence;
|
||||
}
|
||||
@ -371,16 +371,16 @@ public partial class ProcessData : IProcessData
|
||||
return result;
|
||||
}
|
||||
|
||||
private void Set(Logistics logistics, ProcessData lastProcessData, string receivedData)
|
||||
private void Set(Logistics logistics, ProcessData lastProcessData, long tickOffset, string receivedData)
|
||||
{
|
||||
string psn;
|
||||
string rds;
|
||||
string date;
|
||||
string zone;
|
||||
string batch;
|
||||
string layer;
|
||||
string title;
|
||||
string wafer;
|
||||
DateTime date;
|
||||
string recipe;
|
||||
string reactor;
|
||||
string cassette;
|
||||
@ -390,8 +390,7 @@ public partial class ProcessData : IProcessData
|
||||
string dateTimeText = GetToEOL();
|
||||
if (dateTimeText.EndsWith("."))
|
||||
dateTimeText = dateTimeText.Remove(dateTimeText.Length - 1, 1);
|
||||
DateTime dateTime = GetDateTime(logistics, dateTimeText);
|
||||
date = dateTime.ToString();
|
||||
date = GetDateTime(logistics, tickOffset, dateTimeText);
|
||||
ScanPast("operator:");
|
||||
employee = GetBefore("batch:");
|
||||
batch = GetToEOL();
|
||||
@ -484,7 +483,7 @@ public partial class ProcessData : IProcessData
|
||||
UniqueId = string.Concat(title, '_', wafer, '_', logistics.DateTimeFromSequence.ToString("yyyyMMddHHmmssffff"), '_', logistics.TotalSecondsSinceLastWriteTimeFromSequence);
|
||||
}
|
||||
|
||||
private void Parse(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, string originalDataBioRad, ProcessData lastProcessData)
|
||||
private void Parse(IFileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, string originalDataBioRad, ProcessData lastProcessData, long tickOffset)
|
||||
{
|
||||
if (fileRead is null)
|
||||
{ }
|
||||
@ -507,7 +506,7 @@ public partial class ProcessData : IProcessData
|
||||
{
|
||||
_I = 0;
|
||||
_Data = receivedData;
|
||||
Set(logistics, lastProcessData, receivedData);
|
||||
Set(logistics, lastProcessData, tickOffset, receivedData);
|
||||
string token = GetToken();
|
||||
int counter = 1;
|
||||
while (true)
|
||||
|
Reference in New Issue
Block a user