Ejemplo n.º 1
0
 public static ConditionSerializationContext Serialize(GridEXFilterCondition condition)
 {
     Logger.Log.DebugFormat("condition={0}", condition);
     JanusLayoutWriter writer = new JanusLayoutWriter();
     ((IJanusXmlLayoutsSupport)condition).Serialize(writer);
     ConditionSerializationContext context = new ConditionSerializationContext(string.Format("<{0}>{1}</{0}>", "FilterCondition", writer));
     if (condition.Column != null)
     {
         ColumnInfo tempLocal0 = new ColumnInfo
         {
             ColumnKey = condition.Column.Key,
             TableKey = condition.Column.Table.Key
         };
         ColumnInfo key = tempLocal0;
         context.AddColumnKey(key);
         SetContextColumns(context, condition.Conditions);
     }
     return context;
 }
Ejemplo n.º 2
0
 private static void SetContextColumns(ConditionSerializationContext context, GridEXFilterConditionCollection conditions)
 {
     Logger.Log.DebugFormat("conditions={0}", conditions.Count);
     foreach (GridEXFilterCondition condition in conditions)
     {
         if (condition.Column != null)
         {
             ColumnInfo tempLocal1 = new ColumnInfo
             {
                 ColumnKey = condition.Column.Key,
                 TableKey = condition.Column.Table.Key
             };
             ColumnInfo key = tempLocal1;
             context.AddColumnKey(key);
         }
         SetContextColumns(context, condition.Conditions);
     }
 }
 public void AddColumnKey(ColumnInfo key)
 {
     columnKeys.Add(key);
 }