Revert to previous version
This commit is contained in:
@@ -46,11 +46,7 @@ namespace VEPROMS.CSLA.Library
|
||||
string lookFor;
|
||||
if (tran == null)
|
||||
{
|
||||
// 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 loc1 = Text.IndexOf("#Link:Transition:", 0) + ("#Link:Transition:").Length;
|
||||
int loc2 = Text.IndexOf(" ", loc1);
|
||||
string trantype = Text.Substring(loc1, loc2 - loc1);
|
||||
loc1 = loc2 + 1;
|
||||
@@ -81,12 +77,8 @@ 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]
|
||||
//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);
|
||||
// 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);
|
||||
}
|
||||
if(tran != null)
|
||||
Transition.Delete(tran.TransitionID);
|
||||
@@ -182,12 +174,7 @@ namespace VEPROMS.CSLA.Library
|
||||
string lookFor;
|
||||
if (tran == null)
|
||||
{
|
||||
// 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 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;
|
||||
@@ -241,11 +228,7 @@ namespace VEPROMS.CSLA.Library
|
||||
string lookFor;
|
||||
if (tran == null)
|
||||
{
|
||||
// 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 loc1 = Text.IndexOf("#Link:Transition:", 0) + ("#Link:Transition:").Length;
|
||||
int loc2 = Text.IndexOf(" ", loc1);
|
||||
string trantype = Text.Substring(loc1, loc2 - loc1);
|
||||
loc1 = loc2 + 1;
|
||||
@@ -775,8 +758,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return _CacheByPrimaryKey.ContainsKey(contentID.ToString());
|
||||
}
|
||||
public static event StaticContentInfoEvent StaticContentInfoChange;
|
||||
// B2018-002 - Invalid Transitions - Changed to Public
|
||||
public static void OnStaticContentInfoChange(object sender, StaticContentInfoEventArgs args)
|
||||
private static void OnStaticContentInfoChange(object sender, StaticContentInfoEventArgs args)
|
||||
{
|
||||
if (StaticContentInfoChange != null)
|
||||
StaticContentInfoChange(sender, args);
|
||||
|
Reference in New Issue
Block a user