Exemple #1
0
        public FILTER NotIn(object[] values)
        {
            FILTER prefilter = null;
            FILTER filter = null;

            foreach (var va in values)
            {
                filter = new FILTER(this.fieldname, "except", va);
                if (prefilter == null)
                {
                    prefilter = filter;
                }
                else
                {
                    filter.PreOps = "&";
                    filter.Pre = prefilter;
                    prefilter = filter;
                }
            }
            return filter;
        }
Exemple #2
0
        /// <summary>
        /// In命令.
        /// </summary>
        /// <param name="cmd"></param>
        /// <returns></returns>
        public FILTER NotIn(HOYICMD cmd)
        {
            FILTER prefilter = null;
            FILTER filter = null;

            filter = new FILTER(this.fieldname, "cmdnotin", cmd);
            if (prefilter == null)
            {
                prefilter = filter;
            }
            else
            {
                filter.PreOps = "";
                filter.Pre = prefilter;
                prefilter = filter;
            }

            return filter;
        }