Compare commits
4 Commits
8c6f0c2736
...
C2019-036
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d87477d68 | |||
| 9002fb3828 | |||
| 261f5a526c | |||
| 6d99c456e4 |
@@ -622,8 +622,17 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (!MySessionInfo.CanCheckOutItem(myItemInfo.MyProcedure.ItemID, CheckOutType.Procedure, ref message))
|
||||
{
|
||||
DisplayTabItem dti = MyBar?.Items?.OfType<DisplayTabItem>().FirstOrDefault(x => x.MyItemInfo?.ItemID == myItemInfo.MyProcedure.ItemID);
|
||||
|
||||
//C2019-036 View Only mode work with Checked Out Procedures
|
||||
if (MessageBox.Show(this, message, "Procedure Already Checked Out", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
||||
//shouldn't prompt - should just auto put in view only if already in open tab
|
||||
//in view only
|
||||
if (
|
||||
(dti != null && dti.MyStepTabPanel.MyStepPanel.VwMode == E_ViewMode.View)
|
||||
||
|
||||
(SeparateWindows && VersionID == myItemInfo.MyDocVersion.VersionID)
|
||||
|| //to handle special case where item will be opened in a separate window
|
||||
MessageBox.Show(this, message, "Procedure Already Checked Out", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
|
||||
viewonlymode = true;
|
||||
else
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user