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

📄 unit_reportdaystatistic.pas

📁 管理软件/可以用于有会员积分管理的场所,支持会员卡管理
💻 PAS
字号:
unit Unit_ReportDayStatistic;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, QRCtrls, QuickRpt, ExtCtrls, DB, DBTables;

type
  Tfrm_ReportDayStatistic = class(TForm)
    QuickRep1: TQuickRep;
    PageHeaderBand1: TQRBand;
    qrlbl_title: TQRLabel;
    QRShape1: TQRShape;
    QRShape2: TQRShape;
    QRLabel2: TQRLabel;
    QRLabel3: TQRLabel;
    QRLabel4: TQRLabel;
    QRLabel5: TQRLabel;
    QRShape3: TQRShape;
    QRShape4: TQRShape;
    QRShape5: TQRShape;
    QRLabel6: TQRLabel;
    DetailBand1: TQRBand;
    QRShape6: TQRShape;
    QRShape7: TQRShape;
    QRShape8: TQRShape;
    QRShape9: TQRShape;
    QRShape10: TQRShape;
    CusNo: TQRDBText;
    CusName: TQRDBText;
    CusSex: TQRDBText;
    CusMobile: TQRDBText;
    CusAddress: TQRDBText;
    PageFooterBand1: TQRBand;
    QRSysData1: TQRSysData;
    QRLabel20: TQRLabel;
    QRLabel21: TQRLabel;
    qry_main: TQuery;
    QRLabel1: TQRLabel;
    qrlbl_day: TQRLabel;
    QRShape11: TQRShape;
    QRShape12: TQRShape;
    QRLabel7: TQRLabel;
    QRDBText1: TQRDBText;
    QRShape13: TQRShape;
    QRLabel8: TQRLabel;
    QRShape14: TQRShape;
    QRDBText2: TQRDBText;
    QRLabel9: TQRLabel;
    procedure QuickRep1Preview(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
    procedure ref;
  end;

var
  frm_ReportDayStatistic: Tfrm_ReportDayStatistic;

implementation
  uses unit_daystatistic, preview;
{$R *.dfm}

procedure Tfrm_reportDayStatistic.ref ;
begin
  qrlbl_day.Caption := DateToStr(frm_daystatistic.dtp_dayStatistic.Date);
  qry_main.ParamByName('temp_date').AsString := DateToStr(frm_daystatistic.dtp_dayStatistic.Date);
  qry_main.Open ;
end;

procedure Tfrm_ReportDayStatistic.QuickRep1Preview(Sender: TObject);
begin
  myprevform:=Tmyprevform.Create(self);
  myprevform.QRPreview.QRPrinter := quickrep1.QRPrinter;
  myprevform.show;
end;

procedure Tfrm_ReportDayStatistic.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  qry_main.Close;
  action:=cafree;
  frm_reportDayStatistic:=nil;
end;

end.

⌨️ 快捷键说明

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