Exemplo n.º 1
0
        protected override string GetEqualCondition(string firstValue)
        {
            IXQueryCheckBox checkBox = m_QueryControl as IXQueryCheckBox;

            if (this.IsString())
            {
                if (checkBox.IsQueryChecked == false && checkBox.QueryIsNotCheckedIsAll == true)
                {
                    return(string.Empty);
                }
                else
                {
                    return(" and " + this.m_QueryControl.QueryFieldName + "='" + GetFirstValue() + "'");
                }
            }
            else
            {
                if (checkBox.IsQueryChecked == false && checkBox.QueryIsNotCheckedIsAll == true)
                {
                    return(string.Empty);
                }
                else
                {
                    return(" and " + this.m_QueryControl.QueryFieldName + "=" + firstValue + "");
                }
            }
        }
Exemplo n.º 2
0
        protected override string GetFirstValue()
        {
            IXQueryCheckBox checkBox = m_QueryControl as IXQueryCheckBox;

            return(checkBox.IsQueryChecked ? checkBox.QueryCheckedValue.ToString().ToLower() :
                   this.GetSecondValue());
        }
Exemplo n.º 3
0
        protected override bool IsString()
        {
            IXQueryCheckBox checkBox = this.m_QueryControl as IXQueryCheckBox;

            if (checkBox.IsBoolValue)
            {
                return(false);
            }
            else
            {
                return(checkBox.IsStringValue);
            }
        }
Exemplo n.º 4
0
        protected override string GetSecondValue()
        {
            IXQueryCheckBox checkBox = m_QueryControl as IXQueryCheckBox;

            return(checkBox.QueryNotCheckedValue.ToString().ToLower());
        }