⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 adduserfrm.pas

📁 考勤管理是企业内部管理的重要环节和基础
💻 PAS
字号:
unit AddUserFrm;

interface

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

resourcestring
  sUseName=  '用户名栏不能为空!';

type
  TAddUserForm = class(TSDIForm)
    Label1: TLabel;
    Label2: TLabel;
    edUserID: TEdit;
    edPassWord: TEdit;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    procedure BitBtn1Enter(Sender: TObject);
  private
    function GetUserName:String;
    function GetPassWord: String;
    { Private declarations }
  public
    property UserName: String read GetUserName;
    property PassWord: String read GetPassWord;
    { Public declarations }
  end;

var
  AddUserForm: TAddUserForm;

implementation

uses dialog;

{$R *.DFM}

function TAddUserForm.GetUserName: String;
Begin
  Result := Trim(edUserID.Text);
End;

function TAddUserForm.GetPassWord: String;
Begin
  Result := Trim(edPassWord.Text);
End;

procedure TAddUserForm.BitBtn1Enter(Sender: TObject);
begin
  inherited;
  if trim(edUserID.Text)='' then begin
    Messagedlg(Pchar(sUseName),mtError,[mbOK],0);
    EdUserID.SetFocus;
  end;
end;

end.

⌨️ 快捷键说明

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