Compare commits

..

No commits in common. "1d3dac0e51f3a2953e0c6fd6463b95536c429aee" and "68639eadf01b4ab0fa6c3c12ebc86f995595215d" have entirely different histories.

View File

@ -1676,25 +1676,23 @@ namespace VEPROMS
{ {
// B2018-091 Allow PROMS to close if only MSWord sections have been opened. // B2018-091 Allow PROMS to close if only MSWord sections have been opened.
// B2019-071 we will now close one or all of the tabs (even step editor ones) // B2019-071 we will now close one or all of the tabs (even step editor ones)
if (_WeAreExitingPROMS)
{ string DisplayTabID = "";
string DisplayTabID = ""; int pos;
int pos; int TabItemID;
int TabItemID; string DisplayTabName = "";
string DisplayTabName = ""; int cnt = 0;
int cnt = 0;
// Deactivate previous procedure tab state by user // Deactivate previous procedure tab state by user
VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID); VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID);
// Save current procedure tab state // Save current procedure tab state
foreach (KeyValuePair<string, DisplayTabItem> pgTab in tc._MyDisplayTabItems) foreach (KeyValuePair<string, DisplayTabItem> pgTab in tc._MyDisplayTabItems)
{ {
cnt++; cnt++;
DisplayTabID = pgTab.Key; DisplayTabID = pgTab.Key;
TabItemID = Int32.Parse(DisplayTabID.Substring(DisplayTabID.IndexOf("Item - ") + 7)); TabItemID = Int32.Parse(DisplayTabID.Substring(DisplayTabID.IndexOf("Item - ") + 7));
DisplayTabName = pgTab.Value.ToString(); DisplayTabName = pgTab.Value.ToString();
//tc.SelectedDisplayTabItem.MyStepTabPanel.ToString() //tc.SelectedDisplayTabItem.MyStepTabPanel.ToString()
VEPROMS.CSLA.Library.Item.AddDisplayTabsState(TabItemID, DisplayTabID, DisplayTabName, MySessionInfo.UserID, cnt); VEPROMS.CSLA.Library.Item.AddDisplayTabsState(TabItemID, DisplayTabID, DisplayTabName, MySessionInfo.UserID, cnt);
}
} }
int n = tc._MyDisplayTabItems.Count; int n = tc._MyDisplayTabItems.Count;