Added logic to keep code from crashing when adding a non-step related transition.
Added a menu item to create an Import file from an approved procedure. Converted PDF RO References to Uppercase so that the PDF Links to the complete RO Report would work. Eliminated Unit ROs from ROCompleteReport references in the PDF Links Convert RO Links to Uppercase to be consistent.
This commit is contained in:
@@ -836,8 +836,8 @@ namespace Volian.Print.Library
|
||||
PdfPCell cell = new PdfPCell();
|
||||
if (MyROID != null)
|
||||
{
|
||||
chk.SetLocalDestination(string.Format("ROID={0}", MyROID)); // Destination
|
||||
//Console.WriteLine("\"ROID\"\t\"{0}\"", MyROID);
|
||||
chk.SetLocalDestination(string.Format("ROID={0}", MyROID.ToUpper())); // Destination
|
||||
//Console.WriteLine("\"ROID\"\t\"{0}\"", MyROID.ToUpper());
|
||||
MyROID = null;
|
||||
}
|
||||
p.Add(chk); // add the header chunk
|
||||
|
@@ -957,8 +957,12 @@ namespace Volian.Print.Library
|
||||
RoUsageInfo ru = MyItemInfo.MyContent.ContentRoUsages[0];
|
||||
foreach (Chunk chk in IParagraph.Chunks)
|
||||
{
|
||||
chk.SetRemoteGoto("completeroreport.pdf", string.Format("ROID={0}", ru.ROID.Substring(0, 12)));
|
||||
chk.SetBackground(new Color(System.Drawing.Color.LightGreen));
|
||||
if (ru.ROID.Substring(0, 4) != "FFFF")
|
||||
{
|
||||
chk.SetRemoteGoto("completeroreport.pdf", string.Format("ROID={0}", ru.ROID.Substring(0, 12).ToUpper()));
|
||||
//Console.WriteLine("ROID={0},{1}", ru.ROID.Substring(0, 12).ToUpper(), chk.Content);
|
||||
chk.SetBackground(new Color(System.Drawing.Color.LightGreen));
|
||||
}
|
||||
}
|
||||
}
|
||||
StepConfig sc = new StepConfig(MyItemInfo.MyContent.Config);
|
||||
|
Reference in New Issue
Block a user