From e92144b7ff3d1f8bb0adad57c50fa90f97410081 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 11 Sep 2017 15:29:24 +0000 Subject: [PATCH] B2017-202 Refresh the RO tree in the Step Properties panel when Update ROs is done from the Administer Tools --- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 0f880328..47bbae4c 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -944,7 +944,27 @@ namespace VEPROMS // if ro.fst was 'updated' from the roeditor, enable the update ro.fst values on // the steptabribbon. if (tc.ShuttingDown) return; - if (SelectedStepTabPanel!=null && SelectedStepTabPanel.MyStepTabRibbon != null) + // B2017-202 update the RO tree in the step properties panel + if (tc.MyBar.SelectedDockTab > -1) + { + DisplayTabItem myDTI = tc.MyBar.Items[tc.MyBar.SelectedDockTab] as DisplayTabItem; + if (myDTI.MyDSOTabPanel != null) + { + DSOTabPanel myDTP = myDTI.MyDSOTabPanel; + SelectedROFst = myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst; + displayRO.MyROFST = SelectedROFst; // need this to update RO Tree after UpdateRofst (B2015-226) + displayRO.MyROFSTLookup = SelectedROFst.GetROFSTLookup(SelectedDVI); + displayRO.RefreshRoTree(); + } + else if (tc.MyEditItem != null && displayRO.MyROFST != null && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].ROFstID != displayRO.MyROFST.ROFstID) + { + SelectedROFst = tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst; + displayRO.MyROFST = SelectedROFst; // need this to update RO Tree after UpdateRofst (B2015-226) + displayRO.MyROFSTLookup = SelectedROFst.GetROFSTLookup(SelectedDVI); + displayRO.RefreshRoTree(); + } + } + if (SelectedStepTabPanel != null && SelectedStepTabPanel.MyStepTabRibbon != null) SelectedStepTabPanel.MyStepTabRibbon.SetUpdRoValBtn(SelectedStepTabPanel.MyStepTabRibbon.NewerRoFst()); } // Add a tree node for a procedure if this is the first procedure in the docversion, added from