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

📄 frmdataclear.frm

📁 传销工资管理 请验证一下哈
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Begin VB.Form frmDataClear 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "数据清理"
   ClientHeight    =   4500
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8220
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4500
   ScaleWidth      =   8220
   StartUpPosition =   2  '屏幕中心
   Begin ComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   855
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   8220
      _ExtentX        =   14499
      _ExtentY        =   1508
      ButtonWidth     =   1455
      ButtonHeight    =   1349
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   327682
      BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7} 
         NumButtons      =   4
         BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "清理(&C)"
            Key             =   "Clear"
            Object.ToolTipText     =   "清理"
            Object.Tag             =   ""
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Object.Tag             =   ""
            Style           =   3
         EndProperty
         BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Object.Tag             =   ""
            Style           =   3
         EndProperty
         BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "退出(&X)"
            Key             =   "Close"
            Object.ToolTipText     =   "退出"
            Object.Tag             =   ""
            ImageIndex      =   2
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame2 
      Caption         =   "选择数据表"
      ForeColor       =   &H00FF0000&
      Height          =   2055
      Left            =   240
      TabIndex        =   6
      Top             =   1920
      Width           =   7695
      Begin VB.Frame Frame6 
         Height          =   1575
         Left            =   5760
         TabIndex        =   20
         Top             =   240
         Width           =   1695
         Begin VB.CheckBox Check12 
            Caption         =   "权限等级设置"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   22
            Top             =   720
            Width           =   1455
         End
         Begin VB.CheckBox Check11 
            Caption         =   "权限设置"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   21
            Top             =   240
            Width           =   1215
         End
      End
      Begin VB.Frame Frame5 
         Height          =   1575
         Left            =   3960
         TabIndex        =   13
         Top             =   240
         Width           =   1695
         Begin VB.CheckBox Check10 
            Caption         =   "员工资料报表"
            ForeColor       =   &H00FF0000&
            Height          =   255
            Left            =   120
            TabIndex        =   16
            Top             =   1200
            Width           =   1455
         End
         Begin VB.CheckBox Check9 
            Caption         =   "员工资料"
            ForeColor       =   &H00FF0000&
            Height          =   255
            Left            =   120
            TabIndex        =   15
            Top             =   720
            Width           =   1455
         End
         Begin VB.CheckBox Check8 
            Caption         =   "员工详细资料"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   14
            Top             =   240
            Width           =   1455
         End
      End
      Begin VB.Frame Frame4 
         Height          =   1575
         Left            =   1800
         TabIndex        =   10
         Top             =   240
         Width           =   2055
         Begin VB.CheckBox Check7 
            Caption         =   "购货清单明细历史"
            ForeColor       =   &H00FF0000&
            Height          =   300
            Left            =   120
            TabIndex        =   19
            Top             =   1200
            Width           =   1815
         End
         Begin VB.CheckBox Check5 
            Caption         =   "购货清单历史"
            ForeColor       =   &H00FF0000&
            Height          =   255
            Left            =   120
            TabIndex        =   18
            Top             =   520
            Width           =   1575
         End
         Begin VB.CheckBox Check6 
            Caption         =   "购货清单明细"
            ForeColor       =   &H00FF0000&
            Height          =   300
            Left            =   120
            TabIndex        =   12
            Top             =   840
            Width           =   1455
         End
         Begin VB.CheckBox Check4 
            Caption         =   "购货清单"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   11
            Top             =   240
            Width           =   1215
         End
      End
      Begin VB.Frame Frame3 
         Height          =   1575
         Left            =   240
         TabIndex        =   7
         Top             =   240
         Width           =   1455
         Begin VB.CheckBox Check3 
            Caption         =   "货品资料"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   17
            Top             =   1200
            Width           =   1215
         End
         Begin VB.CheckBox Check2 
            Caption         =   "文化程度"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   9
            Top             =   720
            Width           =   1215
         End
         Begin VB.CheckBox Check1 
            Caption         =   "存折种类"
            ForeColor       =   &H00FF0000&
            Height          =   180
            Left            =   120
            TabIndex        =   8
            Top             =   240
            Width           =   1215
         End
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "选择清理方式"
      ForeColor       =   &H00FF0000&
      Height          =   855
      Left            =   240
      TabIndex        =   3
      Top             =   960
      Width           =   7695
      Begin VB.OptionButton Option2 
         Caption         =   "选择清理"
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   4560
         TabIndex        =   5
         Top             =   240
         Width           =   1335
      End
      Begin VB.OptionButton Option1 
         Caption         =   "全部清理"
         ForeColor       =   &H00FF0000&
         Height          =   180
         Left            =   1320
         TabIndex        =   4
         Top             =   360
         Value           =   -1  'True
         Width           =   1815
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   3720
      Top             =   4200
      Visible         =   0   'False
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton cmdClose 
      Caption         =   "退出"
      Height          =   375
      Left            =   2400
      TabIndex        =   2
      Top             =   4080
      Visible         =   0   'False
      Width           =   975
   End
   Begin VB.CommandButton cmdClear 
      Caption         =   "清理"
      Height          =   375
      Left            =   1200
      TabIndex        =   1
      Top             =   4080
      Visible         =   0   'False
      Width           =   975
   End
   Begin ComctlLib.ImageList ImageList1 
      Left            =   0
      Top             =   4080
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   2
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmDataClear.frx":0000
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmDataClear.frx":031A
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "frmDataClear"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim Cmd As New ADODB.Command

