Beispiel #1
0
        public bool createFilter(DBFilter f)
        {
            bool result = false;

            foreach (DBTerm t in terms)
            {
                f.add(t);
            }

            foreach (SearchBinder b in binders)
            {
                if (b.buildFilter(f))
                {
                    result = true;
                }
            }
            return(result);
        }
Beispiel #2
0
        public override bool buildFilter(DBFilter filter)
        {
            if ((hasNotSelected && c.SelectedIndex > 0) || (!hasNotSelected && c.SelectedIndex >= 0))
            {
                string column;
                column = fieldName;

                string s = c.SelectedValue;
                if (s.Equals(Common.EMPTY_STRING))
                {
                    return(false);
                }
                //				object v=f.parseValue(s);
                filter.add(new Match(column, s));
                return(true);
            }
            else
            {
                return(false);
            }
        }