adoquery1.SQL.Clear;
adoquery1.SQL.Add('select table1.id as 自动编号, table1.company as 公司代码, table1.barcode as 条型码, table1.liushui as 流水码, table1.inout as 货物状态, table1.datetime as 日期 from table1 WHERE TABLE1.COMPANY='"+edit1.text+"');
adoquery1.ExecSQL;
adoquery1.active:=true;
adoquery1.SQL.Add('select table1.id as 自动编号, table1.company as 公司代码, table1.barcode as 条型码, table1.liushui as 流水码, table1.inout as 货物状态, table1.datetime as 日期 from table1 WHERE TABLE1.COMPANY=' + #39 + edit1.text + #39);