From 754d4a8651e4e1f06321e22e628e5a41222510a4 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 14 Nov 2012 19:16:43 +0000 Subject: [PATCH] use the ordinal step number instead of the step tab if the transition is to a non-numbered step --- PROMS/DataLoader/TransitionFixer.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/PROMS/DataLoader/TransitionFixer.cs b/PROMS/DataLoader/TransitionFixer.cs index 4d79d0b2..589916c6 100644 --- a/PROMS/DataLoader/TransitionFixer.cs +++ b/PROMS/DataLoader/TransitionFixer.cs @@ -129,6 +129,15 @@ namespace DataLoader c.Save(); } } + if (item.NewTransToUnNumberedItem) + { + using (Item itm = item.Get()) + { + ItemAnnotation ia = itm.ItemAnnotations.Add(VerificationRequiredType); + ia.SearchText = "Transition to un-numbered step"; + itm.Save(); + } + } if (checkRTF) { MyStepRTB.MyItemInfo = item; @@ -159,6 +168,17 @@ namespace DataLoader Status = "Done comparing"; } + private AnnotationType _VerificationRequiredType; // Using this to flag table to grid conversions + + public AnnotationType VerificationRequiredType + { + get + { + if (_VerificationRequiredType == null) + _VerificationRequiredType = AnnotationType.GetByName("Verification Required"); + return _VerificationRequiredType; + } + } public string FixTransitionText(string Text, TransitionInfo tran) { string lookFor = string.Format(@"", tran.TranType, tran.TransitionID, "{1,2}");