Page Num Transition (for grids)
This commit is contained in:
@@ -17,6 +17,7 @@ using System.Configuration;
|
||||
using System.IO;
|
||||
using System.ComponentModel;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.RegularExpressions;
|
||||
using Csla.Validation;
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
@@ -589,6 +590,12 @@ namespace VEPROMS.CSLA.Library
|
||||
// if we're not dirty then don't update the database
|
||||
if (!this.IsDirty) return;
|
||||
SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"];
|
||||
string pattern = string.Format(@"<START\]\\v0([^#]*)\\v #Link:Transition(|Range):[0-9]* <CTID={0}>( [0-9]*){{1,2}}\[END>", _TransitionID);
|
||||
Match m = Regex.Match(myContent.Text, pattern);
|
||||
if (m.Groups.Count > 1 && m.Groups[1].Value.Contains("(Page ~)"))
|
||||
_Config = "<Config><Transition Formatted=\"True\" /></Config>";
|
||||
else
|
||||
_Config = string.Empty;
|
||||
_LastChanged = Transition.Add(cn, ref _TransitionID, myContent, _MyItemToID, _MyItemRangeID, _IsRange, _TranType, _Config, _DTS, _UserID);
|
||||
MarkOld();
|
||||
}
|
||||
|
Reference in New Issue
Block a user