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
f_depart_id.pas
Package: ERP人力资源管理系统毕业设计.rar [view]
Upload User: lcqxtx
Upload Date: 2013-02-15
Package Size: 530k
Code Size: 1k
Category:
ERP-EIP-OA-Portal
Development Platform:
Delphi
- unit f_depart_id;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, ExtCtrls, Buttons, DB, ADODB;
- type
- Tw_depart_id = class(TForm)
- data_depart_id: TDataSource;
- ado_depart_id: TADOQuery;
- ado_depart_iddepart_id: TStringField;
- ado_depart_iddepart_name: TStringField;
- Panel1: TPanel;
- Label1: TLabel;
- ComboBox1: TComboBox;
- BitBtn1: TBitBtn;
- BitBtn2: TBitBtn;
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- w_depart_id: Tw_depart_id;
- implementation
- {$R *.dfm}
- procedure Tw_depart_id.FormCreate(Sender: TObject);
- begin
- ado_depart_id.Close;
- ado_depart_id.SQL.Clear;
- ado_depart_id.SQL.Add('select* from depart');
- ado_depart_id.Open;
- ado_depart_id.First;
- while not ado_depart_id.eof do
- begin
- combobox1.items.add(trim(ado_depart_id.fieldbyname('depart_id').asString)+' --- '+trim(ado_depart_id.fieldbyname('depart_name').asString));
- ado_depart_id.next;
- end;
- end;
- end.