📄 frmdriverfind.frm
字号:
VERSION 5.00
Begin VB.Form frmdriverfind
BorderStyle = 1 'Fixed Single
Caption = "司机信息查询"
ClientHeight = 3195
ClientLeft = 5355
ClientTop = 2220
ClientWidth = 4680
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
Begin VB.TextBox Text3
Height = 375
Left = 1680
TabIndex = 7
Top = 1800
Width = 2415
End
Begin VB.CheckBox Check3
Caption = "准驾车型"
Height = 375
Left = 360
TabIndex = 6
Top = 1800
Width = 1215
End
Begin VB.CommandButton cmdcanel
Caption = "取 消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2520
TabIndex = 5
Top = 2400
Width = 1215
End
Begin VB.CommandButton Cmdok
Caption = "确 定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 4
Top = 2400
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 1680
TabIndex = 3
Top = 1080
Width = 2415
End
Begin VB.TextBox Text1
Height = 375
Left = 1680
TabIndex = 2
Top = 360
Width = 2415
End
Begin VB.CheckBox Check2
Caption = "驾照查询"
Height = 375
Left = 360
TabIndex = 1
Top = 1080
Width = 1095
End
Begin VB.CheckBox Check1
Caption = "姓名查询"
Height = 375
Left = 360
TabIndex = 0
Top = 360
Width = 1215
End
End
Attribute VB_Name = "frmdriverfind"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
If Check1.Value = 1 Then
Check2.Enabled = False
Check3.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Else
Check1.Enabled = True
Check2.Enabled = True
Check3.Enabled = True
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
Check1.Enabled = False
Check3.Enabled = False
Text1.Enabled = False
Text3.Enabled = False
Else
Check1.Enabled = True
Check2.Enabled = True
Check3.Enabled = True
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End If
End Sub
Private Sub Check3_Click()
If Check3.Value = 1 Then
Check1.Enabled = False
Check2.Enabled = False
Text1.Enabled = False
Text2.Enabled = False
Else
Check1.Enabled = True
Check2.Enabled = True
Check3.Enabled = True
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
End If
End Sub
Private Sub cmdcanel_Click()
Unload Me
End Sub
Private Sub cmdok_Click()
Dim txtsql As String
If Check1.Value = vbChecked Then
' Call hidecheck
If Trim(Text1.Text) = "" Then
MsgBox "查询内容不能为空", vbOKOnly + vbExclamation, "警告"
Else
txtsql = "sj_name='" & Trim(Text1.Text) & "'"
End If
' Check2.Enabled = False
' Check3.Enabled = False
End If
If Check2.Value = vbChecked Then
'Call hidecheck
If Trim(Text2.Text) = "" Then
MsgBox "查询内容不能为空", vbOKOnly + vbExclamation, "警告"
Else
txtsql = "sj_id='" & Trim(Text2.Text) & "'"
End If
'Check1.Enabled = False
'Check3.Enabled = False
End If
If Check3.Value = vbChecked Then
' Call hidecheck
If Trim(Text3.Text) = "" Then
MsgBox "查询内容不能为空", vbOKOnly + vbExclamation, "警告"
Else
txtsql = "sj_type='" & Trim(Text3.Text) & "'"
End If
'Check1.Enabled = False
' Check2.Enabled = False
End If
If Trim(txtsql) = "" Then
MsgBox "请设置查询方式!", vbOKOnly + vbExclamation, "提示"
Exit Sub
Else
'If flagdEdit Then
Unload frmdriverfind
'End If
frmdriverlist.txtsql = "select * from driver where " & txtsql
frmdriverlist.Show
End If
End Sub
Private Sub Form_Load()
Me.Left = 5310
Me.Top = 1890
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -