From c3025408010730c68599fbdc35e0166cf0e21c28 Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 1 Sep 2009 14:31:38 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/DisplayRO.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayRO.cs b/PROMS/Volian.Controls.Library/DisplayRO.cs index dc9f1f76..2a13505c 100644 --- a/PROMS/Volian.Controls.Library/DisplayRO.cs +++ b/PROMS/Volian.Controls.Library/DisplayRO.cs @@ -436,7 +436,10 @@ namespace Volian.Controls.Library _MyRTB.inRoAdd = true; if (CheckROSelection(roch)) // check for RO type is valid for this type of step/substep { - string linktxt = string.Format(@"#Link:ReferencedObject: {0} {1}", roch.roid, _MyROFST.MyRODb.RODbID); + // the roid may be 12 or 16 chars long, with the last 4 set if there is unit specific + // menuing. Pad to 12 to store in the rousage table. + string padroid = (roch.roid.Length <= 12) ? roch.roid + "0000" : roch.roid; + string linktxt = string.Format(@"#Link:ReferencedObject: {0} {1}", padroid, _MyROFST.MyRODb.RODbID); // Resolve symbols and scientific notation in the RO return value string valtxt = ConvertSymbolsAndStuff(selectedChld.value); _MyRTB.InsertRO(valtxt, linktxt);