⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmfixfetch2.frm

📁 本需求规格说明书是为了开发《飞机订票系统》而编写的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmFixFetch2 
   BackColor       =   &H80000007&
   ClientHeight    =   2805
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4395
   LinkTopic       =   "Form1"
   ScaleHeight     =   2805
   ScaleWidth      =   4395
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox txt 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Index           =   0
      Left            =   1440
      TabIndex        =   4
      Top             =   120
      Width           =   2655
   End
   Begin VB.TextBox txt 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Index           =   1
      Left            =   1440
      TabIndex        =   3
      Top             =   720
      Width           =   2655
   End
   Begin VB.TextBox txt 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Index           =   2
      Left            =   1440
      TabIndex        =   2
      Top             =   1320
      Width           =   2655
   End
   Begin VB.CommandButton cmdFinally 
      Caption         =   "完 成"
      Default         =   -1  'True
      Height          =   345
      Left            =   1320
      TabIndex        =   1
      Top             =   2040
      Width           =   975
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   345
      Left            =   2760
      TabIndex        =   0
      Top             =   2040
      Width           =   975
   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            =   720
      TabIndex        =   7
      Top             =   240
      Width           =   570
   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            =   240
      TabIndex        =   6
      Top             =   840
      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           =   6
      Left            =   480
      TabIndex        =   5
      Top             =   1440
      Width           =   795
   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 + -