Beispiel #1
0
        private string BuildFilterCondition(SearchCondition.SearchConditionRow dr)
        {
            string TableName = dr.s_TableName;
            string FieldName = dr.s_FieldName;
            string Value     = dr.s_Value;
            var    compare   = (Operators)Enum.Parse(Operators.Equal.GetType(), dr.s_Compare);
            var    type      = (DataType)Enum.Parse(DataType.Bool.GetType(), dr.s_Type);

            return(BuildFilterCondition(TableName, FieldName, Value, compare, type));
        }
Beispiel #2
0
        private string BuildUrlString(SearchCondition.SearchConditionRow dr)
        {
            var    urlBuilder = new StringBuilder();
            string _ControlId = dr.s_ControlID;
            string _Value     = dr.s_Value;

            if (_ControlId.Trim() != "" && _Value.Trim() != "")
            {
                urlBuilder.Append(_ControlId).Append(IDValueSeparator).Append(_Value).Append(ControlSeparator);
            }
            return(urlBuilder.ToString());
        }