Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Unit21.pas
Package: 毕业设计(带论文)—试卷生成系统.rar [view]
Upload User: szyozho
Upload Date: 2013-04-13
Package Size: 3688k
Code Size: 2k
Category:
Education soft system
Development Platform:
Delphi
- unit Unit21;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, Buttons, ExtCtrls, jpeg, DB, DBTables;
- type
- Trightform = class(TForm)
- Panel1: TPanel;
- Image1: TImage;
- CheckBox1: TCheckBox;
- CheckBox2: TCheckBox;
- BitBtn1: TBitBtn;
- BitBtn2: TBitBtn;
- CheckBox3: TCheckBox;
- Bevel1: TBevel;
- CheckBox4: TCheckBox;
- CheckBox5: TCheckBox;
- CheckBox6: TCheckBox;
- CheckBox7: TCheckBox;
- BitBtn3: TBitBtn;
- Label1: TLabel;
- Query1: TQuery;
- Label2: TLabel;
- procedure BitBtn3Click(Sender: TObject);
- procedure BitBtn1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- rightform: Trightform;
- implementation
- uses Unit3, Unit1;
- {$R *.dfm}
- procedure Trightform.BitBtn3Click(Sender: TObject);
- begin
- CheckBox1.State:=cbChecked;
- CheckBox2.State:=cbChecked;
- // CheckBox3.State:=cbChecked;
- CheckBox4.State:=cbChecked;
- CheckBox5.State:=cbChecked;
- // CheckBox6.State:=cbChecked;
- CheckBox7.State:=cbChecked;
- end;
- procedure Trightform.BitBtn1Click(Sender: TObject);
- begin
- query1.Close;
- query1.SQL.Clear;
- query1.SQL.Add('select qx from u where ID='''+loginform.ComboBox1.Text+'''') ;
- query1.Open;
- if query1.FieldByName('qx').AsString='b' then
- begin
- if CheckBox1.State=cbChecked then
- mainform.N3.Enabled:=true else mainform.N3.Enabled:=false;
- if CheckBox2.State=cbChecked then
- mainform.N18.Enabled:=true else mainform.N18.Enabled:=false;
- if CheckBox4.State=cbChecked then
- mainform.N6.Enabled:=true else mainform.N6.Enabled:=false;
- if CheckBox5.State=cbChecked then
- mainform.N7.Enabled:=true else mainform.N7.Enabled:=false;
- if CheckBox7.State=cbChecked then
- mainform.N10.Enabled:=true else mainform.N10.Enabled:=false;
- end;
- //if query1.FieldByName('qx').AsString='a' then
- // BitBtn3.Click;
- end;
- end.