📄 挂失、解挂.frm
字号:
VERSION 5.00
Begin VB.Form Form17
BackColor = &H00FFC0C0&
Caption = "Form17"
ClientHeight = 5880
ClientLeft = 165
ClientTop = 450
ClientWidth = 9330
LinkTopic = "Form17"
Picture = "挂失、解挂.frx":0000
ScaleHeight = 5880
ScaleWidth = 9330
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "挂失解挂"
Height = 4215
Left = 360
TabIndex = 0
Top = 960
Width = 5295
Begin VB.CheckBox Check2
BackColor = &H00FFC0C0&
Caption = "密码挂失解挂"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2760
TabIndex = 15
Top = 120
Width = 1695
End
Begin VB.CheckBox Check1
BackColor = &H00FFC0C0&
Caption = "身份证挂失解挂"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 720
TabIndex = 14
Top = 120
Width = 1935
End
Begin VB.CommandButton Command6
Caption = "挂失"
Height = 495
Left = 2040
Picture = "挂失、解挂.frx":10474
Style = 1 'Graphical
TabIndex = 13
Top = 3480
Width = 1335
End
Begin VB.CommandButton Command5
Caption = "确认密码"
Height = 495
Left = 600
Picture = "挂失、解挂.frx":18D4A
Style = 1 'Graphical
TabIndex = 12
Top = 2880
Width = 1575
End
Begin VB.TextBox Text4
Height = 495
IMEMode = 3 'DISABLE
Left = 2400
PasswordChar = "*"
TabIndex = 11
Top = 2880
Width = 2535
End
Begin VB.TextBox Text3
Height = 495
IMEMode = 3 'DISABLE
Left = 2400
PasswordChar = "*"
TabIndex = 10
Top = 2280
Width = 2535
End
Begin VB.CommandButton Command4
Caption = "密码"
Height = 495
Left = 600
Picture = "挂失、解挂.frx":21620
Style = 1 'Graphical
TabIndex = 9
Top = 2280
Width = 1575
End
Begin VB.TextBox Text1
Height = 495
Left = 2400
TabIndex = 8
Top = 1080
Width = 2535
End
Begin VB.TextBox Text2
Height = 495
Left = 2400
TabIndex = 7
Top = 1680
Width = 2535
End
Begin VB.OptionButton Option2
BackColor = &H00FFC0C0&
Caption = "帐"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2760
TabIndex = 6
Top = 600
Width = 1215
End
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "卡"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 720
TabIndex = 5
Top = 720
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "返回"
Height = 495
Left = 600
Picture = "挂失、解挂.frx":29EF6
Style = 1 'Graphical
TabIndex = 4
Top = 3480
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "解挂"
Height = 495
Left = 3600
Picture = "挂失、解挂.frx":327CC
Style = 1 'Graphical
TabIndex = 3
Top = 3480
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "卡号|折号"
Height = 495
Index = 1
Left = 600
Picture = "挂失、解挂.frx":3B0A2
Style = 1 'Graphical
TabIndex = 2
Top = 1080
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "身份证"
Height = 495
Index = 2
Left = 600
Picture = "挂失、解挂.frx":43978
Style = 1 'Graphical
TabIndex = 1
Top = 1680
Width = 1575
End
End
End
Attribute VB_Name = "Form17"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Check1_Click()
Check2.Value = 0
Text3.Enabled = False
Text4.Enabled = False
Text3.Visible = False
Text4.Visible = False
Text2.Enabled = True
Text2.Visible = True
Text3.Text = ""
Text4.Text = ""
End Sub
Private Sub Check2_Click()
Check1.Value = 0
Text2.Text = ""
Text2.Enabled = False
Text2.Visible = False
Text3.Enabled = True
Text4.Enabled = True
Text3.Visible = True
Text4.Visible = True
End Sub
Private Sub Command2_Click()
If Check1.Value <> 1 And Check2.Value <> 1 Then
MsgBox "请选择方式!"
Exit Sub
ElseIf Option1.Value = False And Option2.Value = False Then
MsgBox "请选择物品!"
Exit Sub
ElseIf Not IsNumeric(Text1.Text) Then
MsgBox "卡和帐户必需为位数字!", vbRetryCancel + vbExclamation, "错误提示"
Text1.SetFocus
Exit Sub
ElseIf Len(Text1.Text) <> 18 Then
MsgBox "卡和帐户长度必需为18位!", vbRetryCancel + vbExclamation, "错误提示"
Text1.SetFocus
Exit Sub
ElseIf Check1.Value = 1 Then
If Not IsNumeric(Text2.Text) Then
MsgBox "身份证必须为数字"
Text2.SetFocus
Exit Sub
End If
If Len(Text2.Text) > 20 Then
MsgBox "身份证号必须小于20位"
Text2.SetFocus
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -