C2017-026: Add a visual indicator (*) in the PROMS editor to indicate a Continuous Action Step
This commit is contained in:
parent
590d43ed6f
commit
f4f52e2a84
@ -3987,8 +3987,16 @@ namespace VEPROMS.CSLA.Library
|
||||
int macroindx = tbformat.IndexOf("{!C");
|
||||
if (macroindx > -1)
|
||||
{
|
||||
cltext = cltext == null ? tbformat.Remove(macroindx, 5) : cltext.Remove(macroindx, 5);
|
||||
cltext = cltext + " ";
|
||||
// C2017-026: have visual indicator for CAS Step
|
||||
if (FormatStepData.TabData.IdentEdit.Contains("*. "))
|
||||
{
|
||||
cltext = cltext == null ? tbformat.Substring(0, macroindx) + "*. " + tbformat.Substring(macroindx + 8) : cltext.Remove(macroindx, 5);
|
||||
}
|
||||
else
|
||||
{
|
||||
cltext = cltext == null ? tbformat.Remove(macroindx, 5) : cltext.Remove(macroindx, 5);
|
||||
cltext = cltext + " ";
|
||||
}
|
||||
}
|
||||
macroindx = tbformat.IndexOf("{!diamond1}");
|
||||
if (macroindx > -1) //i found it
|
||||
|
@ -1070,7 +1070,9 @@ namespace VEPROMS.CSLA.Library
|
||||
if (doStep && pitem.IsHigh)
|
||||
{
|
||||
Tab myTab = pitem.MyDocVersion.DocVersionConfig.SelectedSlave == 0 ? StepInfo.Get(pitem.ItemID).MyTab : pitem.MyTab;
|
||||
string hlsTab = myTab.BasicTab ?? myTab.CleanTextNoSymbols;
|
||||
string hlsTab = myTab.BasicTab ?? myTab.CleanTextNoSymbols;
|
||||
// C2017-026: have visual indicator for CAS Step (but remove for transitions):
|
||||
if (pitem.FormatStepData.TabData.IdentEdit.Contains("*. ")) hlsTab = hlsTab.Replace("*", "");
|
||||
if (!sret.StartsWith(hlsTab.Trim(" ".ToCharArray())))
|
||||
{
|
||||
if (!hasDelim)
|
||||
|
Loading…
x
Reference in New Issue
Block a user