Fixed problem trying to convert an empty string to a number
B2013-007 fixed logic to handle “{Proc Num} ({Proc Title}) Step {First Step}” transition when no step number is used. Needed to append a “)”.
This commit is contained in:
parent
6a325705d7
commit
a8d351bfc2
@ -1202,7 +1202,7 @@ namespace VEPROMS.CSLA.Library
|
||||
ProcedureConfig pc = (ProcedureConfig)parent.MyConfig;
|
||||
int sectstartid = -1;
|
||||
string ss = pc == null ? null : pc.SectionStart;
|
||||
if (ss != null) sectstartid = System.Convert.ToInt32(ss);
|
||||
if (ss != null && ss != "") sectstartid = System.Convert.ToInt32(ss);
|
||||
else return false;
|
||||
if (ItemID == sectstartid) return true;
|
||||
return false;
|
||||
|
@ -719,7 +719,10 @@ namespace VEPROMS.CSLA.Library
|
||||
else if ((tb._ToItem.IsSection || tb._ToItem.IsProcedure) && ((tb._TransUI & E_TransUI.StepAllowNone) == E_TransUI.StepAllowNone))
|
||||
{
|
||||
string tmpStr = tb.ToString();
|
||||
if (tmpStr.ToUpper().EndsWith(", STEP ")) tb.Remove(tb.Length - 7, 7); // 7 is length of ", Step "
|
||||
if (tmpStr.ToUpper().EndsWith(", STEP "))
|
||||
tb.Remove(tb.Length - 7, 7); // 7 is length of ", Step "
|
||||
else if (tb.Prefix != null && tb.Prefix.StartsWith(")"))
|
||||
tb.Append(")");
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user