procedure TfPntTdgb.QuickRep1NeedData(Sender: TObject;
var MoreData: Boolean);
begin
MoreData := True;
if not dmClient.cdsQuerySj.Eof then
begin
QRLabel13.Caption := dmClient.cdsQuerySj.FieldByName('A3').AsString;
QRLabel14.Caption := Trim(dmClient.cdsQuerySj.FieldByName('A4').AsString);
if Trim(dmClient.cdsQuerySj.FieldByName('A5').AsString) = '调减' then
begin
sum1 := sum1 + dmClient.cdsQuerySj.FieldByName('A10').AsFloat;
sum2 := sum2 + dmClient.cdsQuerySj.FieldByName('A15').AsFloat;
QRLabel15.Caption := FormatFloat('0.0000', dmClient.cdsQuerySj.FieldByName('A10').AsFloat);
QRLabel16.Caption := FormatFloat('0.00', dmClient.cdsQuerySj.FieldByName('A15').AsFloat);
QRLabel17.Caption := dmClient.cdsQuerySj.FieldByName('A7').AsString;
QRLabel18.Caption := '';
QRLabel19.Caption := '';
QRLabel20.Caption := '';
end else
if Trim(dmClient.cdsQuerySj.FieldByName('A5').AsString) = '调增' then
begin
QRLabel15.Caption := '';
QRLabel16.Caption := '';
QRLabel17.Caption := '';
sum3 := sum3 + dmClient.cdsQuerySj.FieldByName('A9').AsFloat;
sum4 := sum4 + dmClient.cdsQuerySj.FieldByName('A14').AsFloat;
QRLabel18.Caption := FormatFloat('0.0000', dmClient.cdsQuerySj.FieldByName('A9').AsFloat);
QRLabel19.Caption := FormatFloat('0.00', dmClient.cdsQuerySj.FieldByName('A14').AsFloat);
QRLabel20.Caption := dmClient.cdsQuerySj.FieldByName('A7').AsString;
end else
begin
QRLabel15.Caption := '';
QRLabel16.Caption := '';
QRLabel17.Caption := '';
QRLabel18.Caption := '';
QRLabel19.Caption := '';
QRLabel20.Caption := '';
end;
end;
if dmClient.cdsQuerySj.Eof then
begin
QRLabel13.Caption := '';
QRLabel14.Caption := '';
QRLabel15.Caption := '';
QRLabel16.Caption := '';
QRLabel17.Caption := '';
QRLabel18.Caption := '';
QRLabel19.Caption := '';
QRLabel20.Caption := '';
if Lines >= fFax.SpaceLine then
MoreData := False;
Lines := Lines + 1;
end;
dmClient.cdsQuerySj.Next;
end;