begin
FilStr:='';
if ComboBox1.Text<>'' then FilStr:='xgdmc='''+ComboBox2.Text+'''';
if ComboBox2.Text<>'' then
begin
if Filstr=''then FilStr:='nf='''+ComboBox3.Text+''''
else Filstr:=Filstr+'and nf='''+ ComboBox3.Text+'''';
end;
if ComboBox3.Text<>'' then FilStr:='xw='''+ComboBox3.Text+'''';
if FilStr<>'' then
begin
TSQLDataSet(DataSetBrokerCXSJJ.DataSet).SQLFilter:=FilStr;
TSQLDataSet(DataSetBrokerCXSJJ.DataSet).SQLFiltered:=true;
Dialogs.Showmessage(DataSetBrokerCXSJJ.DataSet.DataFetch.CommandText);
end
else TSQLDataSet(DataSetBrokerCXSJJ.DataSet).SQLFiltered:=false;
end;
begin
FilStr:='';
if ComboBox1.Text<>'' then FilStr:='xgdmc='''+ComboBox1.Text+'''';
if ComboBox2.Text<>'' then
begin
if Filstr=''then FilStr:='nf='''+ComboBox2.Text+''''
else Filstr:=Filstr+'and nf='''+ ComboBox2.Text+'''';
end;
if ComboBox3.Text<>'' then FilStr:='xw='''+ComboBox3.Text+'''';
if FilStr<>'' then
begin
TSQLDataSet(DataSetBrokerCXSJJ.DataSet).SQLFilter:=FilStr;
TSQLDataSet(DataSetBrokerCXSJJ.DataSet).SQLFiltered:=true;
end
else TSQLDataSet(DataSetBrokerCXSJJ.DataSet).SQLFiltered:=false;
end;