📄 xuanze.frm
字号:
VERSION 5.00
Begin VB.Form xuanZe
BorderStyle = 1 'Fixed Single
Caption = "登陆帐户"
ClientHeight = 3270
ClientLeft = 45
ClientTop = 435
ClientWidth = 5745
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3270
ScaleWidth = 5745
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1200
PasswordChar = "*"
TabIndex = 8
Top = 1080
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 7
Top = 480
Width = 1815
End
Begin VB.CommandButton Command3
Caption = "利率查询"
Height = 375
Left = 3720
TabIndex = 4
Top = 2160
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2280
TabIndex = 3
Top = 2160
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "下一步"
Height = 375
Left = 840
TabIndex = 2
Top = 2160
Width = 1335
End
Begin VB.ComboBox xuanZeCombo
Height = 300
ItemData = "xuanZe.frx":0000
Left = 3720
List = "xuanZe.frx":000A
TabIndex = 0
Text = "选择种类"
Top = 1200
Width = 1215
End
Begin VB.Label Label3
Caption = "密码"
Height = 255
Left = 480
TabIndex = 6
Top = 1200
Width = 495
End
Begin VB.Label Label2
Caption = "帐号"
Height = 255
Left = 480
TabIndex = 5
Top = 600
Width = 495
End
Begin VB.Label Label1
Caption = "存款种类"
Height = 255
Left = 3840
TabIndex = 1
Top = 600
Width = 735
End
End
Attribute VB_Name = "xuanZe"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim tempPoint As ADODB.Recordset
Dim textSQL As String
Dim queRen As Boolean
queRen = False
If (Trim(Text1.Text) = "") Then
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
MsgBox "帐号空!", vbOKOnly + vbExclamation, ""
Else
If (Trim(Text2.Text) = "") Then
Text1.Text = ""
Text2.Text = ""
Text2.SetFocus
MsgBox "密码空!", vbOKOnly + vbExclamation, ""
Else
queRen = True
End If
End If
dangQianRiQi = Date
If queRen = True Then
textSQL = "select * from 客户基本信息 where 帐号='" & Text1.Text & "'"
Set tempPoint = ExecuteSQL(textSQL)
If tempPoint.EOF Then
MsgBox "帐户不存在!", vbOKOnly + vbExclamation, "错误"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
If tempPoint.Fields(6) <> Text2.Text Then
MsgBox "密码不正确,请重新输入!", vbOKOnly + vbExclamation, "密码错误"
Text2.Text = ""
Text2.SetFocus
Else
LoginSucceeded = True
ID_Number = tempPoint.Fields(5)
tempPoint.Close
End If
End If
End If
If LoginSucceeded = True Then
If xuanZeCombo = "活期" Then
cashInForm1.Show
textSQL = " select * from 利率 where 时间 like'" & dangQianRiQi & "'"
Set tempPoint = ExecuteSQL(textSQL)
huqQiLiLu = tempPoint.Fields(1)
tempPoint.Close
Unload Me
Else
If xuanZeCombo = "定期" Then
cashInForm2.Show
Unload Me
Else
MsgBox "请选择存款种类", vbOKOnly + vbExclamation, ""
End If
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
liLvChaXunForm.Show
End Sub
Private Sub Form_Load()
LoginSucceeded = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -