procedure TMZHJSFCT.AddMX();
var frm DDGGZYJ.TXQSFXMCT;
ds,ds1 :TDataSet;
begin
frm := LDDGGZYJ.TXQSFXMCT.Create(Self.Context);
try
if frm.ShowModal = Business.Forms.Controls.mrOk then
begin
ds :=Self.dsbCFMX.DataSet;
ds1 :=frm.DataSetYXXM;
ds1.First;
while not ds1.Eof do
begin
ds.Append;
ds.FieldByName('AKC222').Value :=ds1.FieldByName('DM').Value;
ds.FieldByName('AKA063').Value :=ds1.FieldByName('LB').Value;
ds.FieldByName('AKC223').Value :=ds1.FieldByName('MC').Value;
ds.FieldByName('AKA065').Value :=ds1.FieldByName('XMDJ').Value;
ds.FieldByName('AKC225').Value :=ds1.FieldByName('JG').Value;
ds.FieldByName('AKA070').Value :=ds1.FieldByName('JX').Value;
ds.FieldByName('AKA074').Value :=ds1.FieldByName('GG').Value;
ds.FieldByName('AKA067').Value :=ds1.FieldByName('DW').Value;
ds1.Next;
end;
if ds.State in [TDataSetState.dsInsert,TDataSetState.dsEdit] then
ds.Post;
end;
finally
frm.free;
end;
end;
我已经在功能中引入了资源集,LDDGGZYJ为资源集单元名称,在资源集窗体创建时,跳出‘BizLib.dll’访问错误,请指教