Sub DataClear()
  Dim Sql As String
  
  If Check1.Value = 1 Then
     Sql = "delete * from 存折种类"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check2.Value = 1 Then
     Sql = "delete * from 文化程度"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check3.Value = 1 Then
     Sql = "delete * from 货品资料"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check4.Value = 1 Then
     Sql = "delete * from 购货清单"
     Cmd.CommandText = Sql
     Cmd.Execute ""
  End If
  
  If Check5.Value = 1 Then
     Sql = "delete * from 购货清单历史"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check6.Value = 1 Then
     Sql = "delete * from 购货清单明细"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check7.Value = 1 Then
     Sql = "delete * from 购货清单明细历史"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check8.Value = 1 Then
     Sql = "delete * from 员工详细资料"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check9.Value = 1 Then
     Sql = "delete * from 员工资料"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check10.Value = 1 Then
     Sql = "delete * from 权限设置 where 权限等级名称<> '系统管理员'"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
  
  If Check11.Value = 1 Then
     Sql = "delete * from 权限等级设置 where 权限等级名称<> '系统管理员'"
     Cmd.CommandText = Sql
     Cmd.Execute
  End If
End Sub

Private Sub cmdClear_Click()
  If Option1.Value = True Then
     Check1.Value = 1
     Check2.Value = 1
     Check3.Value = 1
     Check4.Value = 1
     Check5.Value = 1
     Check6.Value = 1
     Check7.Value = 1
     Check8.Value = 1
     Check9.Value = 1
     Check10.Value = 1
     Check11.Value = 1
     
     Call DataClear
     
     MsgBox "数据全部清理完毕!"
  End If
  
  If Option2.Value = True Then
     Call DataClear
     
     MsgBox "选择数据清理完毕!"
  End If
  
End Sub

Private Sub cmdClose_Click()
  Unload Me
End Sub

Private Sub Form_Load()
  Dim ConnStr As String
   
  ConnStr = "Provider=Microsoft.Jet.OLEDB.3.51;Data Source=c:\system\database\system.mdb"
  Conn.Open ConnStr
  Set Cmd.ActiveConnection = Conn
  
  Option1.Value = True
  Option2.Value = False
  
  Frame2.Visible = False
  
  frmDataClear.Height = 3000
End Sub

Private Sub Form_Unload(Cancel As Integer)
  Conn.Close
End Sub

Private Sub Option1_Click()
  If Option1.Value = True Then
     frmDataClear.Height = 3000
     Frame2.Visible = False
  End If
End Sub

Private Sub Option2_Click()
  If Option2.Value = True Then
     frmDataClear.Height = 4875
     Frame2.Visible = True
  End If
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
  Select Case Button.Key
  Case "Clear"
    cmdClear_Click
  Case "Close"
    cmdClose_Click
  End Select
End Sub

⌨️ 快捷键说明

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