C2020-049-Add-the-ability-for-PROMS-to-remember-the-procedure-tabs-that-were-open-when-you-closed-PROMS-5 #421
@ -1676,23 +1676,25 @@ 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 = "";
|
|
||||||
int pos;
|
|
||||||
int TabItemID;
|
|
||||||
string DisplayTabName = "";
|
|
||||||
int cnt = 0;
|
|
||||||
// Deactivate previous procedure tab state by user
|
|
||||||
VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID);
|
|
||||||
// Save current procedure tab state
|
|
||||||
foreach (KeyValuePair<string, DisplayTabItem> pgTab in tc._MyDisplayTabItems)
|
|
||||||
{
|
{
|
||||||
cnt++;
|
string DisplayTabID = "";
|
||||||
DisplayTabID = pgTab.Key;
|
int pos;
|
||||||
TabItemID = Int32.Parse(DisplayTabID.Substring(DisplayTabID.IndexOf("Item - ") + 7));
|
int TabItemID;
|
||||||
DisplayTabName = pgTab.Value.ToString();
|
string DisplayTabName = "";
|
||||||
//tc.SelectedDisplayTabItem.MyStepTabPanel.ToString()
|
int cnt = 0;
|
||||||
VEPROMS.CSLA.Library.Item.AddDisplayTabsState(TabItemID, DisplayTabID, DisplayTabName, MySessionInfo.UserID, cnt);
|
// Deactivate previous procedure tab state by user
|
||||||
|
VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID);
|
||||||
|
// Save current procedure tab state
|
||||||
|
foreach (KeyValuePair<string, DisplayTabItem> pgTab in tc._MyDisplayTabItems)
|
||||||
|
{
|
||||||
|
cnt++;
|
||||||
|
DisplayTabID = pgTab.Key;
|
||||||
|
TabItemID = Int32.Parse(DisplayTabID.Substring(DisplayTabID.IndexOf("Item - ") + 7));
|
||||||
|
DisplayTabName = pgTab.Value.ToString();
|
||||||
|
//tc.SelectedDisplayTabItem.MyStepTabPanel.ToString()
|
||||||
|
VEPROMS.CSLA.Library.Item.AddDisplayTabsState(TabItemID, DisplayTabID, DisplayTabName, MySessionInfo.UserID, cnt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int n = tc._MyDisplayTabItems.Count;
|
int n = tc._MyDisplayTabItems.Count;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user