Compare commits
	
		
			1 Commits
		
	
	
		
			F2025-031_
			...
			C2020-049-
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| fbc446481a | 
@@ -1654,6 +1654,10 @@ namespace VEPROMS
 | 
			
		||||
			// B2017-214 added a null reference check
 | 
			
		||||
			// B2010-071 Since we cannot tell if the user click on the X in Word or the X in PROMS, ask if the current tab
 | 
			
		||||
			//           should be closed or if we should exit PROMS or just Cancel to continue working
 | 
			
		||||
			if (tc._MyDisplayTabItems.Count < 1) // If all thabs are closed in the editor will indicate that in the database.
 | 
			
		||||
			{
 | 
			
		||||
				VEPROMS.CSLA.Library.Item.DeactivateStateDisplayTabTmp(MySessionInfo.UserID);
 | 
			
		||||
			}
 | 
			
		||||
			if (!_WeAreExitingPROMS && !ClosingWithError && tc.SelectedDisplayTabItem != null && tc._MyDisplayTabItems.Count > 0)
 | 
			
		||||
			{
 | 
			
		||||
				// B2019-071 dialog to ask user if we are to close one tab or exit
 | 
			
		||||
@@ -2349,6 +2353,7 @@ namespace VEPROMS
 | 
			
		||||
 | 
			
		||||
		public void openDisplaytabstate()
 | 
			
		||||
		{
 | 
			
		||||
			// Retrieve edit tab state from database.
 | 
			
		||||
			DataTable DisPlayTabState = VEPROMS.CSLA.Library.Item.GetDisplayTabs(VlnSettings.UserID);
 | 
			
		||||
		
 | 
			
		||||
			if (DisPlayTabState.Rows.Count > 0)
 | 
			
		||||
@@ -2356,11 +2361,11 @@ namespace VEPROMS
 | 
			
		||||
				foreach (DataRow TabState in DisPlayTabState.Rows)
 | 
			
		||||
				{
 | 
			
		||||
					int _ItemID = (int)TabState["ItemID"];
 | 
			
		||||
					//ItemInfoList _Procedures = ItemInfoList.GetList(_ItemID, (int)E_FromType.Procedure));
 | 
			
		||||
					ItemInfo _Procedure = ItemInfo.Get(_ItemID);
 | 
			
		||||
					//ItemInfo.Get
 | 
			
		||||
					//ItemInfo.Get
 | 
			
		||||
					// Open procedure in the editor.
 | 
			
		||||
					OpenItem(_Procedure);
 | 
			
		||||
					// SelectedStepTabPanel needs to be set so the print buttons on the ribbon will work.
 | 
			
		||||
					SelectedStepTabPanel = tc.MyEditItem.MyStepPanel.MyStepTabPanel;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user