📄 lilvchaxunbiao.frm
字号:
VERSION 5.00
Begin VB.Form liLvChaXunBiao
BorderStyle = 1 'Fixed Single
Caption = "查询利息"
ClientHeight = 6195
ClientLeft = 45
ClientTop = 435
ClientWidth = 7365
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6195
ScaleWidth = 7365
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "继 续 查 询"
BeginProperty Font
Name = "黑体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3720
TabIndex = 15
Top = 5160
Width = 2415
End
Begin VB.TextBox Text7
Appearance = 0 'Flat
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 14
Top = 4320
Width = 4335
End
Begin VB.TextBox Text6
Appearance = 0 'Flat
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 13
Top = 3720
Width = 4335
End
Begin VB.TextBox Text5
Appearance = 0 'Flat
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 12
Top = 3120
Width = 4335
End
Begin VB.CommandButton Command1
Caption = "完 成"
BeginProperty Font
Name = "黑体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 720
TabIndex = 8
Top = 5160
Width = 2415
End
Begin VB.TextBox Text4
Appearance = 0 'Flat
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 7
Top = 2520
Width = 4335
End
Begin VB.TextBox Text3
Appearance = 0 'Flat
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 5
Top = 1920
Width = 4335
End
Begin VB.TextBox Text2
Appearance = 0 'Flat
BackColor = &H0000FFFF&
BeginProperty Font
Name = "华文行楷"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 1920
TabIndex = 3
TabStop = 0 'False
ToolTipText = "利率时间"
Top = 1320
Width = 4335
End
Begin VB.TextBox zhongLeiText1
Enabled = 0 'False
BeginProperty Font
Name = "华文行楷"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 570
Left = 1920
TabIndex = 1
Top = 480
Width = 4335
End
Begin VB.Label Label7
Height = 375
Left = 720
TabIndex = 11
Top = 4320
Width = 1095
End
Begin VB.Label Label6
Height = 375
Left = 720
TabIndex = 10
Top = 3720
Width = 1095
End
Begin VB.Label Label5
Height = 375
Left = 720
TabIndex = 9
Top = 3120
Width = 975
End
Begin VB.Label Label4
Height = 375
Left = 720
TabIndex = 6
Top = 2520
Width = 975
End
Begin VB.Label Label3
Height = 375
Left = 720
TabIndex = 4
Top = 1920
Width = 855
End
Begin VB.Label Label2
Height = 495
Left = 720
TabIndex = 2
Top = 1320
Width = 855
End
Begin VB.Label Label1
Caption = "存款种类"
Height = 255
Left = 720
TabIndex = 0
Top = 600
Width = 855
End
End
Attribute VB_Name = "liLvChaXunBiao"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
liLvChaXunForm.Show
End Sub
Private Sub Form_Load()
Dim textSQL As String
Dim tempPoint As ADODB.Recordset
Dim b(10) As Single
Dim i As Integer
Dim countNU As Integer '未用
textSQL = " select * from 利率 where 时间 like'" & chaXunRiQi & "'"
Set tempPoint = ExecuteSQL(textSQL)
If tempPoint.EOF Then
MsgBox "无当天记录!", vbOKOnly + vbExclamation, ""
tempPoint.Close
Else
b(1) = tempPoint.Fields(1)
b(2) = tempPoint.Fields(2)
b(3) = tempPoint.Fields(3)
b(4) = tempPoint.Fields(4)
b(5) = tempPoint.Fields(5)
tempPoint.Close
End If
Label2.Caption = "利率日期"
Text2.Text = chaXunRiQi
Select Case chaXunZHL
Case 0
zhongLeiText1.Text = "活期存款利率"
Label3.Caption = " 活期利率"
Text3.Text = Str(b(1) * 1000) & "‰"
Text4.Visible = False
Text5.Visible = False
Text5.Visible = False
Text6.Visible = False
Text7.Visible = False
Case 1
zhongLeiText1.Text = "定期存款利率"
If a(0) = True Then
Label3.Caption = "定期一年"
Text3.Text = Str(b(2) * 1000) & "‰"
End If
If a(1) = True Then
Label4.Caption = "定期两年"
Text4.Text = Str(b(3) * 1000) & "‰"
End If
If a(2) = True Then
Label5.Caption = "定期三年"
Text5.Text = Str(b(4) * 1000) & "‰"
End If
If a(3) = True Then
Label6.Caption = "定期五年"
Text6.Text = Str(b(5) * 1000) & "‰"
End If
Text7.Visible = False
Case 2
zhongLeiText1.Text = "活期/定期利率"
Label3.Caption = "定期一年"
Text3.Text = Str$(b(2) * 1000) & "‰"
Label4.Caption = "定期两年"
Text4.Text = Str$(b(3) * 1000) & "‰"
Label5.Caption = "定期三年"
Text5.Text = Str$(b(4) * 1000) & "‰"
Label6.Caption = "定期五年"
Text6.Text = Str$(b(5) * 1000) & "‰"
Label7.Caption = "活期利率"
Text7.Text = Str$(b(1) * 1000) & "‰"
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -