B2024-074 When Deleting annotations via the Administrative Tools -> Delete -> Delete Annotations, and checking if a procedure is checked out prior to deletion:
1. If no Number for Procedure, Display Title. 2. If only deleting annotations from an individual procedure, verify can check out procedure.
This commit is contained in:
@@ -11,6 +11,7 @@ using Volian.Controls.Library;
|
||||
using DevComponents.DotNetBar;
|
||||
using JR.Utils.GUI.Forms;
|
||||
using Volian.Controls.Library;
|
||||
using System.Linq;
|
||||
|
||||
namespace VEPROMS
|
||||
{
|
||||
@@ -1799,6 +1800,21 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
|
||||
//B2024-074 If only deleting annotations from an individual procedure, verify can check out procedure.
|
||||
string msgpi = string.Empty;
|
||||
foreach (ProcedureInfo pi in pil)
|
||||
{
|
||||
//LINQ used for 1st check of if statement
|
||||
//basically check if procedure was already part of a docVersionsFolder
|
||||
//before checking if procedure was checked out already
|
||||
//to avoid duplicate messages for checked out procedures
|
||||
if (!dvil.Any(x => x.Procedures.Any(y => y.ItemID == pi.ItemID)) && !MySessionInfo.CanCheckOutItem(pi.ItemID, CheckOutType.Procedure, ref msgpi))
|
||||
{
|
||||
sbDocVersions.AppendLine(msgpi);
|
||||
cancelledOut = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (cancelledOut)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
Reference in New Issue
Block a user