Пример #1
0
        /// <summary>
        /// Get Info Operator
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public String GetInfoOperator(int index)
        {
            if (index < 0 || index >= _list.Count)
            {
                return(null);
            }
            QueryRestriction r = _list[index];

            return(r.GetInfoOperator());
        }       //	getInfoOperator
Пример #2
0
        }       //	getCode

        /// <summary>
        /// Get printable Query Info
        /// </summary>
        /// <returns></returns>
        public String GetInfo()
        {
            StringBuilder sb = new StringBuilder();

            if (_tableName != null)
            {
                sb.Append(_tableName).Append(": ");
            }
            //
            for (int i = 0; i < _list.Count; i++)
            {
                QueryRestriction r = _list[i];
                if (i != 0)
                {
                    sb.Append(r.AndCondition ? " AND " : " OR ");
                }
                //
                sb.Append(r.GetInfoName())
                .Append(r.GetInfoOperator())
                .Append(r.GetInfoDisplayAll());
            }
            return(sb.ToString());
        }       //	getInfo