📄 frm_fk.frm
字号:
VERSION 5.00
Begin VB.Form frm_fk
Caption = "付款"
ClientHeight = 2745
ClientLeft = 60
ClientTop = 345
ClientWidth = 4005
ControlBox = 0 'False
LinkTopic = "Form1"
ScaleHeight = 2745
ScaleWidth = 4005
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消[&C]"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 2685
TabIndex = 2
Top = 2265
Width = 990
End
Begin VB.CommandButton Command1
Caption = "确定[&S]"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
Left = 1560
TabIndex = 1
Top = 2235
Width = 990
End
Begin VB.Frame Frame1
Height = 1935
Left = 285
TabIndex = 3
Top = 180
Width = 3405
Begin VB.TextBox txt_num
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 1755
TabIndex = 0
Text = "Text1"
Top = 1275
Width = 1425
End
Begin VB.Label lab_ye
BorderStyle = 1 'Fixed Single
Caption = "Label2"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 1170
TabIndex = 8
Top = 795
Width = 960
End
Begin VB.Label lab_total
BorderStyle = 1 'Fixed Single
Caption = "Label2"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 1170
TabIndex = 7
Top = 285
Width = 960
End
Begin VB.Label lab_fs
AutoSize = -1 'True
Caption = "支付方式:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 2
Left = 390
TabIndex = 6
Top = 1335
Width = 1200
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "余额:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 1
Left = 390
TabIndex = 5
Top = 810
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "总额:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 0
Left = 390
TabIndex = 4
Top = 330
Width = 720
End
End
End
Attribute VB_Name = "frm_fk"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public n As Integer
Private Sub Command1_Click()
If n = 0 Then
If Val(txt_num.text) > frm_account.Label6 Then
MsgBox "支付金额大于余额", vbExclamation, "警告"
txt_num.text = frm_account.Label6
Exit Sub
End If
Else
If Val(txt_num.text) > Val(lab_ye.Caption) Then
MsgBox "支付金额大于余额", vbExclamation, "警告"
txt_num.text = lab_ye.Caption
Exit Sub
End If
End If
frm_account.Text1(n).text = Format(Val(frm_account.Text1(n).text) + Val(Trim(txt_num.text)), "0.0")
frm_account.lab_ye = Format(Val(frm_account.lab_ye) - Val(txt_num.text), "0.0")
Unload Me
End Sub
Private Sub Command2_Click()
frm_account.Check2(n).Value = 0
frmMain.Timer1.Enabled = True
Unload Me
End Sub
Private Sub Form_Load()
frmMain.Timer1.Enabled = False
Select Case n
Case 0
lab_fs(2).Caption = " 免服务费:"
Case 1
lab_fs(2).Caption = " 现金支付:"
Case 2
lab_fs(2).Caption = "会 员 卡:"
Case 3
lab_fs(2).Caption = "信用卡支付:"
Case 4
lab_fs(2).Caption = " 优惠减免:"
Case 5
lab_fs(2).Caption = " 签免金额:"
Case 6
lab_fs(2).Caption = " 挂帐金额:"
Case 7
lab_fs(2).Caption = " 其它支付:"
End Select
lab_total.Caption = frm_account.lab_total
lab_ye.Caption = frm_account.lab_ye
txt_num.text = Format(frm_account.lab_ye, "0.0")
If n = 0 Then
txt_num.text = frm_account.Label6
End If
SendKeys "{Home}+{End}"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -