From d21cef3ecbc0838a6fe0a4ce84a7d6800bdb69a2 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Tue, 11 Oct 2022 15:52:42 -0700 Subject: [PATCH] MET08DDUPSFS6420 - v2.47.0 - 1t PDF --- .../FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs b/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs index 7240ea0..4779312 100644 --- a/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs +++ b/Adaptation/FileHandlers/OpenInsightMetrologyViewer/WSRequest.cs @@ -205,6 +205,7 @@ public class WSRequest private static void UpdateDataPDF(List descriptions, string checkFileName) { string value; + string fullName; object possiblePage; object possibleString; object possibleCOSArray; @@ -225,6 +226,10 @@ public class WSRequest org.apache.pdfbox.pdmodel.PDDocumentCatalog pdDocumentCatalog = pdDocument.getDocumentCatalog(); java.util.List pagesList = pdDocumentCatalog.getAllPages(); java.util.ListIterator pageIterator = pagesList.listIterator(); + if (string.IsNullOrEmpty(descriptions[0].Lot) || string.IsNullOrEmpty(descriptions[0].Reactor) || descriptions[0].Lot.StartsWith(descriptions[0].Reactor)) + fullName = string.Empty; + else + fullName = $"{descriptions[0].Reactor}-{descriptions[0].RDS}-{descriptions[0].PSN} "; for (short i = 1; i < short.MaxValue; i++) { if (!pageIterator.hasNext()) @@ -261,9 +266,9 @@ public class WSRequest updateValues.Add(value); value = stringBuilder.ToString(); if (value.Contains("[]")) - cossArray.setString(a - 1, string.Concat("*", reactorLoadLock, "]")); + cossArray.setString(a - 1, string.Concat("*", fullName, reactorLoadLock, "]")); else - cossArray.setString(a - 1, string.Concat(" {*", reactorLoadLock, "}]")); + cossArray.setString(a - 1, string.Concat(" {*", fullName, reactorLoadLock, "}]")); } } if (updateValues.Any())