📄 frmoaa2.frm
字号:
VERSION 5.00
Begin VB.Form frmOAA2
BackColor = &H00404040&
BorderStyle = 1 'Fixed Single
Caption = "开户:第二步"
ClientHeight = 4320
ClientLeft = 45
ClientTop = 435
ClientWidth = 7245
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4320
ScaleWidth = 7245
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取 消"
Height = 345
Left = 4320
TabIndex = 20
Top = 3720
Width = 975
End
Begin VB.CommandButton cmdBack
Caption = "上一步"
Height = 345
Left = 1920
TabIndex = 19
Top = 3720
Width = 975
End
Begin VB.CommandButton cmdNext
Caption = "下一步"
Default = -1 'True
Height = 345
Left = 3120
TabIndex = 18
Top = 3720
Width = 975
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 6
Left = 5280
TabIndex = 17
Top = 3120
Width = 1815
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 5
Left = 1800
TabIndex = 16
Top = 3120
Width = 1935
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 4
Left = 1800
TabIndex = 15
Top = 2640
Width = 5295
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 3
Left = 1800
TabIndex = 14
Top = 2160
Width = 5295
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 2
Left = 1800
TabIndex = 13
Top = 1680
Width = 5295
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 1
Left = 5400
TabIndex = 12
Top = 1200
Width = 1695
End
Begin VB.TextBox txt
Appearance = 0 'Flat
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Index = 0
Left = 1800
TabIndex = 11
Top = 1200
Width = 1935
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "开户人身份证号码:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 13
Left = 120
TabIndex = 10
Top = 1800
Width = 1620
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "经办人姓名:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 12
Left = 4320
TabIndex = 9
Top = 1320
Width = 1080
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "经办人身份证号码:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 11
Left = 120
TabIndex = 8
Top = 2280
Width = 1620
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "经办人联系电话:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 9
Left = 3840
TabIndex = 7
Top = 3240
Width = 1440
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "开户人住址:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 8
Left = 120
TabIndex = 6
Top = 2760
Width = 1080
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "开户人联系电话:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 7
Left = 120
TabIndex = 5
Top = 3240
Width = 1440
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "开户人姓名:"
ForeColor = &H00FFFFFF&
Height = 180
Index = 4
Left = 120
TabIndex = 4
Top = 1320
Width = 1080
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "请将“用户申请表”中的数据填入下列文本框中!"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 210
Index = 3
Left = 1440
TabIndex = 3
Top = 720
Width = 4620
End
Begin VB.Line line
BorderColor = &H00FFFFFF&
BorderWidth = 2
Index = 1
X1 = -120
X2 = 7320
Y1 = 960
Y2 = 960
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "第二步"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 210
Index = 1
Left = 6480
TabIndex = 2
Top = 360
Width = 675
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "接收用户数据"
BeginProperty Font
Name = "华文新魏"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 315
Index = 2
Left = 2640
TabIndex = 1
Top = 240
Width = 1890
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Second"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 210
Index = 0
Left = 120
TabIndex = 0
Top = 360
Width = 720
End
Begin VB.Line line
BorderColor = &H00FFFFFF&
BorderWidth = 2
Index = 0
X1 = 0
X2 = 7440
Y1 = 600
Y2 = 600
End
End
Attribute VB_Name = "frmOAA2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'响应 "上一步" 按钮
Private Sub cmdBack_Click()
frmOAA1.Show
Unload Me
End Sub
'响应 "取消" 按钮
Private Sub cmdCancel_Click()
Unload Me
End Sub
'响应 "下一步" 按钮
Private Sub cmdNext_Click()
Dim nowTime As String
nowTime = Now
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'判断用户的输入是否正确↓
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For i = 0 To 5
If txt(i).Text = "" Then '如果用户任何一项信息输入为空
MsgBox "请将各项填写完整", vbExclamation, "错误"
Exit Sub
End If
Next i
'''''''''''''''''''''''''''''''''''''''''''如果用户的输入超出指定的长度↓
If Len(txt(0).Text) > 12 Then
MsgBox "开户人姓名不得长于12位"
Exit Sub
ElseIf Len(txt(1).Text) > 12 Then
MsgBox "经办人姓名不得长于12位"
Exit Sub
ElseIf Len(txt(2).Text) > 25 Then
MsgBox "开户人身份证号码不得长于25位"
Exit Sub
ElseIf Len(txt(3).Text) > 25 Then
MsgBox "经办人身份证号码不得长于25位"
Exit Sub
ElseIf Len(txt(4).Text) > 50 Then
MsgBox "开户人住址不得长于50位"
Exit Sub
ElseIf Len(txt(5).Text) > 20 Then
MsgBox "开户人联系电话不得长于20位"
Exit Sub
ElseIf Len(txt(6).Text) > 20 Then
MsgBox "经办人联系电话不得长于12位"
Exit Sub
End If
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'给第三步的面板 frmOAA3 中的控件赋值↓
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
For i = 1 To 7
frmOAA3.txt(i).Text = txt(i - 1).Text
Next i
frmOAA3.txt(9).Text = Now
frmOAA3.txt(10).Text = userName
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'给第四步的面板 frmOAA4 中的变量赋值↓
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
frmOAA4.id = "C" + Format(nowTime, "yyyy") + Format(nowTime, "mm") + Format(nowTime, "dd") + Format(nowTime, "hh") + Format(nowTime, "nn") + Format(nowTime, "ss")
frmOAA4.userName = txt(0).Text
frmOAA4.deputizeName = txt(1).Text
frmOAA4.userStationID = txt(2).Text
frmOAA4.deputizeStationID = txt(3).Text
frmOAA4.userAddress = txt(4).Text
frmOAA4.userPhone = txt(5).Text
frmOAA4.deputizePhone = txt(6).Text
frmOAA4.procedurePerson = userName
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'给打印面板 frmPrintFinallyOAA 中的控制赋值↓
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
frmPrintFinallyOAA.lbl(1).Caption = frmOAA4.id
frmPrintFinallyOAA.lbl(2).Caption = txt(0).Text
frmPrintFinallyOAA.lbl(3).Caption = Now
frmPrintFinallyOAA.lbl(4).Caption = userName
frmPrintFinallyOAA.Hide
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'其它不规则的赋值↓
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
frmOAA3.txt(0).Text = frmOAA4.id
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
frmOAA3.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -