findcustomize_complex.frm
来自「这是我的一个课题:我省农业分布调查咨询系统。课题是和省农业厅合作的。源代码完整」· FRM 代码 · 共 424 行 · 第 1/2 页
FRM
424 行
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FindCustomize_complex
BorderStyle = 1 'Fixed Single
Caption = "四川省农业基础资源空间信息查询系统 自定义查询"
ClientHeight = 3375
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 5625
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3375
ScaleWidth = 5625
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "清除条件"
Height = 375
Left = 3720
TabIndex = 9
Top = 2520
Width = 975
End
Begin VB.TextBox searchstring
Height = 1680
Left = 3360
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 8
Top = 360
Width = 2055
End
Begin MSComctlLib.ProgressBar ProBar1
Height = 255
Left = 0
TabIndex = 6
Top = 3120
Visible = 0 'False
Width = 5655
_ExtentX = 9975
_ExtentY = 450
_Version = 393216
Appearance = 1
End
Begin VB.ComboBox selectyearCombo1
Height = 300
Left = 360
Style = 2 'Dropdown List
TabIndex = 5
Top = 1200
Width = 1935
End
Begin VB.TextBox FindValueText
Height = 270
Left = 360
TabIndex = 3
Top = 1920
Width = 1335
End
Begin VB.ComboBox FindFieldCombo
Height = 300
ItemData = "FindCustomize_complex.frx":0000
Left = 360
List = "FindCustomize_complex.frx":0002
Style = 2 'Dropdown List
TabIndex = 2
Top = 480
Width = 1935
End
Begin VB.CommandButton CancelButton
Caption = "取消"
Height = 375
Left = 2400
TabIndex = 1
Top = 2520
Width = 975
End
Begin VB.CommandButton OKButton
Caption = "确定"
Enabled = 0 'False
Height = 375
Left = 1080
TabIndex = 0
Top = 2520
Width = 975
End
Begin VB.Frame Frame2
Caption = "运算符"
Height = 2295
Left = 2520
TabIndex = 4
Top = 0
Width = 735
Begin VB.ListBox calculateList
Height = 1680
Left = 120
TabIndex = 7
Top = 360
Width = 495
End
End
Begin VB.Frame Frame1
Caption = "满足条件"
Height = 2295
Left = 3240
TabIndex = 10
Top = 0
Width = 2295
End
Begin VB.Frame Frame3
Caption = "查询"
Height = 2295
Left = 120
TabIndex = 11
Top = 0
Width = 2415
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Height = 180
Left = 1630
TabIndex = 15
Top = 1950
Width = 90
End
Begin VB.Label Label2
Caption = "输入您想查询的值:"
Height = 255
Left = 120
TabIndex = 14
Top = 1680
Width = 1815
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "请选择您想查询的年份:"
Height = 180
Left = 120
TabIndex = 13
Top = 960
Width = 1980
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "请选择您想查询的类别:"
Height = 180
Left = 120
TabIndex = 12
Top = 240
Width = 1980
End
End
End
Attribute VB_Name = "FindCustomize_complex"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub calculateList_DblClick()
searchstring.Text = searchstring.Text & " " & calculateList.Text & " "
End Sub
Private Sub CancelButton_Click()
Unload FindCustomize_complex
End Sub
Private Sub Command1_Click()
searchstring.Text = ""
End Sub
Private Sub FindFieldCombo_Click()
searchstring.Text = searchstring.Text & FindFieldCombo.Text
FindValueText.Text = ""
If FindFieldCombo.Text = "土地面积" Then
Label4.Caption = "平方公里"
Else
If FindFieldCombo.Text = "播种面积" Or FindFieldCombo.Text = "耕地面积" Then
Label4.Caption = "亩"
Else
If FindFieldCombo.Text = "农民人均纯收入" Then
Label4.Caption = "元"
Else
If FindFieldCombo.Text = "粮食总产" Then
Label4.Caption = "吨"
Else
If FindFieldCombo.Text = "非农业人口" Then
Label4.Caption = "万人"
Else
If FindFieldCombo.Text = "县总人口" Or FindFieldCombo.Text = "农村人口" Or FindFieldCombo.Text = "男性人口" Or FindFieldCombo.Text = "女性人口" Or FindFieldCombo.Text = "从业人员" Then
Label4.Caption = "人"
Else
If FindFieldCombo.Text = "国内生产总值" Or FindFieldCombo.Text = "第一产业产值" Or FindFieldCombo.Text = "第二产业产值" Or FindFieldCombo.Text = "第三产业产值" Or FindFieldCombo.Text = "种植业产值" Or FindFieldCombo.Text = "牧业产值" Or FindFieldCombo.Text = "林业产值" Or FindFieldCombo.Text = "乡镇企业产值" Then
Label4.Caption = "万元"
Else
Label4.Caption = ""
End If
End If
End If
End If
End If
End If
End If
End Sub
Private Sub FindFieldCombo_LostFocus()
'Select Case FindFieldCombo.Text
' Case "土地面积"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?