if optiflag='select' then
begin
with teadm do
begin
customer_Query.close;
customer_Query.sql.Clear;
customer_Query.SQL.Add('select * from customer where customerid=:ID');
customer_Query.Params.ParamByName('ID').Value:=customerid;
customer_query.Open;
end;
begin
with teadm do
begin
customer_Query.close;
customer_Query.sql.Clear;
customer_Query.SQL.Add('select * from customer where customerid=:ID');
customer_Query.Params.ParamByName('ID').Value:=customerid;
customer_query.Open;
end;
if optiflag='select' then
begin
with teadm do
begin
customer_Query.close;
customer_Query.sql.Clear;
customer_Query.SQL.Add('select * from customer where customerid='''++customerid'''');
customer_query.Open;
end;
begin
with teadm do
begin
customer_Query.close;
customer_Query.sql.Clear;
customer_Query.sql.Add('delete from customer_t where customerID='''+customerid+'''');
customer_Query.execSQL;
end;
end;
begin
with teadm do
begin
customer_Query.close;
customer_Query.sql.Clear;
customer_Query.sql.Add('delete from customer_t where customerID='''+customerid+'''');
customer_Query.execSQL;
end;
end;