MET08DDUPSFS6420 - v2.47.0 - 1t PDF

This commit is contained in:
Mike Phares 2022-10-11 15:52:42 -07:00
parent 967c918a06
commit d21cef3ecb

View File

@ -205,6 +205,7 @@ public class WSRequest
private static void UpdateDataPDF(List<pcl.Description> descriptions, string checkFileName) private static void UpdateDataPDF(List<pcl.Description> descriptions, string checkFileName)
{ {
string value; string value;
string fullName;
object possiblePage; object possiblePage;
object possibleString; object possibleString;
object possibleCOSArray; object possibleCOSArray;
@ -225,6 +226,10 @@ public class WSRequest
org.apache.pdfbox.pdmodel.PDDocumentCatalog pdDocumentCatalog = pdDocument.getDocumentCatalog(); org.apache.pdfbox.pdmodel.PDDocumentCatalog pdDocumentCatalog = pdDocument.getDocumentCatalog();
java.util.List pagesList = pdDocumentCatalog.getAllPages(); java.util.List pagesList = pdDocumentCatalog.getAllPages();
java.util.ListIterator pageIterator = pagesList.listIterator(); 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++) for (short i = 1; i < short.MaxValue; i++)
{ {
if (!pageIterator.hasNext()) if (!pageIterator.hasNext())
@ -261,9 +266,9 @@ public class WSRequest
updateValues.Add(value); updateValues.Add(value);
value = stringBuilder.ToString(); value = stringBuilder.ToString();
if (value.Contains("[]")) if (value.Contains("[]"))
cossArray.setString(a - 1, string.Concat("*", reactorLoadLock, "]")); cossArray.setString(a - 1, string.Concat("*", fullName, reactorLoadLock, "]"));
else else
cossArray.setString(a - 1, string.Concat(" {*", reactorLoadLock, "}]")); cossArray.setString(a - 1, string.Concat(" {*", fullName, reactorLoadLock, "}]"));
} }
} }
if (updateValues.Any()) if (updateValues.Any())