B2017-004 Added a method to check if the current item is inside of a Note or Caution
This commit is contained in:
@@ -632,12 +632,14 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
// if equation type && in single column mode, put out the rnomenu list, and skip the AER items
|
||||
bool singleColEq = (topType.Type.ToUpper().Contains("EQUATION") && _CurItemInfo.ColumnMode == 0);
|
||||
// B2017-004 if a Table type && in single column mode or in a Note or Caution, don't list the AER Table option
|
||||
bool singleColTable = (_CurItemInfo.IsTable && _CurItemInfo.ColumnMode == 0) || _CurItemInfo.IsInCautionOrNote;
|
||||
if ((singleColEq ||_CurItemInfo.IsInRNO || _CurItemInfo.IsCaution || _CurItemInfo.IsNote) && topType.StepEditData.TypeMenu.RnoMenuItem != null && topType.StepEditData.TypeMenu.RnoMenuItem != "")
|
||||
sds.Add(new StepDataRetval(topType.StepEditData.TypeMenu.RnoMenuItem, Convert.ToInt32(topType.Index)));
|
||||
else if (!singleColEq)
|
||||
else if (!singleColEq && !singleColTable)
|
||||
sds.Add(new StepDataRetval(topType.StepEditData.TypeMenu.MenuItem, Convert.ToInt32(topType.Index)));
|
||||
|
||||
if (!singleColEq || (singleColEq && topType.StepEditData.TypeMenu.RnoMenuItem != null && topType.StepEditData.TypeMenu.RnoMenuItem != ""))
|
||||
if (!singleColTable && (!singleColEq || (singleColEq && topType.StepEditData.TypeMenu.RnoMenuItem != null && topType.StepEditData.TypeMenu.RnoMenuItem != "")))
|
||||
{
|
||||
if (topType.Type == curType) retval = cntitm;
|
||||
cntitm++;
|
||||
|
Reference in New Issue
Block a user