Changed logic for Security Group delete, so that the default Group cannot be deleted.
The applicabilty tab was made invisible for Procedures (Title) and MSWord Sections when they are open in DSOFramer.
This commit is contained in:
parent
59e8e7c6dc
commit
746db18ec2
@ -347,6 +347,11 @@ namespace VEPROMS
|
||||
return;
|
||||
}
|
||||
GroupInfo gi = myGroupInfoList[lstGroups.SelectedIndex];
|
||||
if(myFolder.FolderConfig.Security_Group == gi.GID)
|
||||
{
|
||||
MessageBox.Show("Cannot Delete Default Group", "Attempt to Delete Default", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
bool deleteOK = true;
|
||||
if(gi.GroupMembershipCount > 0)
|
||||
{
|
||||
|
@ -1948,6 +1948,8 @@ namespace VEPROMS
|
||||
infotabRO.Visible = true;
|
||||
}
|
||||
infotabTags.Visible = false;
|
||||
infotabApplicability.Visible = false;
|
||||
infotabHistory.Visible = false;
|
||||
displayBookMarks.MyEditItem = null;
|
||||
displayFoldoutMaint.Visible = false;
|
||||
//vlnStackTrace.ShowStack("enter tc_ItemSelectedChanged {0}", _CurrentItem);
|
||||
@ -1979,7 +1981,7 @@ namespace VEPROMS
|
||||
displayTags.IsVisible = true;
|
||||
}
|
||||
infotabHistory.Visible = true;
|
||||
if (args.MyItemInfo.MyDocVersion.MultiUnitCount > 1)
|
||||
if (args.MyItemInfo.MyDocVersion.MultiUnitCount > 1 && !args.MyItemInfo.IsProcedure )
|
||||
{
|
||||
infotabApplicability.Visible = true;
|
||||
displayApplicability.MyItemInfo = args.MyEditItem.MyItemInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user