commented out test coding to save for now.

use the ordinal step number instead of the step tab if the transition is to a non-numbered step
added bool to track if the new transition is to a non-numbered step
This commit is contained in:
2012-11-14 19:17:58 +00:00
parent 754d4a8651
commit c0d0c3d08e
3 changed files with 26 additions and 1 deletions

View File

@@ -409,7 +409,22 @@ namespace VEPROMS.CSLA.Library
toItem.ItemID==rangeItem.ItemID && !toItem.IsHigh?toItem.LastSibling:rangeItem);
if(_AppendMethods==null)
SetupMethods();
return BuildString(tb);
string retval = BuildString(tb);
if (retval == string.Empty)
{
retval = toItem.Ordinal.ToString();
if (fromInfo.MyContent.Text.Contains("<CTID="))
fromInfo.NewTransToUnNumberedItem = true;
//Volian.Base.Library.vlnStackTrace.ShowStackLocal("Setting Flag", 3, 10);
//using (Item itm = fromInfo.Get())
//{
// ItemAnnotation ia = itm.ItemAnnotations.Add(AnnotationType.GetByName("Verifcation Required"));
// ia.SearchText = "Transition to Un-Numbered Step";
//itm.Save();
//}
}
return retval;
}
private static TransitionBuilder SetupTransitionBuilder(FormatInfo formatInfo, ItemInfo fromInfo, int tranType, ItemInfo toItem, ItemInfo rangeItem)
{