H
hoyaxun
Unregistered / Unconfirmed
GUEST, unregistred user!
try
dm.ADOConnection1.BeginTrans;
with adoquery1 do
begin
close;
sql.Clear;
sql.Text:='insert into IoData(iodate,cardno,owner,isin)'+'valuesiodate1,:cardno1,:username1,:isin1)';
adoquery1.Parameters.ParamByName('iodate1').Value:=curtime;//这时报iodate1没有定义
adoquery1.Parameters.ParamByName('cardno1').Value:=cardno1;
adoquery1.Parameters.ParamByName('username1').value:=username1;
adoquery1.Parameters.ParamByName('isin1').Value:=isin;
execsql;
end;
dm.ADOConnection1.CommitTrans;
except
dm.ADOConnection1.RollbackTrans;
///////////
begin
close;
sql.Clear;
sql.Add('select * from employee where cardid=:yfm and CardStatus=:cardstatus1');
parameters.ParamByName('yfm').Value:=mainf.strcardno;//这里说yfm没有定义
parameters.ParamByName('cardstatus1').Value:=boolean1;
open;
dm.ADOConnection1.BeginTrans;
with adoquery1 do
begin
close;
sql.Clear;
sql.Text:='insert into IoData(iodate,cardno,owner,isin)'+'valuesiodate1,:cardno1,:username1,:isin1)';
adoquery1.Parameters.ParamByName('iodate1').Value:=curtime;//这时报iodate1没有定义
adoquery1.Parameters.ParamByName('cardno1').Value:=cardno1;
adoquery1.Parameters.ParamByName('username1').value:=username1;
adoquery1.Parameters.ParamByName('isin1').Value:=isin;
execsql;
end;
dm.ADOConnection1.CommitTrans;
except
dm.ADOConnection1.RollbackTrans;
///////////
begin
close;
sql.Clear;
sql.Add('select * from employee where cardid=:yfm and CardStatus=:cardstatus1');
parameters.ParamByName('yfm').Value:=mainf.strcardno;//这里说yfm没有定义
parameters.ParamByName('cardstatus1').Value:=boolean1;
open;