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

📄 unit2.pas

📁 本系统为学生管理系统,可实现选课和退选
💻 PAS
字号:
unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, DBTables, StdCtrls, jpeg, ExtCtrls;

type
  TForm2 = class(TForm)
    RadioButton1: TRadioButton;
    RadioButton2: TRadioButton;
    Edit1: TEdit;
    Button1: TButton;
    Button2: TButton;
    Image2: TImage;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }

  end;

var
  Form2: TForm2;


implementation

uses Unit3;

{$R *.dfm}

procedure TForm2.Button1Click(Sender: TObject);
begin

if radiobutton1.Checked  then
    if edit1.Text='123' then
     begin
      mainform.show;
      form2.Hide;
      mainform.ToolButton17.Enabled:=false;
      mainform.N5.enabled:=false;
     end
    else
    showmessage('您没有权限登入!')
  else if radiobutton2.Checked  then
   begin
   if edit1.text='456' then
      begin
         mainform.Show;
         mainform.P2.Enabled:=false;
         mainform.ToolButton18.Enabled:=false;
     end
    else
    showmessage('密码错误!您没有这个权限')
   end;
end;

procedure TForm2.Button2Click(Sender: TObject);
begin
close;
mainform.Close;
end;

end.

⌨️ 快捷键说明

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