📄 sum100report.pas
字号:
unit SUM100Report;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, BaseReport, DB, DBTables, QRCtrls, QuickRpt, ExtCtrls;
type
TqrSUM100 = class(TQuickReport)
QRLabel8: TQRLabel;
QRLabel11: TQRLabel;
QRDBText4: TQRDBText;
QRDBText8: TQRDBText;
QRBand1: TQRBand;
QRLabel15: TQRLabel;
QRDBText1: TQRDBText;
QRExpr4: TQRExpr;
QRLabel6: TQRLabel;
lDate: TQRLabel;
qyReportPAYDATE: TStringField;
qyReportPAYCODE: TFloatField;
qyReportPAYMONEY: TFloatField;
QRLabel7: TQRLabel;
QRDBText2: TQRDBText;
qyReportAREA: TStringField;
private
{ Private declarations }
public
{ Public declarations }
end;
procedure ProSUM100Print(BeginDate,EndDate:tdatetime);
var
qrSUM100: TqrSUM100;
implementation
uses DataModule, Main;
{$R *.dfm}
procedure ProSUM100Print(BeginDate,EndDate:tdatetime);
begin
with qrSUM100.qyReport do
begin
Close;
ParamByName('BeginDate').AsDateTime := BeginDate;
ParamByName('EndDate').AsDateTime := EndDate;
Open;
end;
qrSUM100.lDate.Caption := FormatDateTime('yyyy"年"mm"月"dd"日"--', BeginDate)
+ FormatDateTime('yyyy"年"mm"月"dd"日"', EndDate);
qrSUM100.Preview;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -