?? jm_jymxdy.pas
字號(hào):
{*******************************************************}
{ }
{ 前臺(tái)營業(yè)員營業(yè)情況匯總打印 }
{ }
{ 中軟金馬公司版權(quán)所有。2002.12前 }
{ }
{ 編制:中軟金馬郵資票品項(xiàng)目開發(fā)組 }
{ }
{ }
{*******************************************************}
(*
本模塊在地市集郵票管理,地市集郵品管理,地市市場購入票里面調(diào)用。
*)
unit JM_JYMXDY;
interface
uses Windows, SysUtils, Messages, Classes, Graphics, Controls,
StdCtrls, ExtCtrls, Forms, Quickrpt, QRCtrls, Dialogs, Db, DBTables;
const
c_totoline = 28;
type
Tfrm_jymxdy = class(TQuickRep)
PageHeaderBand1: TQRBand;
QRLabel1: TQRLabel;
QRLabel6: TQRLabel;
QRLabel25: TQRLabel;
PageFooterBand1: TQRBand;
QRLabel30: TQRLabel;
ColumnHeaderBand1: TQRBand;
QRLabel19: TQRLabel;
QRLabel20: TQRLabel;
QRLabel3: TQRLabel;
DetailBand1: TQRBand;
QRShape1: TQRShape;
QRShape2: TQRShape;
QRShape4: TQRShape;
QRShape5: TQRShape;
QRShape6: TQRShape;
QRShape8: TQRShape;
QRShape12: TQRShape;
QRShape15: TQRShape;
QRShape17: TQRShape;
QRShape21: TQRShape;
QRShape24: TQRShape;
QRShape25: TQRShape;
QRShape26: TQRShape;
QRShape27: TQRShape;
QRLabel2: TQRLabel;
QRLabel28: TQRLabel;
QRLabel29: TQRLabel;
QRSysData1: TQRSysData;
QRLabel4: TQRLabel;
QRLabel5: TQRLabel;
QRLabel7: TQRLabel;
QRLabel8: TQRLabel;
QRShape3: TQRShape;
QRShape7: TQRShape;
QRShape9: TQRShape;
procedure QuickRepNeedData(Sender: TObject; var MoreData: Boolean);
procedure QuickRepBeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
procedure QuickRepStartPage(Sender: TCustomQuickRep);
private
public
nheight: integer;
DetailLines: Integer;
end;
var
frm_jymxdy: Tfrm_jymxdy;
implementation
uses JM_JYMXCX;
{$R *.DFM}
procedure Tfrm_jymxdy.QuickRepNeedData(Sender: TObject;
var MoreData: Boolean);
begin
if DetailLines = c_totoline + 1then
DetailLines := 1;
if DetailLines <= c_totoline then
begin
Inc(DetailLines);
MoreData := True;
end;
if not Frm_JYMXCX.RQry_pnt.Eof then
begin
QRLabel7.Caption := Frm_JYMXCX.RQry_pnt.fields[3].asstring;
QRLabel8.Caption := formatfloat('#,##0.00##', Frm_JYMXCX.RQry_pnt.fields[4].asFloat / 100);
DetailBand1.Height := 30;
end;
if MoreData and (Frm_JYMXCX.RQry_pnt.Eof) then
begin
QRLabel5.Caption := '';
QRLabel7.Caption := '';
QRLabel8.Caption := '';
if DetailLines = c_totoline + 1 then
MoreData := False;
end;
if (not Frm_JYMXCX.RQry_pnt.Eof) then
begin
MoreData := not Frm_JYMXCX.RQry_pnt.eof;
Frm_JYMXCX.RQry_pnt.Next;
end;
end;
procedure Tfrm_jymxdy.QuickRepBeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
begin
Frm_JYMXCX.RQry_pnt.First;
end;
procedure Tfrm_jymxdy.QuickRepStartPage(Sender: TCustomQuickRep);
var
i: integer;
begin
{ for I := 0 to PageHeaderBand1.ControlCount - 1 do //設(shè)置頁頭的套打
begin
if PageHeaderBand1.Controls[I] is TQRLabel then
TQRLabel(PageHeaderBand1.Controls[I]).Enabled := True;
if PageHeaderBand1.Controls[I] is TQRShape then
TQRShape(PageHeaderBand1.Controls[i]).Enabled := True;
end;
for I := 0 to ColumnHeaderBand1.ControlCount - 1 do //設(shè)置表頭的套打
begin
if ColumnHeaderBand1.Controls[I] is TQRShape then
TQRShape(ColumnHeaderBand1.Controls[I]).Enabled := True;
if ColumnHeaderBand1.Controls[I] is TQRLabel then
TQRLabel(ColumnHeaderBand1.Controls[I]).Enabled := True;
end;
for I := 0 to DetailBand1.ControlCount - 1 do //設(shè)置表內(nèi)容的套打
begin
if DetailBand1.Controls[I] is TQRShape then
TQRShape(DetailBand1.Controls[I]).Enabled := True;
end;
for i := 0 to PageFooterBand1.ControlCount - 1 do //設(shè)置頁尾的套打
begin
if PageFooterBand1.Controls[I] is TQRLabel then
TQRLabel(PageFooterBand1.Controls[I]).Enabled := True;
if PageFooterBand1.Controls[I] is TQRShape then
TQRShape(PageFooterBand1.Controls[I]).Enabled := True;
if PageFooterBand1.Controls[i] is TQRRichText then
begin
if IntToStr(Printer.PageNumber) = QRLabel29.caption then
TQRRichText(PageFooterBand1.Controls[I]).Enabled := True
else
TQRRichText(PageFooterBand1.Controls[I]).Enabled := False;
end;
end;
}
end;
end.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -