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:
parent
754d4a8651
commit
c0d0c3d08e
@ -19,6 +19,10 @@ namespace VEPROMS.CSLA.Library
|
||||
public void FixTransitionText(TransitionInfo tran)
|
||||
{
|
||||
string transText = tran.ResolvePathTo();
|
||||
//if (transText == string.Empty)
|
||||
//{
|
||||
// transText = tran.MyItemToID.Ordinal.ToString();
|
||||
//}
|
||||
string lookFor = string.Format(@"<START\](\\[^v \\]+)*\\v0(\\[^v \\]+)* ([^#]*?)(\\[^v'? \\]+)*\\v(\\[^v \\]+)* #Link:Transition[^:]*?:{0} {1}( [0-9]*){{1,2}}\[END>", tran.TranType, tran.TransitionID);
|
||||
//string lookFor = string.Format(@"<START\]\\v0 ([^#]*?)\\v #Link:Transition[^:]*?:{0} {1} [0-9]*\[END>", tran.TranType, tran.TransitionID);
|
||||
Match m = Regex.Match(Text, lookFor);
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -27,6 +27,12 @@ namespace VEPROMS.CSLA.Library
|
||||
[TypeConverter(typeof(ItemInfoConverter))]
|
||||
public partial class ItemInfo : ReadOnlyBase<ItemInfo>, IDisposable
|
||||
{
|
||||
private bool _NewTransToUnNumberedItem = false;
|
||||
public bool NewTransToUnNumberedItem
|
||||
{
|
||||
get { return _NewTransToUnNumberedItem; }
|
||||
set { _NewTransToUnNumberedItem = value; }
|
||||
}
|
||||
public event ItemInfoEvent Changed;
|
||||
private void OnChange()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user