#pragma warning disable ...
#pragma warning restore ...
This commit is contained in:
@ -21,6 +21,8 @@ namespace Adaptation.FileHandlers.MET08THFTIRQS408M;
|
||||
public class FileRead : Shared.FileRead, IFileRead
|
||||
{
|
||||
|
||||
#pragma warning disable CA1847
|
||||
|
||||
private readonly Timer _Timer;
|
||||
private int _LastDummyRunIndex;
|
||||
private readonly string _IqsFile;
|
||||
@ -166,7 +168,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
|
||||
void IFileRead.Callback(object state) => Callback(state);
|
||||
|
||||
protected List<Stratus.Description> GetDescriptions(JsonElement[] jsonElements)
|
||||
protected static List<Stratus.Description> GetDescriptions(JsonElement[] jsonElements)
|
||||
{
|
||||
List<Stratus.Description> results = new();
|
||||
Stratus.Description description;
|
||||
|
@ -217,7 +217,7 @@ public class Description : IDescription, Shared.Properties.IDescription
|
||||
return results;
|
||||
}
|
||||
|
||||
private Description GetDisplayNames()
|
||||
private static Description GetDisplayNames()
|
||||
{
|
||||
Description result = new();
|
||||
return result;
|
||||
|
@ -178,7 +178,7 @@ public partial class ProcessData : IProcessData
|
||||
return IsNullOrWhiteSpace((num > -1 ? _Data.Substring(_I, num - _I) : _Data.Substring(_I)));
|
||||
}
|
||||
|
||||
private bool IsNullOrWhiteSpace(string text)
|
||||
private static bool IsNullOrWhiteSpace(string text)
|
||||
{
|
||||
bool flag;
|
||||
int num = 0;
|
||||
|
@ -118,7 +118,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
string directoryName = Path.GetDirectoryName(reportFullPath);
|
||||
string sequenceDirectoryName = string.Concat(Path.GetDirectoryName(reportFullPath), @"\", _Logistics.Sequence);
|
||||
string originalDataBioRad = string.Concat(Path.GetDirectoryName(reportFullPath), @"\", _OriginalDataBioRad, _Logistics.Sequence, ".txt");
|
||||
List<Tuple<string, bool, DateTime, string>> tuples = ProcessData.GetTuples(this, _Logistics, dateTime, results.Item4, _OriginalDataBioRad);
|
||||
List<Tuple<string, bool, DateTime, string>> tuples = ProcessData.GetTuples(this, _Logistics, results.Item4, _OriginalDataBioRad);
|
||||
if (_IsEAFHosted)
|
||||
{
|
||||
if (tuples.Any())
|
||||
@ -126,7 +126,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
||||
if (!Directory.Exists(sequenceDirectoryName))
|
||||
_ = Directory.CreateDirectory(sequenceDirectoryName);
|
||||
File.Move(reportFullPath, originalDataBioRad);
|
||||
_Log.Debug(string.Concat("****Extract() - Renamed [", reportFullPath, "] to [", originalDataBioRad, "]"));
|
||||
_Log.Debug(string.Concat("****Extract() - Renamed [", reportFullPath, "] to [", originalDataBioRad, "] ", dateTime.Ticks));
|
||||
}
|
||||
foreach (Tuple<string, bool, DateTime, string> tuple in tuples)
|
||||
{
|
||||
|
@ -13,7 +13,7 @@ namespace Adaptation.FileHandlers.txt;
|
||||
public partial class ProcessData
|
||||
{
|
||||
|
||||
internal static List<Tuple<string, bool, DateTime, string>> GetTuples(FileRead fileRead, Logistics logistics, DateTime dateTime, List<FileInfo> fileInfoCollection, string originalDataBioRad)
|
||||
internal static List<Tuple<string, bool, DateTime, string>> GetTuples(FileRead fileRead, Logistics logistics, List<FileInfo> fileInfoCollection, string originalDataBioRad)
|
||||
{
|
||||
List<Tuple<string, bool, DateTime, string>> results = new();
|
||||
ILog log = LogManager.GetLogger(typeof(ProcessData));
|
||||
@ -365,7 +365,9 @@ public partial class ProcessData
|
||||
stringIndex = dataText.IndexOf(recipeSearch);
|
||||
recipeName = dataText.Substring(stringIndex + recipeSearch.Length);
|
||||
log.Debug($"****Extract(FDR): recipeName = {recipeName}");
|
||||
if (!(string.IsNullOrEmpty(recipeName)) && (recipeName.IndexOf("center", StringComparison.CurrentCultureIgnoreCase) >= 0))
|
||||
#pragma warning disable CA2249
|
||||
if (!string.IsNullOrEmpty(recipeName) && (recipeName.IndexOf("center", StringComparison.CurrentCultureIgnoreCase) >= 0))
|
||||
#pragma warning restore CA2249
|
||||
{
|
||||
/***************************************/
|
||||
/* STRATUS Measurement = FQA Thickness */
|
||||
@ -377,7 +379,9 @@ public partial class ProcessData
|
||||
toolType = "STRATUS";
|
||||
dataType = "FQA Thickness";
|
||||
}
|
||||
else if (!(string.IsNullOrEmpty(recipeName)) && (recipeName.IndexOf("prod_", StringComparison.CurrentCultureIgnoreCase) >= 0))
|
||||
#pragma warning disable CA2249
|
||||
else if (!string.IsNullOrEmpty(recipeName) && (recipeName.IndexOf("prod_", StringComparison.CurrentCultureIgnoreCase) >= 0))
|
||||
#pragma warning restore CA2249
|
||||
{
|
||||
/******************************************/
|
||||
/* BIORAD Measurement = Product Thickness */
|
||||
@ -389,13 +393,15 @@ public partial class ProcessData
|
||||
toolType = "BIORAD";
|
||||
dataType = "Product Thickness";
|
||||
}
|
||||
else if (!(string.IsNullOrEmpty(recipeName)) &&
|
||||
((recipeName.IndexOf("T-Low", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T_Low", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T-Mid", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T_Mid", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T-High", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T_High", StringComparison.CurrentCultureIgnoreCase) >= 0)))
|
||||
else if (!string.IsNullOrEmpty(recipeName) &&
|
||||
#pragma warning disable CA2249
|
||||
((recipeName.IndexOf("T-Low", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T_Low", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T-Mid", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T_Mid", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T-High", StringComparison.CurrentCultureIgnoreCase) >= 0) ||
|
||||
(recipeName.IndexOf("T_High", StringComparison.CurrentCultureIgnoreCase) >= 0)))
|
||||
#pragma warning restore CA2249
|
||||
{
|
||||
/*************************************/
|
||||
/* BIORAD Measurement = No Uploading */
|
||||
|
Reference in New Issue
Block a user