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
frmDriver2.frm
Package: 车辆管理信息系统2.rar [view]
Upload User: lizhip88
Upload Date: 2007-06-21
Package Size: 42k
Code Size: 4k
Category:
transportation applications
Development Platform:
Visual Basic
- VERSION 5.00
- Begin VB.Form frmDriver2
- BorderStyle = 3 'Fixed Dialog
- Caption = "司机信息查询"
- ClientHeight = 1776
- ClientLeft = 48
- ClientTop = 336
- ClientWidth = 4680
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1776
- ScaleWidth = 4680
- ShowInTaskbar = 0 'False
- StartUpPosition = 1 'CenterOwner
- Begin VB.CheckBox chkItem
- Caption = "Check1"
- Height = 180
- Index = 1
- Left = 240
- TabIndex = 7
- TabStop = 0 'False
- Top = 720
- Width = 132
- End
- Begin VB.CheckBox chkItem
- Caption = "Check1"
- Height = 180
- Index = 0
- Left = 240
- TabIndex = 6
- TabStop = 0 'False
- Top = 240
- Value = 1 'Checked
- Width = 132
- End
- Begin VB.CommandButton cmdOk
- Caption = "确定 (&O)"
- Default = -1 'True
- Height = 375
- Left = 840
- TabIndex = 2
- Top = 1320
- Width = 1215
- End
- Begin VB.CommandButton cmdExit
- Caption = "取消 (&X)"
- Height = 375
- Left = 2760
- TabIndex = 3
- Top = 1320
- Width = 1215
- End
- Begin VB.TextBox txtItem
- Height = 270
- Index = 1
- Left = 1680
- TabIndex = 1
- Top = 720
- Width = 2655
- End
- Begin VB.TextBox txtItem
- Height = 270
- Index = 0
- Left = 1680
- TabIndex = 0
- Top = 240
- Width = 2655
- End
- Begin VB.Label lblitem
- Caption = "准驾车型:"
- Height = 255
- Index = 1
- Left = 600
- TabIndex = 5
- Top = 720
- Width = 1095
- End
- Begin VB.Label lblitem
- Caption = "姓 名:"
- Height = 255
- Index = 0
- Left = 600
- TabIndex = 4
- Top = 240
- Width = 1095
- End
- End
- Attribute VB_Name = "frmDriver2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdExit_Click()
- Me.Hide
- End Sub
- Private Sub cmdOK_Click()
- Dim txtSQL As String
- If chkItem(0).Value = vbChecked Then
- txtSQL = " sjname ='" & Trim(txtItem(0) & " ") & "'"
- End If
- If chkItem(1).Value = vbChecked Then
- If Trim(txtSQL & " ") = "" Then
- txtSQL = " sjtype ='" & Trim(txtItem(1) & " ") & "'"
- Else
- txtSQL = txtSQL & " and sjtype ='" & Trim(txtItem(1) & " ") & "'"
- End If
- End If
- Me.Hide
- If Trim(txtSQL) = "" Then
- MsgBox "请设置查询方式!", vbOKOnly + vbExclamation, "警告"
- Exit Sub
- Else
- If flagdEdit Then
- Unload frmDriver
- End If
- frmDriver.txtSQL = "select * from driver where" & txtSQL
- frmDriver.Show
- End If
- End Sub
- Private Sub lblitem_Click(Index As Integer)
- chkItem(Index).Value = vbChecked
- txtItem(Index).SetFocus
- End Sub
- Private Sub chkItem_Click(Index As Integer)
- txtItem(Index).SetFocus
- End Sub
- Private Sub txtItem_GotFocus(Index As Integer)
- txtItem(Index).SelStart = 0
- txtItem(Index).SelLength = Len(txtItem(Index))
- End Sub