B2020-049: Save RO button not enabled for Word Document when entering Procedure in editor
This commit is contained in:
parent
a4dcf59caa
commit
8c708ae5fd
@ -242,7 +242,10 @@ namespace Volian.Controls.Library
|
||||
bool isenh = MyRTB != null && MyRTB.MyItemInfo != null && MyRTB.MyItemInfo.IsEnhancedStep;
|
||||
//B2017-245 Disable SAveRO buttton for Procedues and Sections
|
||||
bool isNotStep = MyRTB != null && MyRTB.MyItemInfo != null && (MyRTB.MyItemInfo.IsProcedure || MyRTB.MyItemInfo.IsSection);
|
||||
btnSaveRO.Enabled = !isNotStep && !isenh && UserInfo.CanEdit(MyUserInfo, Mydvi) && ((_SavCurROLink == null) || !(childroid.Equals(SavROLink.ROID.ToLower()))); //added security check (UserInfo.CanEdit)
|
||||
//B2020-049: Save button not enabled on Word docs, only if a procedure was opened first and immediately after the word document
|
||||
// section is opened (added 'IsInWorDoc')
|
||||
bool isInWordDoc = TabControl.SelectedDisplayTabItem.MyDSOTabPanel != null;
|
||||
btnSaveRO.Enabled = (isInWordDoc || (!isNotStep && !isenh)) && UserInfo.CanEdit(MyUserInfo, Mydvi) && ((_SavCurROLink == null) || !(childroid.Equals(SavROLink.ROID.ToLower()))); //added security check (UserInfo.CanEdit)
|
||||
btnCancelRO.Enabled = ((_SavCurROLink != null) && childroid != SavROLink.ROID.ToLower());
|
||||
btnGoToRO.Enabled = UserInfo.CanEditROs(MyUserInfo, Mydvi); // Writers and Reviewers cannot edit ROs (run the RO Editor)
|
||||
switch (chld.type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user