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

📄 frmdatadiskimport.frm

📁 自来水公司的一个管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmDatadiskImport 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "银行数据交换磁盘导入"
   ClientHeight    =   2595
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5565
   Icon            =   "frmDatadiskImport.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2595
   ScaleWidth      =   5565
   StartUpPosition =   1  '所有者中心
   Begin VB.Frame Frame1 
      BorderStyle     =   0  'None
      Height          =   1770
      Left            =   90
      TabIndex        =   1
      Top             =   30
      Width           =   5370
      Begin VB.TextBox txtYear 
         BackColor       =   &H8000000F&
         BorderStyle     =   0  'None
         Enabled         =   0   'False
         Height          =   255
         Left            =   1125
         TabIndex        =   3
         Text            =   "Text1"
         Top             =   105
         Width           =   720
      End
      Begin VB.TextBox txtMonth 
         BackColor       =   &H8000000F&
         BorderStyle     =   0  'None
         Enabled         =   0   'False
         Height          =   255
         Left            =   2175
         TabIndex        =   2
         Text            =   "Text1"
         Top             =   105
         Width           =   480
      End
      Begin MSComctlLib.ProgressBar ProgressBar1 
         Height          =   285
         Left            =   45
         TabIndex        =   4
         Top             =   1440
         Width           =   5265
         _ExtentX        =   9287
         _ExtentY        =   503
         _Version        =   393216
         Appearance      =   1
      End
      Begin VB.Label Label7 
         Caption         =   "年"
         Height          =   210
         Left            =   1950
         TabIndex        =   7
         Top             =   135
         Width           =   240
      End
      Begin VB.Label Label8 
         Caption         =   "月份银行交换数据"
         Height          =   210
         Left            =   2775
         TabIndex        =   6
         Top             =   135
         Width           =   1515
      End
      Begin VB.Label Label1 
         Caption         =   "正在导入"
         Height          =   210
         Left            =   270
         TabIndex        =   5
         Top             =   135
         Width           =   750
      End
      Begin VB.Line Line2 
         Index           =   0
         X1              =   1050
         X2              =   1860
         Y1              =   360
         Y2              =   360
      End
      Begin VB.Line Line2 
         Index           =   1
         X1              =   2175
         X2              =   2685
         Y1              =   360
         Y2              =   360
      End
   End
   Begin VB.CommandButton cmdCB 
      Caption         =   "确定"
      Height          =   420
      Index           =   0
      Left            =   4200
      TabIndex        =   0
      Top             =   1995
      Width           =   1065
   End
   Begin VB.Frame Frame2 
      BorderStyle     =   0  'None
      Caption         =   "Frame2"
      Height          =   1215
      Left            =   30
      TabIndex        =   8
      Top             =   60
      Width           =   5355
      Begin VB.Label Label2 
         Caption         =   "请将银行返回的数据软磁盘放入软盘驱动器内,按“确定”开始数据导入"
         Height          =   885
         Left            =   360
         TabIndex        =   9
         Top             =   240
         Width           =   4860
      End
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000003&
      Index           =   1
      X1              =   75
      X2              =   5430
      Y1              =   1875
      Y2              =   1875
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000005&
      Index           =   0
      X1              =   75
      X2              =   5445
      Y1              =   1890
      Y2              =   1890
   End
End
Attribute VB_Name = "frmDatadiskImport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdCB_Click(Index As Integer)
    Dim bytDiskFlag As Byte '表示软驱的当前状态 0:未发现,1:写保护 2:正常
    '首先检测软盘状态
    bytDiskFlag = DetectDiskState()
    If bytDiskFlag = 0 Then
        MsgBox "软磁盘未准备好,请检查", vbOKOnly + vbExclamation, "警告"
        Exit Sub
    ElseIf bytDiskFlag = 2 Then
        Frame1.Visible = True
        Frame2.Visible = False
        '开始读磁盘操作
        '
        '
        '
        '
        '
        '
        '
        'Unload Me
    End If
End Sub

Private Sub Form_Load()
    If CInt(Month(Date)) = 1 Then
        txtYear = Year(Date) - 1
        txtMonth = 12
    Else
        txtYear = Year(Date)
        txtMonth = Month(Date) - 1
    End If
    Frame1.Visible = False
    Frame2.Visible = True
End Sub

⌨️ 快捷键说明

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