📄 frmfixfetch2.frm
字号:
VERSION 5.00
Begin VB.Form frmFixFetch2
BackColor = &H00404040&
BorderStyle = 1 'Fixed Single
Caption = "定期取款:完成"
ClientHeight = 4065
ClientLeft = 45
ClientTop = 435
ClientWidth = 7875
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4065
ScaleWidth = 7875
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取 消"
Height = 345
Left = 4320
TabIndex = 14
Top = 3480
Width = 975
End
Begin VB.CommandButton cmdFinally
Caption = "完 成"
Default = -1 'True
Height = 345
Left = 2880
TabIndex = 10
Top = 3480
Width = 975
End
Begin VB.TextBox txt
Alignment = 2 'Center
Enabled = 0 'False
Height = 270
Index = 2
Left = 3000
TabIndex = 9
Top = 2760
Width = 2655
End
Begin VB.TextBox txt
Alignment = 2 'Center
Enabled = 0 'False
Height = 270
Index = 1
Left = 3000
TabIndex = 8
Top = 2160
Width = 2655
End
Begin VB.TextBox txt
Alignment = 2 'Center
Enabled = 0 'False
Height = 270
Index = 0
Left = 3000
TabIndex = 7
Top = 1560
Width = 2655
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 = 9
Left = 6000
TabIndex = 13
Top = 2880
Width = 465
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 = 8
Left = 5880
TabIndex = 12
Top = 2280
Width = 675
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 = 7
Left = 6000
TabIndex = 11
Top = 1680
Width = 465
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 = 6
Left = 2040
TabIndex = 6
Top = 2880
Width = 795
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 = 5
Left = 1800
TabIndex = 5
Top = 2280
Width = 1020
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 = 4
Left = 2280
TabIndex = 4
Top = 1680
Width = 570
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 = 1
Left = 2880
TabIndex = 3
Top = 720
Width = 2310
End
Begin VB.Line line
BorderColor = &H00FFFFFF&
BorderWidth = 2
Index = 1
X1 = 0
X2 = 7920
Y1 = 960
Y2 = 960
End
Begin VB.Label lbl
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Finally"
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 = 0
TabIndex = 2
Top = 360
Width = 840
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 = 3
Left = 7080
TabIndex = 1
Top = 360
Width = 675
End
Begin VB.Line line
BorderColor = &H00FFFFFF&
BorderWidth = 2
Index = 0
X1 = -120
X2 = 7800
Y1 = 600
Y2 = 600
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 = 3000
TabIndex = 0
Top = 240
Width = 1890
End
End
Attribute VB_Name = "frmFixFetch2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public theID As String
Public theMoney As Double
Public thePassTime As Double
Public theFAccrual As Double
Public theCAccrual As Double
'响应 "取消" 铵钮
Private Sub cmdCancel_Click()
Unload Me
End Sub
'响应 "完成" 按钮
Private Sub cmdFinally_Click()
Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
con.Open
con.Execute "update FConsumers set be='0',fetchDate='" & Now & "' where id='" & theID & "'"
con.Close
MsgBox "取款成功"
Unload Me
End Sub
Private Sub Form_Load()
Dim lastTime As Double
Dim nowTime As Double
Dim nowPassTime As Double
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'显示出当前用户此时进行取款时的信息↓
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
MsgBox theID
lastTime = CDbl(Mid(theID, 2, 4)) * 12 + CDbl(Mid(theID, 6, 2))
nowTime = CDbl(Format(Now, "yyyy")) * 12 + CDbl(Format(Now, "mm"))
nowPassTime = (nowTime - lastTime) / 12
If nowPassTime > thePassTime Then
txt(0).Text = theMoney
txt(1).Text = theMoney * (theFAccrual / 100 * thePassTime)
txt(2).Text = theMoney * (1 + (theFAccrual / 100 * thePassTime))
Else
MsgBox "由于时间款到,所以利息只能按活期计算"
txt(0).Text = theMoney
txt(1).Text = theMoney * (theCAccrual / 100 * thePassTime)
txt(2).Text = theMoney * (1 + (theCAccrual / 100 * thePassTime))
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -