?? a4pagepas.pas
字號:
unit a4pagepas;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, QuickRpt, QRCtrls, ExtCtrls, StdCtrls;
type
Ta4page = class(TForm)
QuickRep1: TQuickRep;
Button1: TButton;
QRSubDetail1: TQRSubDetail;
QRLabel1: TQRLabel;
QRImage1: TQRImage;
QRImage2: TQRImage;
QRImage3: TQRImage;
QRImage4: TQRImage;
procedure Button1Click(Sender: TObject);
procedure QuickRep1AfterPrint(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
a4page: Ta4page;
implementation
uses qtdj;
{$R *.dfm}
procedure Ta4page.Button1Click(Sender: TObject);
begin
quickrep1.Preview;
end;
procedure Ta4page.QuickRep1AfterPrint(Sender: TObject);
begin
if qrimage4.Picture.Bitmap<>nil then
begin
qtform.zjzl2.Prior;
qtform.zjzl2.Prior;
qtform.zjzl2.Prior;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
qtform.zjzl2.Next;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
qtform.zjzl2.Next;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
qtform.zjzl2.Next;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
end else
if qrimage3.Picture.Bitmap<>nil then
begin
qtform.zjzl2.Prior;
qtform.zjzl2.Prior;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
qtform.zjzl2.Next;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
qtform.zjzl2.Next;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
end else
if qrimage2.Picture.Bitmap<>nil then
begin
qtform.zjzl2.Prior;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
qtform.zjzl2.Next;
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
end else begin
qtform.dy.Parameters.ParamByName('gid').Value:=qtform.zjzl2guest_id.Value;
qtform.dy.Execute;
end;
qtform.zjzl3.Active:=false;
qtform.zjzl3.Active:=true;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -