예제 #1
0
        private void PostValidateFilters()
        {
            if (!Filter.Any())
            {
                return;
            }

            for (int i = 0; i < Filter.Count; i++)
            {
                var   filter = Filter[i];
                Field field;
                if (TryGetField(filter.Field, out field))
                {
                    filter.LeftField = field;
                    filter.IsField   = true;
                    filter.Key       = field.Name + "_filter_" + i;
                }
                if (TryGetField(filter.Value, out field))
                {
                    filter.ValueField   = field;
                    filter.ValueIsField = true;
                }
            }
        }