⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jm_jymxdy.pas

📁 省级集邮品管理ERP
💻 PAS
字号:
{*******************************************************}
{                                                       }
{               前台营业员营业情况汇总打印              }
{                                                       }
{            中软金马公司版权所有。2002.12前            }
{                                                       }
{            编制:中软金马邮资票品项目开发组           }
{                                                       }
{                                                       }
{*******************************************************}
(*
本模块在地市集邮票管理,地市集邮品管理,地市市场购入票里面调用。

*)
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
    QRLabel5.Caption := Frm_JYMXCX.RQry_pnt.fields[2].asstring;
    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 //设置页头的套打
  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 //设置表头的套打
  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 //设置表内容的套打
  begin
    if DetailBand1.Controls[I] is TQRShape then
      TQRShape(DetailBand1.Controls[I]).Enabled := True;
  end;


  for i := 0 to PageFooterBand1.ControlCount - 1 do //设置页尾的套打
  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.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -