数据集是自定义的,已经将资金类别字段删除了。查询代码如下:
if DataEdit3.Text<>'' then
begin
if indexstr='' then
indexstr:='(XMJD='+DataSetBrokerCX.DataSet.FieldByName('XMJD').AsString+')'
else
indexstr:=indexstr+'and(XMJD='+DataSetBrokerCX.DataSet.FieldByName('XMJD').AsString+')';
end;
SELF.InfoBrokerJCSS.Info.DataSetByID('XMXX').SQLFilter:=indexstr;
SELF.InfoBrokerJCSS.Info.DataSetByID('XMXX').SQLFiltered:=true;