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

📄 unit_reportreceipt.pas

📁 用delphi开发的美容院管理系统
💻 PAS
字号:
unit Unit_ReportReceipt;

interface

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

type
  Tfrm_ReportReceipt = class(TForm)
    QuickRep1: TQuickRep;
    qry_name: TQuery;
    PageHeaderBand1: TQRBand;
    DetailBand1: TQRBand;
    ColumnHeaderBand1: TQRBand;
    SummaryBand1: TQRBand;
    qry_main: TQuery;
    QRShape1: TQRShape;
    QRLabel3: TQRLabel;
    QRLabel2: TQRLabel;
    QRLabel4: TQRLabel;
    QRShape2: TQRShape;
    QRDBText7: TQRDBText;
    QRDBText2: TQRDBText;
    QRDBText8: TQRDBText;
    QRShape3: TQRShape;
    QRLabel5: TQRLabel;
    QRDBText3: TQRDBText;
    QRDBText4: TQRDBText;
    QRLabel6: TQRLabel;
    QRLabel9: TQRLabel;
    QRSysData1: TQRSysData;
    QRLabel11: TQRLabel;
    QRDBText9: TQRDBText;
    qrlbl_welcome: TQRLabel;
    QRLabel8: TQRLabel;
    QRDBText5: TQRDBText;
    QRShape4: TQRShape;
    QRShape5: TQRShape;
    QRShape6: TQRShape;
    QRShape7: TQRShape;
    qrlbl_title: TQRLabel;
    QRShape8: TQRShape;
    QRShape9: TQRShape;
    QRShape10: TQRShape;
    QRShape11: TQRShape;
    QRLabel7: TQRLabel;
    QRDBText6: TQRDBText;
    procedure QuickRep1Preview(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
    procedure ref;
  end;

var
  frm_ReportReceipt: Tfrm_ReportReceipt;

implementation

uses preview,unit_frontcheck;

{$R *.dfm}

procedure Tfrm_ReportReceipt.ref ;
begin
  qry_name.Open ;
  qrlbl_title.Caption := qry_name.fieldbyname('unitname').AsString +' -- '+ qrlbl_title.Caption;
  qrlbl_welcome.Caption := qry_name.fieldbyname('unitname').AsString +' -- '+ qrlbl_welcome.Caption;
  qry_main.ParamByName('costno').AsString := frm_frontcheck.sg_CostList.Cells[0,frm_frontcheck.sg_CostList.row];
  qry_main.Open;
end;

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

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

end.

⌨️ 快捷键说明

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