📄 frm_quecus.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Frm_queCus
Caption = "查询顾客"
ClientHeight = 5040
ClientLeft = 60
ClientTop = 450
ClientWidth = 6225
LinkTopic = "Form1"
ScaleHeight = 5040
ScaleWidth = 6225
StartUpPosition = 3 '窗口缺省
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Frm_queCus.frx":0000
Height = 2175
Left = 240
TabIndex = 11
Top = 120
Width = 5775
_ExtentX = 10186
_ExtentY = 3836
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 10
BeginProperty Column00
DataField = "Customer_name"
Caption = "顾客姓名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "Customer_sex"
Caption = "性别"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "Customer_age"
Caption = "年龄"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "Customer_occup"
Caption = "职业"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "Customer_num"
Caption = "证件号码"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column05
DataField = "Customer_tel"
Caption = "电话"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column06
DataField = "Customer_addr"
Caption = "住址"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column07
DataField = "Buy_car"
Caption = "车辆型号"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column08
DataField = "Buy_price"
Caption = "价格"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column09
DataField = "Info"
Caption = "备注"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1005.165
EndProperty
BeginProperty Column01
ColumnWidth = 464.882
EndProperty
BeginProperty Column02
ColumnWidth = 480.189
EndProperty
BeginProperty Column03
ColumnWidth = 764.787
EndProperty
BeginProperty Column04
ColumnWidth = 1305.071
EndProperty
BeginProperty Column05
ColumnWidth = 1065.26
EndProperty
BeginProperty Column06
ColumnWidth = 2294.929
EndProperty
BeginProperty Column07
EndProperty
BeginProperty Column08
EndProperty
BeginProperty Column09
ColumnWidth = 2445.166
EndProperty
EndProperty
End
Begin VB.CommandButton Cmd_Cancel
Caption = "取消"
Height = 375
Index = 1
Left = 4200
TabIndex = 10
Top = 3840
Width = 1095
End
Begin VB.TextBox txtCusjob
Appearance = 0 'Flat
Height = 375
Left = 1680
TabIndex = 4
Top = 4320
Width = 2175
End
Begin VB.OptionButton Option4
Caption = "按职业查询"
Height = 375
Left = 360
TabIndex = 8
Top = 4320
Width = 1335
End
Begin VB.TextBox txtCusage
Appearance = 0 'Flat
Height = 375
Left = 1680
TabIndex = 3
Top = 3840
Width = 2175
End
Begin VB.OptionButton Option3
Caption = "按年龄查询"
Height = 375
Left = 360
TabIndex = 7
Top = 3840
Width = 1335
End
Begin VB.Frame Frame1
Height = 2415
Left = 120
TabIndex = 0
Top = 2520
Width = 5895
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 4080
Top = 240
Visible = 0 'False
Width = 1695
_ExtentX = 2990
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=CarSaleSys"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "CarSaleSys"
OtherAttributes = ""
UserName = "sa"
Password = "sa"
RecordSource = "select * from Customer"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Cmd_queCus
Caption = "查询"
Height = 375
Left = 4080
TabIndex = 9
Top = 840
Width = 1095
End
Begin VB.TextBox txtCussex
Appearance = 0 'Flat
Height = 375
Left = 1560
TabIndex = 2
Top = 840
Width = 2175
End
Begin VB.OptionButton Option2
Caption = "按性别查询"
Height = 375
Left = 240
TabIndex = 6
Top = 840
Width = 1335
End
Begin VB.TextBox txtCusname
Appearance = 0 'Flat
Height = 375
Left = 1560
TabIndex = 1
Top = 360
Width = 2175
End
Begin VB.OptionButton Option1
Caption = "按姓名查询"
Height = 375
Left = 240
TabIndex = 5
Top = 360
Width = 1335
End
End
End
Attribute VB_Name = "Frm_queCus"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_Cancel_Click(Index As Integer)
Unload Me
End Sub
Private Sub Cmd_queCus_Click()
If Option1 = True Then
If txtCusname.Text <> "" Then
Adodc1.RecordSource = "select * from Customer where Customer_name = '" + Trim(txtCusname.Text) + "'"
Adodc1.Refresh
End If
End If
If Option2 = True Then
If txtCussex.Text <> "" Then
Adodc1.RecordSource = "select * from Customer where Customer_sex = '" + Trim(txtCussex.Text) + "'"
Adodc1.Refresh
End If
End If
If Option3 = True Then
If txtCusage.Text <> "" Then
Adodc1.RecordSource = "select * from Customer where Customer_age = " + Val(Trim(txtCusage.Text))
Adodc1.Refresh
End If
End If
If Option4 = True Then
If txtCusjob.Text <> "" Then
Adodc1.RecordSource = "select * from Customer where Customer_occup = '" + Trim(txtCusjob.Text) + "'"
Adodc1.Refresh
End If
End If
End Sub
Private Sub Option1_Click()
txtCussex.Text = ""
txtCussex.Enabled = False
txtCusage.Text = ""
txtCusage.Enabled = False
txtCusjob.Text = ""
txtCusjob.Enabled = False
txtCusname.Enabled = True
End Sub
Private Sub Option2_Click()
txtCusname.Text = ""
txtCusname.Enabled = False
txtCusage.Text = ""
txtCusage.Enabled = False
txtCusjob.Text = ""
txtCusjob.Enabled = False
txtCussex.Enabled = True
End Sub
Private Sub Option3_Click()
txtCusname.Text = ""
txtCusname.Enabled = False
txtCussex.Text = ""
txtCussex.Enabled = False
txtCusjob.Text = ""
txtCusjob.Enabled = False
txtCusage.Enabled = True
End Sub
Private Sub Option4_Click()
txtCusname.Text = ""
txtCusname.Enabled = False
txtCussex.Text = ""
txtCussex.Enabled = False
txtCusage.Text = ""
txtCusage.Enabled = False
txtCusjob.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -