B2018-002 Handle Range Transitions for Invalid Transitions
Add a prefix to transitions converted to text which were invalid B2018-002 Add counters for invalid transitions converted to text. Added a method to convert invalid transitions to text B2018-002 Cleanup debug B2018-002 Changed the panel so that it only requires a default section if the default is not set and it is required B2018-010 Logic fixed to display the Requires Default tooltip only when it is required. B2018-002 Fix invalid transitions when a step is activated. B2018-002 Don't fail when you open a step with an invalid transition. B2018-002 Display Transition Refresh Statistics
This commit is contained in:
@@ -46,7 +46,11 @@ namespace VEPROMS.CSLA.Library
|
||||
string lookFor;
|
||||
if (tran == null)
|
||||
{
|
||||
int loc1 = Text.IndexOf("#Link:Transition:", 0) + ("#Link:Transition:").Length;
|
||||
// B2018-002 - Invalid Transitions - Handle Range Transitions
|
||||
int loc1 = Text.IndexOf("#Link:Transition:", 0);
|
||||
if(loc1 > 0) loc1+=("#Link:Transition:").Length;
|
||||
else
|
||||
loc1 = Text.IndexOf("#Link:TransitionRange:", 0)+ ("#Link:TransitionRange:").Length;;
|
||||
int loc2 = Text.IndexOf(" ", loc1);
|
||||
string trantype = Text.Substring(loc1, loc2 - loc1);
|
||||
loc1 = loc2 + 1;
|
||||
@@ -77,8 +81,12 @@ namespace VEPROMS.CSLA.Library
|
||||
using (Item myitem = this.ContentItems[0].MyItem) // so that myitem does not stay in cache B2016-153
|
||||
{
|
||||
myitem.DisposeOfContent = false; // don't dispose of the contents may be needed if more than one RO needs processed - part of B2017-060
|
||||
// B2016-225 (follow through) added more descriptive Annotation Type when transition is converted to text
|
||||
Annotation.MakeAnnotation(myitem, AnnotationType.GetByNameOrCreate("Link Converted To Text"), "", string.Format("Transition ({0}) converted to text", ItemInfo.ConvertToDisplayText(gg)), null);
|
||||
// B2016-225 (follow through) added more descriptive Annotation Type when transition is converted to text]
|
||||
//Check for validity
|
||||
// B2018-002 - Invalid Transitions - Add a prefix of invalid if the transition record is missing
|
||||
string prefix = "";
|
||||
if (tran == null) prefix = "Invalid ";
|
||||
Annotation.MakeAnnotation(myitem, AnnotationType.GetByNameOrCreate("Link Converted To Text"), "", prefix + string.Format("Transition ({0}) converted to text", ItemInfo.ConvertToDisplayText(gg)), null);
|
||||
}
|
||||
if(tran != null)
|
||||
Transition.Delete(tran.TransitionID);
|
||||
@@ -174,7 +182,12 @@ namespace VEPROMS.CSLA.Library
|
||||
string lookFor;
|
||||
if (tran == null)
|
||||
{
|
||||
int loc1 = MyGrid.Data.IndexOf("#Link:Transition:", 0) + ("#Link:Transition:").Length;
|
||||
// B2018-002 - Invalid Transitions - Added code to support range transitions
|
||||
int loc1 = MyGrid.Data.IndexOf("#Link:Transition:", 0);
|
||||
if (loc1 > 0) loc1 += ("#Link:Transition:").Length;
|
||||
else
|
||||
loc1 = MyGrid.Data.IndexOf("#Link:TransitionRange:", 0) + ("#Link:TransitionRange:").Length; ;
|
||||
//int loc1 = MyGrid.Data.IndexOf("#Link:Transition:", 0) + ("#Link:Transition:").Length;
|
||||
int loc2 = MyGrid.Data.IndexOf(" ", loc1);
|
||||
string trantype = MyGrid.Data.Substring(loc1, loc2 - loc1);
|
||||
loc1 = loc2 + 1;
|
||||
@@ -228,7 +241,11 @@ namespace VEPROMS.CSLA.Library
|
||||
string lookFor;
|
||||
if (tran == null)
|
||||
{
|
||||
int loc1 = Text.IndexOf("#Link:Transition:", 0) + ("#Link:Transition:").Length;
|
||||
// B2018-002 - Invalid Transitions - Added code to support range transitions
|
||||
int loc1 = Text.IndexOf("#Link:Transition:", 0);
|
||||
if (loc1 > 0) loc1 += ("#Link:Transition:").Length;
|
||||
else
|
||||
loc1 = Text.IndexOf("#Link:TransitionRange:", 0) + ("#Link:TransitionRange:").Length; ;
|
||||
int loc2 = Text.IndexOf(" ", loc1);
|
||||
string trantype = Text.Substring(loc1, loc2 - loc1);
|
||||
loc1 = loc2 + 1;
|
||||
@@ -758,7 +775,8 @@ namespace VEPROMS.CSLA.Library
|
||||
return _CacheByPrimaryKey.ContainsKey(contentID.ToString());
|
||||
}
|
||||
public static event StaticContentInfoEvent StaticContentInfoChange;
|
||||
private static void OnStaticContentInfoChange(object sender, StaticContentInfoEventArgs args)
|
||||
// B2018-002 - Invalid Transitions - Changed to Public
|
||||
public static void OnStaticContentInfoChange(object sender, StaticContentInfoEventArgs args)
|
||||
{
|
||||
if (StaticContentInfoChange != null)
|
||||
StaticContentInfoChange(sender, args);
|
||||
|
Reference in New Issue
Block a user