B2017-244 Open RO Panel for MSWord sections
B2017-245 Leave RO Menu expanded for Section Titles or Procedure Titles. B2017-247 Added Error Handling for PingSession so that the code will not crash B2017-250 Added an error log message when a procedure or MSWord section is forced closed by the administrator.
This commit is contained in:
parent
0d8be26409
commit
95ae4efc58
@ -1291,12 +1291,16 @@ namespace VEPROMS
|
|||||||
if (!DisablePing)// If Ping is disabled don't do ping - This was causing a deadlock during import
|
if (!DisablePing)// If Ping is disabled don't do ping - This was causing a deadlock during import
|
||||||
{
|
{
|
||||||
List<int> myList = MySessionInfo.PingSession();
|
List<int> myList = MySessionInfo.PingSession();
|
||||||
|
// B2017-247 Error Handler for Ping Session
|
||||||
|
if (myList != null)
|
||||||
|
{
|
||||||
foreach (DisplayTabItem dti in tc.MyBar.Items)
|
foreach (DisplayTabItem dti in tc.MyBar.Items)
|
||||||
{
|
{
|
||||||
if (!myList.Contains(dti.OwnerID))
|
if (!myList.Contains(dti.OwnerID))
|
||||||
MyCloseTabList.PushDTI(dti);
|
MyCloseTabList.PushDTI(dti);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
MySemaphore.Release();
|
MySemaphore.Release();
|
||||||
}
|
}
|
||||||
WindowsFormsSynchronizationContext mUIContext = new WindowsFormsSynchronizationContext();
|
WindowsFormsSynchronizationContext mUIContext = new WindowsFormsSynchronizationContext();
|
||||||
@ -1339,7 +1343,8 @@ namespace VEPROMS
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
//Int64 lastChanged = 0;
|
//Int64 lastChanged = 0;
|
||||||
if (MySessionInfo.ChangedItems.Count > 0)
|
// B2017-247 Error Handler for Ping Session
|
||||||
|
if (MySessionInfo.ChangedItems != null && MySessionInfo.ChangedItems.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (int id in MySessionInfo.ChangedItems.Keys)
|
foreach (int id in MySessionInfo.ChangedItems.Keys)
|
||||||
{
|
{
|
||||||
@ -1348,7 +1353,8 @@ namespace VEPROMS
|
|||||||
MyFindNodeAndExpand(id);
|
MyFindNodeAndExpand(id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (MySessionInfo.ChangedContents.Count > 0)
|
// B2017-247 Error Handler for Ping Session
|
||||||
|
if (MySessionInfo.ChangedContents != null && MySessionInfo.ChangedContents.Count > 0)
|
||||||
foreach (int id in MySessionInfo.ChangedContents.Keys)
|
foreach (int id in MySessionInfo.ChangedContents.Keys)
|
||||||
{
|
{
|
||||||
if (ContentInfo.IsInCache(id))
|
if (ContentInfo.IsInCache(id))
|
||||||
@ -1941,7 +1947,11 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
DisplayTabItem dti = MyCloseTabList.PopDTI();
|
DisplayTabItem dti = MyCloseTabList.PopDTI();
|
||||||
if (dti.MyDSOTabPanel != null)
|
if (dti.MyDSOTabPanel != null)
|
||||||
|
{
|
||||||
dti.MyDSOTabPanel.OverrideClose = true;
|
dti.MyDSOTabPanel.OverrideClose = true;
|
||||||
|
// Add error log message for forced check-in
|
||||||
|
_MyLog.WarnFormat("===============Override Close====================");
|
||||||
|
}
|
||||||
tc.CloseTabItem(dti);
|
tc.CloseTabItem(dti);
|
||||||
}
|
}
|
||||||
tmrCloseTabItems.Enabled = true;
|
tmrCloseTabItems.Enabled = true;
|
||||||
@ -3233,7 +3243,8 @@ namespace VEPROMS
|
|||||||
ctrlAnnotationDetails.Enabled = true;
|
ctrlAnnotationDetails.Enabled = true;
|
||||||
if (args.MyEditItem.MyItemInfo.IsSection || args.MyEditItem.MyItemInfo.IsProcedure)
|
if (args.MyEditItem.MyItemInfo.IsSection || args.MyEditItem.MyItemInfo.IsProcedure)
|
||||||
{
|
{
|
||||||
infotabRO.Visible = infotabTransition.Visible = false;
|
//infotabRO.Visible = // B2017-245 Allow Ro Menu to be seen for Procedures and Sections
|
||||||
|
infotabTransition.Visible = false;
|
||||||
infotabTags.Visible = false;
|
infotabTags.Visible = false;
|
||||||
displayTags.Visible = false;
|
displayTags.Visible = false;
|
||||||
}
|
}
|
||||||
@ -3322,6 +3333,12 @@ namespace VEPROMS
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
SelectedDVI = args.MyItemInfo.MyDocVersion;
|
SelectedDVI = args.MyItemInfo.MyDocVersion;
|
||||||
|
//B2017-244 Open RO Panel for MSWord Sections
|
||||||
|
if (args.MyItemInfo.MyDocVersion.DocVersionAssociationCount > 0)
|
||||||
|
{
|
||||||
|
displayRO.MyROFSTLookup = args.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(args.MyItemInfo.MyDocVersion);
|
||||||
|
displayRO.MyROFST = args.MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||||
|
}
|
||||||
displayRO.ROTypeFilter = E_ROValueType.All; // allow all RO types for Word attachments (but fix)
|
displayRO.ROTypeFilter = E_ROValueType.All; // allow all RO types for Word attachments (but fix)
|
||||||
displayRO.SetFindDocROButton(true);
|
displayRO.SetFindDocROButton(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user