shoushirptfrm.pas

来自「结合读卡器使用。程序中有按迟到时间长短自动开罚单功能」· PAS 代码 · 共 75 行

PAS
75
字号
unit ShoushiRptfrm;

interface

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

type
  TShoushiRptForm = class(TForm)
    QuickRep1: TQuickRep;
    DetailBand1: TQRBand;
    TitleBand1: TQRBand;
    QRLabel30: TQRLabel;
    QRDBText2: TQRDBText;
    QRLabel1: TQRLabel;
    QRShape4: TQRShape;
    QRShape3: TQRShape;
    QRShape5: TQRShape;
    QRShape6: TQRShape;
    QRShape7: TQRShape;
    QRShape8: TQRShape;
    QRShape9: TQRShape;
    QRLabel2: TQRLabel;
    QRLabel3: TQRLabel;
    QRLabel4: TQRLabel;
    QRLabel5: TQRLabel;
    QRLabel6: TQRLabel;
    QRDBText1: TQRDBText;
    QRDBText3: TQRDBText;
    QRDBText4: TQRDBText;
    QRDBText5: TQRDBText;
    QRDBText6: TQRDBText;
    QRDBText7: TQRDBText;
    QRShape1: TQRShape;
    QRShape2: TQRShape;
    QRShape10: TQRShape;
    QRShape11: TQRShape;
    QRShape12: TQRShape;
    QRShape13: TQRShape;
    QRShape14: TQRShape;
    QRShape15: TQRShape;
    QRShape16: TQRShape;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  ShoushiRptForm: TShoushiRptForm;
  function ShoushiRpt(ADate:String):Boolean;

implementation
uses Datamodule1;

{$R *.dfm}
function ShoushiRpt(ADate:String):Boolean;
begin
   ShoushiRptForm:=TShoushiRptForm.Create(Application);
   with DM.qryShoushi do
   begin
      Close;
      SQL.Clear;
      SQL.Add('Select * from Shoushilv');
      SQL.Add('where S_Date=:vardate');
      paramByName('varDate').AsString :=ADate;
      Open;
   end;
      ShoushiRptForm.QuickRep1.Preview;
      SHoushiRptForm.Free;
end;

end.

⌨️ 快捷键说明

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