procedure TRepairManage.SetFilter(aFilterField, aFilterVaule: string; aTableView: TcxGridDBTableView);
var
str: string;
begin
str:='%'+trim(aFilterVaule)+'%';
with aTableView.DataController.Filter do
begin
try
BeginUpdate;
Root.Clear;
Root.AddItem(aTableView.GetColumnByFieldName(aFilterField),foLike,str,str);
if not Active then
Active:=true;
finally
EndUpdate;
end;
end;
end;