📄 unit_reportemployee.pas
字号:
unit Unit_ReportEmployee;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, QuickRpt, QRCtrls, DB, DBTables;
type
Tfrm_reportemployee = class(TForm)
QuickRep1: TQuickRep;
DetailBand1: TQRBand;
PageFooterBand1: TQRBand;
PageHeaderBand1: TQRBand;
QRLabel20: TQRLabel;
QRSysData1: TQRSysData;
QRLabel21: TQRLabel;
qrlbl_title: TQRLabel;
QRShape1: TQRShape;
QRShape6: TQRShape;
QRShape2: TQRShape;
QRShape3: TQRShape;
QRShape4: TQRShape;
QRShape5: TQRShape;
QRShape11: TQRShape;
QRShape12: TQRShape;
QRShape13: TQRShape;
QRShape14: TQRShape;
QRLabel2: TQRLabel;
QRLabel3: TQRLabel;
QRLabel5: TQRLabel;
QRLabel6: TQRLabel;
QRLabel1: TQRLabel;
QRDBText1: TQRDBText;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRDBText4: TQRDBText;
QRDBText5: TQRDBText;
qry_name: TQuery;
qry_main: TQuery;
procedure QuickRep1Preview(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
procedure ref;
end;
var
frm_reportemployee: Tfrm_reportemployee;
implementation
uses preview;
{$R *.dfm}
procedure Tfrm_reportemployee.ref ;
begin
qry_name.Open ;
qrlbl_title.Caption := qry_name.fieldbyname('unitname').AsString +'---'+qrlbl_title.Caption;
qry_main.Open ;
end;
procedure Tfrm_reportemployee.QuickRep1Preview(Sender: TObject);
begin
myprevform:=Tmyprevform.Create(self);
myprevform.QRPreview.QRPrinter := quickrep1.QRPrinter;
myprevform.show;
end;
procedure Tfrm_reportemployee.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
qry_name.Close;
qry_main.Close;
action:=cafree;
frm_reportemployee:=nil;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -