📄 hygl_report.pas
字号:
unit HYGL_report;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, QRCtrls, QuickRpt, ExtCtrls, StdCtrls;
type
TFrmHYGL_Report = class(TForm)
QuickRep1: TQuickRep;
PageHeaderBand1: TQRBand;
QRLabel13: TQRLabel;
DetailBand1: TQRBand;
QRDBText2: TQRDBText;
QRDBText3: TQRDBText;
QRDBText4: TQRDBText;
QRDBText5: TQRDBText;
QRDBText6: TQRDBText;
QRDBText7: TQRDBText;
QRDBText8: TQRDBText;
Lab_XH: TQRLabel;
QRDBText1: TQRDBText;
QRDBText9: TQRDBText;
QRDBText10: TQRDBText;
QRShape12: TQRShape;
QRShape13: TQRShape;
QRShape14: TQRShape;
QRShape15: TQRShape;
QRShape16: TQRShape;
QRShape17: TQRShape;
QRShape18: TQRShape;
QRShape19: TQRShape;
QRShape20: TQRShape;
QRShape21: TQRShape;
QRShape22: TQRShape;
QRShape23: TQRShape;
QRShape24: TQRShape;
ChildBand1: TQRChildBand;
QRShape1: TQRShape;
QRLabel1: TQRLabel;
QRLabel2: TQRLabel;
QRLabel3: TQRLabel;
QRLabel4: TQRLabel;
QRLabel5: TQRLabel;
QRLabel6: TQRLabel;
QRLabel7: TQRLabel;
QRLabel8: TQRLabel;
QRLabel9: TQRLabel;
QRLabel10: TQRLabel;
QRLabel11: TQRLabel;
QRShape2: TQRShape;
QRShape3: TQRShape;
QRShape4: TQRShape;
QRShape5: TQRShape;
QRShape6: TQRShape;
QRShape7: TQRShape;
QRShape8: TQRShape;
QRShape9: TQRShape;
QRShape10: TQRShape;
QRShape11: TQRShape;
PageFooterBand1: TQRBand;
QRShape25: TQRShape;
Button1: TButton;
procedure DetailBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
procedure Button1Click(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure QuickRep1BeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmHYGL_Report: TFrmHYGL_Report;
implementation
uses HYGL_DModule;
{$R *.dfm}
procedure TFrmHYGL_Report.FormShow(Sender: TObject);
var
i,n:integer;
begin
with dmd do begin
if not Tbl_ZGDB.active then Tbl_ZGDB.open;
end;
with dmd.Tbl_ZGDB do begin
last;
n:=recordcount;
if (n mod 23)<>0 then
for i:=1 to (23-(n mod 23)) do begin
append;
FieldValues['hyzh'] :='zzzz';
post;
end;
update;
end;
end;
procedure TFrmHYGL_Report.DetailBand1BeforePrint(Sender: TQRCustomBand;
var PrintBand: Boolean);
begin
lab_xh.Caption:=inttostr(strtoint(lab_xh.Caption)+1)
end;
procedure TFrmHYGL_Report.Button1Click(Sender: TObject);
begin
QuickRep1.Preview;
end;
procedure TFrmHYGL_Report.QuickRep1BeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
begin
lab_xh.Caption:='0';
end;
procedure TFrmHYGL_Report.FormClose(Sender: TObject;
var Action: TCloseAction);
var
s1:string;
begin
S1:='delete from 职工代表 where trim(hyzh)="zzzz"';
with dmd.qry_temp do begin
close;
SQL.CLEAR;
sql.add(s1);
try
open;
except
execsql;
end;
end; {with}
dmd.tbl_zgdb.close;
dmd.tbl_zgdb.open;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -