searchsupplierid.~pas

来自「利用delhpi 开发的一个关于零售业进销管理系统」· ~PAS 代码 · 共 45 行

~PAS
45
字号
unit SearchSupplierID;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  BaseSearch, Db, DBTables, StdCtrls, Buttons, Grids, DBGrids;

type
  TfmSearchSupplierID = class(TfmBaseSearch)
    qyTempSupplierID: TStringField;
    qyTempSupplierAttribName: TStringField;
  private
    { Private declarations }
  public
    { Public declarations }
    procedure OpenDB; override;
  end;
  function MySearchSupplierID(SupplierID: String): String;  //琩高ㄑ莱坝絪腹

var
  fmSearchSupplierID: TfmSearchSupplierID;

implementation

{$R *.DFM}

{ TfmBaseSearchTemplete }

function MySearchSupplierID(SupplierID: String): String;    //琩高ㄑ莱坝絪腹
begin
  try
    fmSearchSupplierID := TfmSearchSupplierID.Create(Application);
    if fmSearchSupplierID.ShowModal = mrOK then
      Result := fmSearchSupplierID.qyTemp.FieldByName('SupplierID').AsString
    else
      Result := '';
  finally
    fmSearchSupplierID.Free;
  end;
end;

procedure TfmSearchSupplierID.OpenDB;
begin
  OrderBySQL := 'SupplierID';           //箇砞

⌨️ 快捷键说明

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