yjzldwfrm.pas

来自「本人编写的有关军队营房工作的管理系统」· PAS 代码 · 共 52 行

PAS
52
字号
unit yjzldwfrm;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, StdCtrls, ExtCtrls,db;

type
  Tyjzldw = class(TForm)
    Panel1: TPanel;
    Label1: TLabel;
    Edit1: TEdit;
    Panel2: TPanel;
    SpeedButton1: TSpeedButton;
    SpeedButton2: TSpeedButton;
    procedure SpeedButton2Click(Sender: TObject);
    procedure SpeedButton1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  yjzldw: Tyjzldw;

implementation

uses datafrm,yjzlfrm;
{$R *.dfm}

procedure Tyjzldw.SpeedButton2Click(Sender: TObject);
begin
close;
end;

procedure Tyjzldw.SpeedButton1Click(Sender: TObject);
begin
if trim(yjzldw.Edit1.Text)<>'' then
  begin
  if not yfgldata.yjzl.Locate('营具名称',yjzldw.Edit1.Text,[loCaseInsensitive]) then
    messagebox(yjzldw.handle,'系统不存在此营具种类。','营房工作管理系统',16)
  else
    close;
  end
else
  messagebox(yjzldw.handle,'营具种类不能为空值。','营房工作管理系统',16);
end;

end.

⌨️ 快捷键说明

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