?? 定期選擇.frm
字號(hào):
VERSION 5.00
Begin VB.Form Form22
BackColor = &H00FFC0C0&
Caption = "Form22"
ClientHeight = 6660
ClientLeft = 60
ClientTop = 450
ClientWidth = 9675
LinkTopic = "Form22"
Picture = "定期選擇.frx":0000
ScaleHeight = 6660
ScaleWidth = 9675
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "帳戶開(kāi)戶界面"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 5055
Left = 1440
TabIndex = 0
Top = 840
Width = 5655
Begin VB.OptionButton Option4
BackColor = &H00FFC0C0&
Caption = "五年定期"
Height = 375
Left = 3000
TabIndex = 20
Top = 3480
Width = 1335
End
Begin VB.OptionButton Option3
BackColor = &H00FFC0C0&
Caption = "三年定期"
Height = 495
Left = 1080
TabIndex = 19
Top = 3480
Width = 1335
End
Begin VB.CheckBox Check2
BackColor = &H00FFC0C0&
Caption = "女"
Height = 255
Left = 3000
TabIndex = 18
Top = 240
Width = 1455
End
Begin VB.CheckBox Check1
BackColor = &H00FFC0C0&
Caption = "男"
Height = 255
Left = 1320
TabIndex = 17
Top = 240
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "聯(lián)系電話"
Height = 495
Index = 0
Left = 960
Picture = "定期選擇.frx":A602
Style = 1 'Graphical
TabIndex = 12
Top = 2400
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "地址"
Height = 495
Index = 1
Left = 960
Picture = "定期選擇.frx":12ED8
Style = 1 'Graphical
TabIndex = 11
Top = 1800
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "身份證"
Height = 495
Index = 2
Left = 960
Picture = "定期選擇.frx":1B7AE
Style = 1 'Graphical
TabIndex = 10
Top = 1200
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "姓名"
Height = 495
Index = 3
Left = 960
Picture = "定期選擇.frx":24084
Style = 1 'Graphical
TabIndex = 9
Top = 600
Width = 1575
End
Begin VB.CommandButton Command2
Caption = "返回"
Height = 495
Left = 960
Picture = "定期選擇.frx":2C95A
Style = 1 'Graphical
TabIndex = 8
Top = 3960
Width = 1575
End
Begin VB.TextBox Text2
Height = 495
Left = 3000
TabIndex = 7
Top = 1200
Width = 2175
End
Begin VB.TextBox Text1
Height = 495
Left = 3000
TabIndex = 6
Top = 600
Width = 2175
End
Begin VB.TextBox Text3
Height = 495
Left = 3000
TabIndex = 5
Top = 1800
Width = 2175
End
Begin VB.TextBox Text5
Height = 495
Left = 3000
TabIndex = 4
Top = 2400
Width = 2175
End
Begin VB.CommandButton Command3
Caption = "開(kāi)戶"
Height = 495
Left = 3000
Picture = "定期選擇.frx":35230
Style = 1 'Graphical
TabIndex = 3
Top = 3960
Width = 2175
End
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "一年定期"
Height = 375
Left = 1080
TabIndex = 2
Top = 3000
Width = 1695
End
Begin VB.OptionButton Option2
BackColor = &H00FFC0C0&
Caption = "兩年定期"
Height = 375
Left = 3000
TabIndex = 1
Top = 3000
Width = 1215
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "*"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Index = 0
Left = 600
TabIndex = 21
Top = 240
Width = 135
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00FFC0C0&
Caption = "注:帶*為必填"
ForeColor = &H000000FF&
Height = 300
Left = 4200
TabIndex = 16
Top = 4680
Width = 1170
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "*"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Index = 1
Left = 600
TabIndex = 15
Top = 720
Width = 255
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "*"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Index = 2
Left = 600
TabIndex = 14
Top = 1320
Width = 255
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "*"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Index = 3
Left = 600
TabIndex = 13
Top = 1920
Width = 255
End
End
End
Attribute VB_Name = "Form22"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim wm As String
Public yg22 As String
Public yh22 As String
Public rate22 As Double
Dim class22 As String
Private Sub Check1_Click()
Check2.Value = 0
wm = "男"
End Sub
Private Sub Check2_Click()
Check1.Value = 0
wm = "女"
End Sub
Private Sub Command2_Click()
Unload Me
Form20.Show
End Sub
Private Sub Command3_Click()
Dim count As Integer
Dim nowTime As String
Dim ka As String
nowTime = Now
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or (Check1.Value <> 1 And Check2.Value <> 1) Then
MsgBox "帶*為必填項(xiàng)!"
Text1.SetFocus
Exit Sub
ElseIf Not IsNumeric(Text2.Text) Then
MsgBox "身份證必須為數(shù)字"
Text2.SetFocus
Exit Sub
ElseIf Not IsNumeric(Text5.Text) And Text5.Text <> "" Then
MsgBox "電話號(hào)必須全為數(shù)字"
Text5.SetFocus
Exit Sub
ElseIf Len(Text2.Text) > 20 Then
MsgBox "身份證號(hào)必須小于20位"
Exit Sub
Text2.SetFocus
ElseIf (Option1.Value = False And Option2.Value = False And Option3.Value = False And Option4.Value = False) Then
MsgBox "選擇帳戶種類"
Exit Sub
Else
ka = yg22 + Format(nowTime, "yyyy") + Format(nowTime, "mm") + Format(nowTime, "dd") + Format(nowTime, "hh") + Format(nowTime, "nn") + Format(nowTime, "ss")
Call openconn
rs.Open "select * from client_xx053_06 where id='" & Trim(Text2.Text) & "'", conn, adOpenDynamic, adLockOptimistic
If rs.BOF And rs.EOF Then
conn.Execute "insert into client_xx053_06 values('" & Trim(Text2.Text) & "','" & Trim(Text1.Text) & "','" & Trim(Text3.Text) & "','" & Trim(Text5.Text) & "','" & wm & "',1)"
MsgBox "恭喜您申請(qǐng)成功"
MsgBox "您的賬號(hào)是:" & ka
conn.Execute "insert into account_xx053_06 values('" & ka & "','222222' ,'" & Trim(Text2.Text) & "',0,'" & class22 & "','" & yh22 & "','" & nowTime & "',10,'" & rate22 & "')"
MsgBox "您的初始密碼是:222222"
rs.Close
conn.Close
Unload Me
Form3.Show
Else
conn.Execute "insert into account_xx053_06 values('" & ka & "','222222' ,'" & Trim(Text2.Text) & "',0,'" & class22 & "','" & yh22 & "','" & nowTime & "',10,'" & rate22 & "')"
MsgBox "恭喜您申請(qǐng)成功"
MsgBox "您的賬號(hào)是:" & ka
MsgBox "您的初始密碼是:222222"
rs.Close
rs.Open "select * from client_xx053_06 where id='" & Trim(Text2.Text) & "'", conn, adOpenDynamic, adLockOptimistic
count = rs!count
count = count + 1
rs.Fields(5) = count
rs.Update
rs.Close
conn.Close
Unload Me
Form3.Show
End If
End If
End Sub
Private Sub Option1_Click()
If Option1.Value = True Then
class22 = "一年定期"
Call openconn
rs.Open "select * from rate_xx053_06 ", conn, adOpenDynamic, adLockOptimistic
rate22 = rs!one
rs.Close
End If
End Sub
Private Sub Option2_Click()
If Option2.Value = True Then
class22 = "兩年定期"
Call openconn
rs.Open "select * from rate_xx053_06 ", conn, adOpenDynamic, adLockOptimistic
rate22 = rs!two
rs.Close
End If
End Sub
Private Sub Option3_Click()
If Option3.Value = True Then
class22 = "三年定期"
Call openconn
rs.Open "select * from rate_xx053_06 ", conn, adOpenDynamic, adLockOptimistic
rate22 = rs!three
rs.Close
End If
End Sub
Private Sub Option4_Click()
If Option4.Value = True Then
class22 = "五年定期"
Call openconn
rs.Open "select * from rate_xx053_06 ", conn, adOpenDynamic, adLockOptimistic
rate22 = rs!five
rs.Close
End If
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -