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

📄 quanxian.frm

📁 商品进销存商品进销存商品进销存商品进销存商品进销存商品进销存
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form quanxian 
   Caption         =   "权限管理"
   ClientHeight    =   6555
   ClientLeft      =   3870
   ClientTop       =   2700
   ClientWidth     =   8040
   LinkTopic       =   "Form1"
   ScaleHeight     =   6555
   ScaleWidth      =   8040
   Begin VB.CheckBox check1 
      Caption         =   "库存信息管理设置"
      Height          =   495
      Index           =   4
      Left            =   5040
      TabIndex        =   11
      Top             =   3840
      Width           =   1935
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   615
      Left            =   240
      Top             =   5520
      Width           =   2040
      _ExtentX        =   3598
      _ExtentY        =   1085
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=wanghe"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=wanghe"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "qxsz"
      Caption         =   "Adodc2"
      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 MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   480
      Top             =   240
      Width           =   2160
      _ExtentX        =   3810
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=wanghe"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=wanghe"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "qxsz"
      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 Command4 
      Caption         =   "退出"
      Height          =   615
      Left            =   6480
      TabIndex        =   10
      Top             =   5520
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "确定"
      Height          =   615
      Left            =   5160
      TabIndex        =   9
      Top             =   5520
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "全不选"
      Height          =   615
      Left            =   3720
      TabIndex        =   8
      Top             =   5520
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "全选"
      Height          =   615
      Left            =   2520
      TabIndex        =   7
      Top             =   5520
      Width           =   975
   End
   Begin VB.CheckBox check1 
      Caption         =   "销售信息管理设置"
      Height          =   495
      Index           =   3
      Left            =   5040
      TabIndex        =   6
      Top             =   3120
      Width           =   1935
   End
   Begin VB.CheckBox check1 
      Caption         =   "进货信息管理设置"
      Height          =   495
      Index           =   2
      Left            =   5040
      TabIndex        =   5
      Top             =   2640
      Width           =   2175
   End
   Begin VB.CheckBox check1 
      Caption         =   "基本信息设置"
      Height          =   495
      Index           =   1
      Left            =   5040
      TabIndex        =   4
      Top             =   2040
      Width           =   1575
   End
   Begin VB.CheckBox check1 
      Caption         =   "系统设置"
      Height          =   495
      Index           =   0
      Left            =   5040
      TabIndex        =   3
      Top             =   1440
      Width           =   1215
   End
   Begin VB.Frame Frame2 
      Caption         =   "Frame2"
      Height          =   3975
      Left            =   2640
      TabIndex        =   2
      Top             =   1080
      Width           =   4815
      Begin VB.Image Image1 
         Height          =   1920
         Left            =   120
         Picture         =   "quanxian.frx":0000
         Top             =   1080
         Width           =   1920
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   4095
      Left            =   360
      TabIndex        =   0
      Top             =   960
      Width           =   1935
      Begin MSDataListLib.DataList DataList1 
         Bindings        =   "quanxian.frx":351A
         Height          =   3210
         Left            =   240
         TabIndex        =   1
         Top             =   480
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   5662
         _Version        =   393216
         ListField       =   "用户"
         BoundColumn     =   "用户"
      End
   End
End
Attribute VB_Name = "quanxian"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer



Private Sub Command1_Click()
For i = 0 To 4
    check1(i).Value = 1
Next i

End Sub

Private Sub Command2_Click()
For i = 0 To 4
    check1(i).Value = 0
Next i
End Sub

Private Sub Command3_Click()
If DataList1.SelectedItem Then
    Adodc2.RecordSource = "select * from qxsz where 用户='" & DataList1.BoundText & " ' "
    Adodc2.Refresh
    If Adodc2.Recordset.RecordCount > 0 Then
        For i = 0 To 4
            If check1(i).Value = 1 Then Adodc2.Recordset.Fields(i) = 0 Else Adodc2.Recordset.Fields(i) = 1
        Next i
        Adodc2.Recordset.Update
    End If
    MsgBox "设置权限已完成!"
Else
    MsgBox "请选择用户!"
End If

End Sub

Private Sub Command4_Click()
End

End Sub

Private Sub DataList1_Click()
Adodc2.RecordSource = "select * from qxsz where 用户='" & Trim(DataList1.BoundText) & " ' "
Adodc2.Refresh
If Adodc2.Recordset.RecordCount > 0 Then
    For i = 0 To 4
        If Adodc1.Recordset.Fields(i) = 0 Then check1(i).Value = 1 Else check1(i).Value = 0
    Next i
    Adodc2.Recordset.Update
End If

End Sub

Private Sub Form_Load()
For i = 0 To 4
    check1(i).Value = 1
Next i

End Sub

⌨️ 快捷键说明

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