📄 unit19.pas
字号:
unit Unit19;
interface
uses Windows, SysUtils, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, QuickRpt, QRCtrls, DB, DBTables;
type
TQuickReport19 = class(TQuickRep)
PageHeaderBand1: TQRBand;
PageFooterBand1: TQRBand;
QRLabel1: TQRLabel;
QRLabel2: TQRLabel;
Table1: TTable;
DetailBand1: TQRBand;
QRShape1: TQRShape;
QRLabel3: TQRLabel;
QRExpr2: TQRExpr;
QRShape2: TQRShape;
QRShape3: TQRShape;
QRLabel4: TQRLabel;
QRShape4: TQRShape;
QRExpr3: TQRExpr;
QRShape5: TQRShape;
QRLabel5: TQRLabel;
QRShape6: TQRShape;
QRExpr4: TQRExpr;
QRShape7: TQRShape;
QRLabel6: TQRLabel;
QRShape8: TQRShape;
QRExpr5: TQRExpr;
QRShape9: TQRShape;
QRLabel7: TQRLabel;
QRShape10: TQRShape;
QRExpr6: TQRExpr;
QRShape11: TQRShape;
QRShape12: TQRShape;
QRShape13: TQRShape;
QRShape14: TQRShape;
QRShape15: TQRShape;
QRShape16: TQRShape;
QRShape17: TQRShape;
QRShape18: TQRShape;
QRShape19: TQRShape;
QRShape20: TQRShape;
QRLabel8: TQRLabel;
QRExpr7: TQRExpr;
QRLabel9: TQRLabel;
QRExpr8: TQRExpr;
QRLabel10: TQRLabel;
QRExpr9: TQRExpr;
QRLabel11: TQRLabel;
QRExpr10: TQRExpr;
QRLabel12: TQRLabel;
QRExpr11: TQRExpr;
QRShape21: TQRShape;
QRShape22: TQRShape;
QRShape23: TQRShape;
QRShape24: TQRShape;
QRShape25: TQRShape;
QRShape26: TQRShape;
QRShape27: TQRShape;
QRShape28: TQRShape;
QRShape29: TQRShape;
QRShape30: TQRShape;
QRLabel13: TQRLabel;
QRExpr12: TQRExpr;
QRLabel14: TQRLabel;
QRExpr13: TQRExpr;
QRLabel15: TQRLabel;
QRExpr14: TQRExpr;
QRLabel16: TQRLabel;
QRExpr15: TQRExpr;
QRLabel17: TQRLabel;
QRExpr16: TQRExpr;
QRShape31: TQRShape;
QRShape32: TQRShape;
QRShape33: TQRShape;
QRShape34: TQRShape;
QRShape35: TQRShape;
QRShape36: TQRShape;
QRShape37: TQRShape;
QRShape38: TQRShape;
QRShape39: TQRShape;
QRShape40: TQRShape;
QRLabel18: TQRLabel;
QRExpr17: TQRExpr;
QRLabel19: TQRLabel;
QRExpr18: TQRExpr;
QRLabel20: TQRLabel;
QRExpr19: TQRExpr;
QRLabel21: TQRLabel;
QRExpr20: TQRExpr;
QRLabel22: TQRLabel;
QRExpr21: TQRExpr;
QRShape41: TQRShape;
QRShape42: TQRShape;
QRShape43: TQRShape;
QRShape44: TQRShape;
QRShape45: TQRShape;
QRShape46: TQRShape;
QRShape47: TQRShape;
QRShape48: TQRShape;
QRShape49: TQRShape;
QRShape50: TQRShape;
QRLabel23: TQRLabel;
QRExpr22: TQRExpr;
QRLabel24: TQRLabel;
QRExpr23: TQRExpr;
QRLabel25: TQRLabel;
QRExpr24: TQRExpr;
QRLabel26: TQRLabel;
QRExpr25: TQRExpr;
QRLabel27: TQRLabel;
QRExpr26: TQRExpr;
QRShape51: TQRShape;
QRShape52: TQRShape;
QRShape53: TQRShape;
QRShape54: TQRShape;
QRShape55: TQRShape;
QRShape56: TQRShape;
QRShape57: TQRShape;
QRShape58: TQRShape;
QRShape59: TQRShape;
QRShape60: TQRShape;
QRLabel28: TQRLabel;
QRExpr27: TQRExpr;
QRLabel29: TQRLabel;
QRExpr28: TQRExpr;
QRLabel30: TQRLabel;
QRExpr29: TQRExpr;
QRLabel31: TQRLabel;
QRExpr30: TQRExpr;
QRLabel32: TQRLabel;
QRExpr31: TQRExpr;
QRShape61: TQRShape;
QRShape62: TQRShape;
QRShape63: TQRShape;
QRShape64: TQRShape;
QRShape65: TQRShape;
QRShape66: TQRShape;
QRShape67: TQRShape;
QRShape68: TQRShape;
QRShape69: TQRShape;
QRShape70: TQRShape;
QRLabel33: TQRLabel;
QRExpr32: TQRExpr;
QRLabel34: TQRLabel;
QRExpr33: TQRExpr;
QRLabel35: TQRLabel;
QRExpr34: TQRExpr;
QRLabel36: TQRLabel;
QRExpr35: TQRExpr;
QRLabel37: TQRLabel;
QRExpr36: TQRExpr;
QRShape71: TQRShape;
QRShape72: TQRShape;
QRShape73: TQRShape;
QRShape74: TQRShape;
QRShape75: TQRShape;
QRShape76: TQRShape;
QRShape77: TQRShape;
QRShape78: TQRShape;
QRShape79: TQRShape;
QRShape80: TQRShape;
QRLabel38: TQRLabel;
QRExpr37: TQRExpr;
QRLabel39: TQRLabel;
QRExpr38: TQRExpr;
QRLabel40: TQRLabel;
QRExpr39: TQRExpr;
QRLabel41: TQRLabel;
QRExpr40: TQRExpr;
QRLabel42: TQRLabel;
QRExpr41: TQRExpr;
QRShape81: TQRShape;
QRShape82: TQRShape;
QRShape83: TQRShape;
QRShape84: TQRShape;
QRShape85: TQRShape;
QRShape86: TQRShape;
QRShape87: TQRShape;
QRShape88: TQRShape;
QRShape89: TQRShape;
QRShape90: TQRShape;
QRLabel43: TQRLabel;
QRExpr42: TQRExpr;
QRLabel44: TQRLabel;
QRExpr43: TQRExpr;
QRLabel45: TQRLabel;
QRExpr44: TQRExpr;
QRLabel46: TQRLabel;
QRExpr45: TQRExpr;
QRExpr46: TQRExpr;
QRShape91: TQRShape;
QRShape92: TQRShape;
QRShape93: TQRShape;
QRShape94: TQRShape;
QRShape95: TQRShape;
QRShape96: TQRShape;
QRShape97: TQRShape;
QRShape98: TQRShape;
QRShape99: TQRShape;
QRShape100: TQRShape;
QRLabel48: TQRLabel;
QRExpr47: TQRExpr;
QRLabel49: TQRLabel;
QRExpr48: TQRExpr;
QRLabel50: TQRLabel;
QRExpr49: TQRExpr;
QRLabel51: TQRLabel;
QRLabel52: TQRLabel;
QRExpr50: TQRExpr;
QRLabel53: TQRLabel;
QRExpr51: TQRExpr;
QRLabel55: TQRLabel;
QRLabel54: TQRLabel;
QRLabel47: TQRLabel;
Table2: TTable;
DataSource1: TDataSource;
procedure QRLabel1Print(sender: TObject; var Value: String);
procedure QuickRepBeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
//procedure QuickRepPreview(Sender: TObject);
private
public
end;
var
QuickReport19: TQuickReport19;
implementation
uses Unit18;
{$R *.DFM}
procedure TQuickReport19.QRLabel1Print(sender: TObject; var Value: String);
var
ddate:tdate;
wyear,wmonth,wday:word;
begin
ddate:=date();
decodedate(ddate,wyear,wmonth,wday);
qrlabel1.Caption:=inttostr(wyear)+'年'+inttostr(wmonth)+'月';
end;
procedure TQuickReport19.QuickRepBeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
var
ddate:tdate;
wyear,wmonth,wday:word;
st1:string;
begin
quickreport19.Printer.PageCount:=1;
quickreport19.PrinterSettings.FirstPage:=1;
quickreport19.PrinterSettings.LastPage:=1;
ddate:=date();
decodedate(ddate,wyear,wmonth,wday);
qrlabel1.Caption:=inttostr(wyear)+'年'+inttostr(wmonth)+'月';
qrlabel47.Caption:=form18.edit2.text;
//qrexpr1.Expression:=table1.fieldbyname('队别').AsString;
qrexpr2.Expression:='0';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -