过滤函数
This commit is contained in:
parent
41c4a5933c
commit
8e9a8958be
|
@ -1738,6 +1738,14 @@ begin
|
||||||
Result := Result + 'and ' + Controls[i].Name + '=' + quotedStr(Trim(TComboBox(Controls[i]).Text))
|
Result := Result + 'and ' + Controls[i].Name + '=' + quotedStr(Trim(TComboBox(Controls[i]).Text))
|
||||||
else if Controls[i].Tag = LikeTag then
|
else if Controls[i].Tag = LikeTag then
|
||||||
Result := Result + 'and ' + Controls[i].Name + ' like ' + quotedStr('%' + Trim(TComboBox(Controls[i]).Text) + '%');
|
Result := Result + 'and ' + Controls[i].Name + ' like ' + quotedStr('%' + Trim(TComboBox(Controls[i]).Text) + '%');
|
||||||
|
end
|
||||||
|
else if Controls[i] is TcxComboBox then
|
||||||
|
begin
|
||||||
|
if Trim(TcxComboBox(Controls[i]).Text) <> '' then
|
||||||
|
if Controls[i].Tag = EquTag then
|
||||||
|
Result := Result + 'and ' + Controls[i].Name + '=' + quotedStr(Trim(TcxComboBox(Controls[i]).Text))
|
||||||
|
else if Controls[i].Tag = LikeTag then
|
||||||
|
Result := Result + 'and ' + Controls[i].Name + ' like ' + quotedStr('%' + Trim(TcxComboBox(Controls[i]).Text) + '%');
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user