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)
{
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())