liu_lan_xing_jue.~pas

来自「采购管理系统:delphi+sql实现了企业采购自动化作业流程」· ~PAS 代码 · 共 53 行

~PAS
53
字号
unit liu_lan_xing_jue;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, DBTables, Grids, DBGrids, Buttons;

type
  Tliu_lan_xing_ju = class(TForm)
    SpeedButton1: TSpeedButton;
    DBGrid1: TDBGrid;
    DataSource1: TDataSource;
    Database1: TDatabase;
    DBGrid2: TDBGrid;
    Table1: TTable;
    Table2: TTable;
    DataSource2: TDataSource;
    SpeedButton2: TSpeedButton;
    procedure SpeedButton1Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure SpeedButton2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  liu_lan_xing_ju: Tliu_lan_xing_ju;

implementation

{$R *.dfm}

procedure Tliu_lan_xing_ju.SpeedButton1Click(Sender: TObject);
begin
close;
end;

procedure Tliu_lan_xing_ju.FormClose(Sender: TObject; var Action: TCloseAction);
begin
action:=cafree;
end;

procedure Tliu_lan_xing_ju.SpeedButton2Click(Sender: TObject);
var xx:string;
begin
 table1.Active:=false;
 table1.IndexFieldNames:='xing_jia_no';
 table1.Active:=true;
 if not table1.FindKey([xx]) then
 showmessage('⊿т

⌨️ 快捷键说明

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