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 + ""); } } }
protected override string GetFirstValue() { IXQueryCheckBox checkBox = m_QueryControl as IXQueryCheckBox; return(checkBox.IsQueryChecked ? checkBox.QueryCheckedValue.ToString().ToLower() : this.GetSecondValue()); }
protected override bool IsString() { IXQueryCheckBox checkBox = this.m_QueryControl as IXQueryCheckBox; if (checkBox.IsBoolValue) { return(false); } else { return(checkBox.IsStringValue); } }
protected override string GetSecondValue() { IXQueryCheckBox checkBox = m_QueryControl as IXQueryCheckBox; return(checkBox.QueryNotCheckedValue.ToString().ToLower()); }