procedure dayin();
begin
if Application.MessageBox('打印确认?', '提示',MB_OKCANCEL + MB_DEFBUTTON1)=IDok then
begin
record_onneeddata:=0;
with fline_reportdo
begin
qrlabel20.Caption:='统计日期:'+datetostr(datetimepicker1.date)+'---->'+datetostr(datetimepicker2.date);
qrlabel22.Caption:='共计'+inttostr(length(shuzu))+'台设备';
you_value:=0;
wu_value:=0;
wujie_value:=0;
tingdian_value:=0;
for i:=0 to length(shuzu)-1do
begin
you_value:=you_value+shuzu.san_kwh;
wu_value:=wu_value+shuzu.san_kvarh;
wujie_value:=wujie_value+shuzu.san_jiesheng_kvarh;
tingdian_value:=tingdian_value+shuzu.tingdian_time;
end;
qrlabel23.Caption:= '累计有功电度:'+floattostr(you_value)+'KWH' ;
qrlabel24.Caption:='累计无功电度:'+floattostr(wu_value)+'KVarh' ;
qrlabel25.Caption:='累计无功节电数:'+floattostr(wujie_value)+'Kvarh' ;
qrlabel26.Caption:='累计停电时间:'+floattostr(tingdian_value)+'分';
end;
end;
with fline_reportdo
begin
quickrep1.Preview;
//打印预蓝
quickrep1.Prepare;
end;
end;
////////////////////////