ba230report.pas

来自「零售行业进销存源码.delphi7 BDE sql server.功能全面,运行」· PAS 代码 · 共 47 行

PAS
47
字号
unit BA230Report;

interface

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

type
  TqrBA230 = class(TQuickReport)
    qyReportSupplierTypeID: TStringField;
    qyReportSupplierTypeName: TStringField;
    QRLabel6: TQRLabel;
    QRLabel7: TQRLabel;
    QRDBText1: TQRDBText;
    QRDBText2: TQRDBText;
    procedure qyReportBeforeOpen(DataSet: TDataSet);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  qrBA230: TqrBA230;

implementation

uses DataModule, Main;

{$R *.dfm}

procedure TqrBA230.qyReportBeforeOpen(DataSet: TDataSet);
begin
  inherited;
  with qyReport do
  begin
    ParamByName('CompanyID').AsString := sCompanyID;
    ParamByName('BeginSupplierTypeID').AsString :=
                DM.tbInput.FieldByName('BeginSupplierTypeID').AsString;
    ParamByName('EndSupplierTypeID').AsString :=
                DM.tbInput.FieldByName('EndSupplierTypeID').AsString;
  end;
end;

end.

⌨️ 快捷键说明

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