You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
unit u_sys_leave;
|
|
|
|
interface
|
|
|
|
uses
|
|
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|
Dialogs, BusinessSkinForm, StdCtrls, bsSkinCtrls;
|
|
|
|
type
|
|
Tfrm_sys_leave = class(TForm)
|
|
bsBusinessSkinForm1: TbsBusinessSkinForm;
|
|
Label1: TLabel;
|
|
Edit1: TEdit;
|
|
bsSkinButton2: TbsSkinButton;
|
|
procedure bsSkinButton2Click(Sender: TObject);
|
|
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
|
|
procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
frm_sys_leave: Tfrm_sys_leave;
|
|
|
|
implementation
|
|
|
|
uses u_data_share;
|
|
|
|
{$R *.dfm}
|
|
|
|
procedure Tfrm_sys_leave.bsSkinButton2Click(Sender: TObject);
|
|
begin
|
|
if frm_data_share.t_load_employee.FieldByName('密码').asstring=edit1.text then
|
|
close
|
|
else
|
|
showmessage('登陆密码错误!!');
|
|
end;
|
|
|
|
procedure Tfrm_sys_leave.Edit1KeyPress(Sender: TObject; var Key: Char);
|
|
begin
|
|
if key=#13 then
|
|
begin
|
|
key:=#0;
|
|
frm_sys_leave.bsSkinButton2Click(Sender);
|
|
end;
|
|
end;
|
|
|
|
procedure Tfrm_sys_leave.FormCloseQuery(Sender: TObject;
|
|
var CanClose: Boolean);
|
|
begin
|
|
if frm_data_share.t_load_employee.FieldByName('密码').asstring=edit1.text then
|
|
CanClose:=true
|
|
else begin
|
|
CanClose:=false;
|
|
showmessage('登陆密码错误!!');
|
|
end;
|
|
|
|
end;
|
|
|
|
end.
|