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

📄 frmmutex.frm

📁 一个用VB写的财务软件源码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmMutex 
   Caption         =   "互斥功能维护"
   ClientHeight    =   6150
   ClientLeft      =   165
   ClientTop       =   405
   ClientWidth     =   7950
   Icon            =   "frmMutex.frx":0000
   LinkTopic       =   "Form2"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   ScaleHeight     =   6150
   ScaleWidth      =   7950
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox Picture2 
      Height          =   5700
      Left            =   3600
      ScaleHeight     =   5640
      ScaleWidth      =   4095
      TabIndex        =   8
      Top             =   240
      Width           =   4155
      Begin VB.CommandButton cmdUnSelect 
         Height          =   400
         Left            =   2730
         Picture         =   "frmMutex.frx":0442
         Style           =   1  'Graphical
         TabIndex        =   16
         Top             =   3000
         Width           =   450
      End
      Begin VB.CommandButton cmdSelect 
         Height          =   400
         Left            =   840
         Picture         =   "frmMutex.frx":059C
         Style           =   1  'Graphical
         TabIndex        =   15
         Top             =   3000
         Width           =   450
      End
      Begin VB.Frame Frame4 
         Height          =   2150
         Left            =   120
         TabIndex        =   13
         Top             =   3390
         Width           =   3855
         Begin MSComctlLib.ListView lvw 
            Height          =   1575
            Left            =   120
            TabIndex        =   17
            Top             =   480
            Width           =   3615
            _ExtentX        =   6376
            _ExtentY        =   2778
            View            =   3
            LabelEdit       =   1
            Sorted          =   -1  'True
            MultiSelect     =   -1  'True
            LabelWrap       =   0   'False
            HideSelection   =   0   'False
            AllowReorder    =   -1  'True
            FullRowSelect   =   -1  'True
            GridLines       =   -1  'True
            _Version        =   393217
            ForeColor       =   -2147483640
            BackColor       =   -2147483643
            Appearance      =   1
            NumItems        =   0
         End
         Begin VB.Label Label5 
            AutoSize        =   -1  'True
            Caption         =   "已经选中的互斥菜单"
            Height          =   180
            Left            =   120
            TabIndex        =   14
            Top             =   260
            Width           =   1620
         End
      End
      Begin VB.Frame Frame2 
         Height          =   2910
         Left            =   120
         TabIndex        =   9
         Top             =   0
         Width           =   3855
         Begin VB.ComboBox cboSub2 
            Height          =   300
            Left            =   120
            Style           =   2  'Dropdown List
            TabIndex        =   10
            Top             =   480
            Width           =   3630
         End
         Begin MSComctlLib.ListView lvw1 
            Height          =   1575
            Left            =   120
            TabIndex        =   18
            Top             =   1200
            Width           =   3615
            _ExtentX        =   6376
            _ExtentY        =   2778
            View            =   3
            LabelEdit       =   1
            MultiSelect     =   -1  'True
            LabelWrap       =   0   'False
            HideSelection   =   0   'False
            AllowReorder    =   -1  'True
            FullRowSelect   =   -1  'True
            GridLines       =   -1  'True
            _Version        =   393217
            ForeColor       =   -2147483640
            BackColor       =   -2147483643
            Appearance      =   1
            NumItems        =   0
         End
         Begin VB.Label Label4 
            AutoSize        =   -1  'True
            Caption         =   "互斥的功能菜单项目"
            Height          =   180
            Left            =   120
            TabIndex        =   12
            Top             =   960
            Width           =   1620
         End
         Begin VB.Label Label2 
            AutoSize        =   -1  'True
            Caption         =   "互斥的子系统名"
            Height          =   180
            Left            =   120
            TabIndex        =   11
            Top             =   240
            Width           =   1260
         End
      End
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出"
      Height          =   375
      Left            =   2175
      TabIndex        =   2
      Top             =   5565
      Width           =   975
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "保存"
      Height          =   375
      Left            =   435
      TabIndex        =   1
      Top             =   5565
      Width           =   975
   End
   Begin VB.PictureBox Picture1 
      Height          =   5220
      Left            =   195
      ScaleHeight     =   5160
      ScaleWidth      =   3135
      TabIndex        =   0
      Top             =   240
      Width           =   3195
      Begin VB.ComboBox cboSub1 
         Height          =   300
         ItemData        =   "frmMutex.frx":06F6
         Left            =   120
         List            =   "frmMutex.frx":06F8
         Style           =   2  'Dropdown List
         TabIndex        =   6
         Top             =   360
         Width           =   2920
      End
      Begin VB.Frame Frame1 
         Height          =   4335
         Left            =   120
         TabIndex        =   3
         Top             =   720
         Width           =   2895
         Begin MSComctlLib.ListView lvwMenu 
            Height          =   3615
            Left            =   120
            TabIndex        =   19
            Top             =   600
            Width           =   2655
            _ExtentX        =   4683
            _ExtentY        =   6376
            View            =   3
            LabelEdit       =   1
            LabelWrap       =   0   'False
            HideSelection   =   0   'False
            FullRowSelect   =   -1  'True
            GridLines       =   -1  'True
            _Version        =   393217
            ForeColor       =   -2147483640
            BackColor       =   -2147483643
            BorderStyle     =   1
            Appearance      =   1
            NumItems        =   0
         End
         Begin VB.TextBox txtName 
            Height          =   270
            Left            =   960
            TabIndex        =   4
            Top             =   240
            Width           =   1815
         End
         Begin VB.Label Label3 
            AutoSize        =   -1  'True
            Caption         =   "功能菜单"
            Height          =   180
            Left            =   120
            TabIndex        =   5
            Top             =   285
            Width           =   720
         End
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "子系统名"
         Height          =   180
         Left            =   120
         TabIndex        =   7
         Top             =   120
         Width           =   720
      End
   End
End
Attribute VB_Name = "frmMutex"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Option Base 1
Dim m_sSub() As String
Dim m_sAuthMenuName1() As String     '在选择不同子系统时需重新定义
Dim bFlag As Boolean

Private Sub cboSub1_Click()
lvwMenu.ListItems.Clear
txtName.text = ""
Call LoadAuth(cboSub1)
If lvwMenu.ListItems.Count > 0 Then
    txtName.text = lvwMenu.ListItems(1).text
End If
lvwMenu.Refresh
End Sub

Private Sub cboSub2_Click()
Dim rSt As New ADODB.Recordset
Dim i As Integer, j As Integer
lvw1.ListItems.Clear
Call LoadAuth(cboSub2)
For i = lVw.ListItems.Count To 1 Step -1
    If lVw.ListItems(i).Tag = m_sSub(cboSub2.ListIndex + 1) Then
        For j = lvw1.ListItems.Count To 1 Step -1
            If Mid(lvw1.ListItems(j).Key, 3) = Mid(lVw.ListItems(i).Key, 3) Then

⌨️ 快捷键说明

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