Save Copy - sql or json
CA1862 and GetWeekOfYear for WritePDSF Removed Open Insight API IFX Directory from Save v2_52_0-Tests net8.0
This commit is contained in:
@ -616,7 +616,7 @@ public class ProcessData : IProcessData
|
||||
sourceFiles.Add(sourceFileNamePdf);
|
||||
string sourceFileNameWithoutExtension = Path.GetFileNameWithoutExtension(logistics.ReportFullPath);
|
||||
string[] txtFiles = Directory.GetFiles(sourcePath, $"{sourceFileNameWithoutExtension}_*.txt", SearchOption.TopDirectoryOnly);
|
||||
if (txtFiles.Any())
|
||||
if (txtFiles.Length != 0)
|
||||
{
|
||||
foreach (string txtFile in txtFiles)
|
||||
{
|
||||
@ -628,7 +628,7 @@ public class ProcessData : IProcessData
|
||||
pages.Add(pagePDFFile, pageText);
|
||||
}
|
||||
}
|
||||
if (!pages.Any())
|
||||
if (pages.Count == 0)
|
||||
{
|
||||
java.io.File file = new(sourceFileNamePdf);
|
||||
org.apache.pdfbox.util.Splitter splitter = new();
|
||||
@ -745,7 +745,7 @@ public class ProcessData : IProcessData
|
||||
}
|
||||
foreach (KeyValuePair<string, List<Detail>> keyValuePair in slots)
|
||||
{
|
||||
if (!keyValuePair.Value.Any() || keyValuePair.Value[0] is null)
|
||||
if (keyValuePair.Value.Count == 0 || keyValuePair.Value[0] is null)
|
||||
missingSlots.Add(string.Concat("Slot ", keyValuePair.Key, ") is missing."));
|
||||
else
|
||||
{
|
||||
@ -753,7 +753,7 @@ public class ProcessData : IProcessData
|
||||
_Details.Add(data);
|
||||
}
|
||||
}
|
||||
if (missingSlots.Any())
|
||||
if (missingSlots.Count != 0)
|
||||
{
|
||||
string missingSlotsFile = string.Concat(sourcePath, @"\", sourceFileNameWithoutExtension, "_MissingSlots.txt");
|
||||
File.WriteAllLines(missingSlotsFile, missingSlots);
|
||||
|
Reference in New Issue
Block a user