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

📄 frmfixdeposit2.frm

📁 本需求规格说明书是为了开发《飞机订票系统》而编写的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmFixDeposit2 
   BackColor       =   &H80000007&
   Caption         =   "Form1"
   ClientHeight    =   2790
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7710
   LinkTopic       =   "Form1"
   ScaleHeight     =   2790
   ScaleWidth      =   7710
   StartUpPosition =   3  '窗口缺省
   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          =   270
      Index           =   0
      Left            =   1200
      TabIndex        =   8
      Top             =   120
      Width           =   2775
   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          =   270
      Index           =   1
      Left            =   4920
      TabIndex        =   7
      Top             =   120
      Width           =   2655
   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          =   270
      Index           =   2
      Left            =   1200
      TabIndex        =   6
      Top             =   600
      Width           =   6375
   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          =   270
      Index           =   3
      Left            =   1200
      TabIndex        =   5
      Top             =   1080
      Width           =   6375
   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          =   270
      Index           =   4
      Left            =   1200
      TabIndex        =   4
      Top             =   1560
      Width           =   2775
   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          =   270
      Index           =   5
      Left            =   4920
      TabIndex        =   3
      Top             =   1560
      Width           =   2655
   End
   Begin VB.CommandButton cmdBack 
      Caption         =   "上一步"
      Height          =   345
      Left            =   2280
      TabIndex        =   2
      Top             =   2280
      Width           =   975
   End
   Begin VB.CommandButton cmdNext 
      Caption         =   "下一步"
      Default         =   -1  'True
      Height          =   345
      Left            =   3480
      TabIndex        =   1
      Top             =   2280
      Width           =   975
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   345
      Left            =   4680
      TabIndex        =   0
      Top             =   2280
      Width           =   975
   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           =   4
      Left            =   120
      TabIndex        =   14
      Top             =   240
      Width           =   525
   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           =   5
      Left            =   120
      TabIndex        =   13
      Top             =   720
      Width           =   945
   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           =   6
      Left            =   4320
      TabIndex        =   12
      Top             =   240
      Width           =   525
   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           =   7
      Left            =   120
      TabIndex        =   11
      Top             =   1200
      Width           =   525
   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           =   8
      Left            =   4320
      TabIndex        =   10
      Top             =   1680
      Width           =   525
   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           =   10
      Left            =   120
      TabIndex        =   9
      Top             =   1680
      Width           =   525
   End
End
Attribute VB_Name = "frmFixDeposit2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim nowTime As String
Dim FetchTime As String

Private Sub cmdBack_Click()
    Unload Me
    frmFixDeposit1.Show
End Sub

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdNext_Click()
    nowTime = Now
    FetchTime = nowTime
    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位英文或6位中文", vbExclamation, "提示"
        Exit Sub
    End If
    If Len(txt(1).Text) > 20 Then
        MsgBox "电话号码不得长于20位", vbExclamation, "提示"
        Exit Sub
    End If
    If Len(txt(2).Text) > 25 Then
        MsgBox "身份证号码不得长于25位", vbExclamation, "提示"
        Exit Sub
    End If
    If Len(txt(3).Text) > 50 Then
        MsgBox "住址不得50个英文或25个中文", vbExclamation, "提示"
        Exit Sub
    End If
    If Len(txt(4).Text) > 8 Then
        MsgBox "金额不得大于8位", vbExclamation, "提示"
        Exit Sub
    End If
    If Len(txt(5).Text) > 2 Then
        MsgBox "存期不得长于2位", vbExclamation, "提示"
        Exit Sub
    End If
    Dim theMoney As Double
    Dim errMoney As Boolean
    errMoney = True
    On Error GoTo err2
    theMoney = CDbl(txt(4).Text)
    errMoney = False
err2:
    If errMoney Then
        MsgBox "请确存款金额为数字", vbExclamation, "提示"
        Exit Sub
    End If
    Dim theDate As Double
    Dim errDate As Boolean
    errDate = True
    On Error GoTo err1
    theDate = CDbl(txt(5).Text)
    errDate = False
err1:
    If errDate Then
        MsgBox "请确存期为数字", vbExclamation, "提示"
        Exit Sub
    End If
    frmFixDeposit3.txt(0).Text = "F" + Format(nowTime, "yyyy") + Format(nowTime, "mm") + Format(nowTime, "dd") + Format(nowTime, "hh") + Format(nowTime, "nn") + Format(nowTime, "ss")
    For i = 0 To 5
        frmFixDeposit3.txt(i + 1).Text = frmFixDeposit2.txt(i).Text
    Next i
    Mid(FetchTime, 1, 4) = (CDbl(frmFixDeposit2.txt(5).Text) + CDbl(Format(nowTime, "yyyy")))
    frmFixDeposit3.txt(7).Text = nowTime
    If CDbl(txt(5).Text) = 1 Then
        frmFixDeposit3.txt(8).Text = percentage1
    ElseIf CDbl(txt(5).Text) = 2 Then
        frmFixDeposit3.txt(8).Text = percentage2
    ElseIf CDbl(txt(5).Text) >= 3 And CDbl(txt(5).Text) < 5 Then
        frmFixDeposit3.txt(8).Text = percentage3
    ElseIf CDbl(txt(5).Text) >= 5 And CDbl(txt(5).Text) < 8 Then
        frmFixDeposit3.txt(8).Text = percentage5
    ElseIf CDbl(txt(5).Text) >= 8 Then
        frmFixDeposit3.txt(8).Text = percentage8
    End If
    frmFixDeposit3.txt(9).Text = FetchTime
    frmFixDeposit3.txt(10).Text = userName
    frmFixDeposit4.theNowTime = nowTime
    ''''''''''''''''''''''''''''''''''''''''''''''
    Unload Me
    frmFixDeposit3.Show
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -