B2020-071 Added Null reference check logic for when a procedure set does not have a RO folder associated to it.
This commit is contained in:
parent
462315f282
commit
41aac0b063
@ -1033,13 +1033,20 @@ namespace VEPROMS
|
|||||||
if (myDTI.MyDSOTabPanel != null)
|
if (myDTI.MyDSOTabPanel != null)
|
||||||
{
|
{
|
||||||
DSOTabPanel myDTP = myDTI.MyDSOTabPanel;
|
DSOTabPanel myDTP = myDTI.MyDSOTabPanel;
|
||||||
SelectedROFst = myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
if (myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations == null)
|
||||||
if (_LastROFSTID != SelectedROFst.ROFstID) // B2017-240 Only refresh when the ROFSTID is different
|
|
||||||
{
|
{
|
||||||
_LastROFSTID = SelectedROFst.ROFstID;
|
SelectedROFst = null; // B2020-071 ROs are not associated with this procedure set. Set value to null so that PROMS does not try to generate the RO tree in Step Properties.
|
||||||
displayRO.MyROFST = SelectedROFst; // need this to update RO Tree after UpdateRofst (B2015-226)
|
}
|
||||||
displayRO.MyROFSTLookup = SelectedROFst.GetROFSTLookup(SelectedDVI);
|
else
|
||||||
displayRO.RefreshRoTree();
|
{
|
||||||
|
SelectedROFst = myDTP.MyDisplayTabItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||||
|
if (_LastROFSTID != SelectedROFst.ROFstID) // B2017-240 Only refresh when the ROFSTID is different
|
||||||
|
{
|
||||||
|
_LastROFSTID = SelectedROFst.ROFstID;
|
||||||
|
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)
|
else if (tc.MyEditItem != null && displayRO.MyROFST != null && tc.MyEditItem.MyItemInfo.MyDocVersion.DocVersionAssociations[0].ROFstID != displayRO.MyROFST.ROFstID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user