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

📄 datatools.frm

📁 适合乡镇供电所使用电费处理系统v3 软件
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form DataTools 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "数据库实用工具"
   ClientHeight    =   4305
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5775
   Icon            =   "DataTools.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4305
   ScaleWidth      =   5775
   Begin VB.CommandButton Command2 
      Caption         =   "帮助(&H)"
      Height          =   375
      Left            =   4605
      TabIndex        =   18
      Top             =   3825
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "说明"
      Height          =   3255
      Left            =   90
      TabIndex        =   3
      Top             =   480
      Width           =   5580
      Begin VB.Frame Frame2 
         Height          =   3255
         Left            =   0
         TabIndex        =   10
         Top             =   0
         Width           =   5580
         Begin VB.OptionButton Option1 
            Caption         =   "重排表号"
            ForeColor       =   &H00000080&
            Height          =   180
            Index           =   1
            Left            =   4080
            TabIndex        =   20
            Top             =   285
            Width           =   1185
         End
         Begin VB.CheckBox Check3 
            Caption         =   "全部"
            Height          =   255
            Left            =   165
            TabIndex        =   17
            Top             =   2820
            Width           =   1725
         End
         Begin VB.Frame Frame3 
            Height          =   2115
            Index           =   0
            Left            =   2190
            TabIndex        =   14
            Top             =   495
            Width           =   3300
            Begin VB.OptionButton Option2 
               Caption         =   "Option2"
               Height          =   210
               Index           =   1
               Left            =   285
               TabIndex        =   22
               Top             =   1290
               Width           =   2790
            End
            Begin VB.OptionButton Option2 
               Caption         =   "Option2"
               Height          =   450
               Index           =   0
               Left            =   285
               TabIndex        =   21
               Top             =   810
               Value           =   -1  'True
               Width           =   2670
            End
            Begin VB.ComboBox Combo2 
               Height          =   300
               Left            =   2025
               Style           =   2  'Dropdown List
               TabIndex        =   16
               Top             =   420
               Width           =   1215
            End
            Begin VB.ComboBox Combo1 
               Height          =   300
               Left            =   75
               Style           =   2  'Dropdown List
               TabIndex        =   15
               Top             =   420
               Width           =   1260
            End
            Begin VB.Label Label6 
               Caption         =   "替换月份数据"
               Height          =   165
               Left            =   2130
               TabIndex        =   24
               Top             =   195
               Width           =   990
            End
            Begin VB.Label Label5 
               Caption         =   "上次月份数据"
               Height          =   195
               Left            =   150
               TabIndex        =   23
               Top             =   195
               Width           =   1125
            End
            Begin VB.Image Image2 
               Height          =   480
               Left            =   1440
               Picture         =   "DataTools.frx":030A
               Top             =   315
               Width           =   480
            End
         End
         Begin VB.OptionButton Option1 
            Caption         =   "数据转移"
            ForeColor       =   &H000000FF&
            Height          =   180
            Index           =   0
            Left            =   2340
            TabIndex        =   13
            Top             =   270
            Value           =   -1  'True
            Width           =   1185
         End
         Begin MSComctlLib.ProgressBar ProgressBar1 
            Height          =   270
            Left            =   2235
            TabIndex        =   12
            Top             =   2685
            Width           =   3285
            _ExtentX        =   5794
            _ExtentY        =   476
            _Version        =   393216
            Appearance      =   0
         End
         Begin VB.ListBox List1 
            Height          =   2400
            Left            =   135
            MultiSelect     =   1  'Simple
            TabIndex        =   11
            Top             =   225
            Width           =   1965
         End
         Begin MSComctlLib.ProgressBar ProgressBar2 
            Height          =   255
            Left            =   2235
            TabIndex        =   19
            Top             =   2940
            Width           =   3285
            _ExtentX        =   5794
            _ExtentY        =   450
            _Version        =   393216
            Appearance      =   0
         End
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00C00000&
         Height          =   315
         IMEMode         =   3  'DISABLE
         Left            =   360
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   720
         Width           =   4575
      End
      Begin VB.CheckBox Check1 
         Caption         =   "数据库加密"
         Height          =   255
         Left            =   3480
         TabIndex        =   4
         Top             =   2400
         Value           =   2  'Grayed
         Width           =   1575
      End
      Begin VB.Image Image1 
         Height          =   480
         Left            =   240
         Picture         =   "DataTools.frx":0614
         Top             =   240
         Width           =   480
      End
      Begin VB.Label Label4 
         Caption         =   "    加密数据在某些情况下会保护数据库不会受到其他人的恶意损坏,但要注意请您记劳密码!"
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   840
         TabIndex        =   9
         Top             =   1200
         Width           =   4095
      End
      Begin VB.Label Label3 
         Caption         =   $"DataTools.frx":091E
         ForeColor       =   &H00FF0000&
         Height          =   855
         Left            =   720
         TabIndex        =   8
         Top             =   720
         Width           =   4335
      End
      Begin VB.Label Label1 
         Caption         =   $"DataTools.frx":09D8
         ForeColor       =   &H00FF0000&
         Height          =   975
         Left            =   720
         TabIndex        =   7
         Top             =   720
         Width           =   4335
      End
      Begin VB.Label Label2 
         Caption         =   "密码(密钥限定为20位)"
         ForeColor       =   &H00000000&
         Height          =   255
         Left            =   360
         TabIndex        =   6
         Top             =   360
         Width           =   2175
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "开始(&S)"
      Height          =   375
      Left            =   1965
      TabIndex        =   2
      Top             =   3840
      Width           =   1095
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   0
      Top             =   3705
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   4
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "DataTools.frx":0A80
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "DataTools.frx":175A
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "DataTools.frx":1CF4
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "DataTools.frx":208E
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton cmd_close 
      Caption         =   "取消(&C)"
      Height          =   375
      Left            =   3300
      TabIndex        =   1
      Top             =   3840
      Width           =   1095
   End
   Begin MSComctlLib.TabStrip TabStrip1 
      Height          =   3615
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5535
      _ExtentX        =   9763
      _ExtentY        =   6376
      MultiRow        =   -1  'True
      Style           =   1
      HotTracking     =   -1  'True
      Separators      =   -1  'True
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
         NumTabs         =   4
         BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "压缩数据库"
            Key             =   "compact_data"
            Object.ToolTipText     =   "压缩数据库"
            ImageVarType    =   2
            ImageIndex      =   1
         EndProperty
         BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "修复数据库"
            Key             =   "repair_data"
            Object.ToolTipText     =   "修复数据库"
            ImageVarType    =   2
            ImageIndex      =   2
         EndProperty
         BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "工具选项"
            Key             =   "ToolOption"
            Object.ToolTipText     =   "工具选项"
            ImageVarType    =   2
            ImageIndex      =   3
         EndProperty
         BeginProperty Tab4 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "转移排序"
            ImageVarType    =   2
            ImageIndex      =   4
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "DataTools"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim RegCode As String

Private Sub Check3_Click()
   Dim i As Integer
   If Check3.Value Then
      Check3.Caption = "部分"
      If List1.ListCount <> 0 Then
         For i = 0 To List1.ListCount - 1
             List1.Selected(i) = True
         Next
         List1.ListIndex = 0
      End If
   Else
      Check3.Caption = "全部"
      If List1.ListCount <> 0 Then
         For i = 0 To List1.ListCount - 1
             List1.Selected(i) = False
         Next
         List1.ListIndex = 0
      End If
   End If
End Sub

Private Sub Combo2_Click()
   If Val(Left(Combo2.Text, 2)) > Val(Left(Combo1.Text, 2)) Then
      Option2(0).Caption = "只覆盖未抄示数的用户"
      Option2(1).Caption = "完全覆盖" & Combo2.Text
   Else
      MsgBox "替换的月份必须大于上次月份!", vbCritical
      Combo1.Text = Format(Month(Date) - 1, "0#月份数据")
      Combo2.Text = Format(Month(Date), "0#月份数据")
      Exit Sub
   End If
End Sub

⌨️ 快捷键说明

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