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

📄 frmobjectmutex.frm

📁 一个用VB写的财务软件源码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form frmObjectMutex 
   Caption         =   "对象互斥维护"
   ClientHeight    =   6720
   ClientLeft      =   60
   ClientTop       =   300
   ClientWidth     =   10185
   Icon            =   "frmObjectMutex.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   ScaleHeight     =   6720
   ScaleWidth      =   10185
   StartUpPosition =   2  '屏幕中心
   Begin TabDlg.SSTab sTb 
      Height          =   5895
      Left            =   3600
      TabIndex        =   4
      Top             =   720
      Width           =   6495
      _ExtentX        =   11456
      _ExtentY        =   10398
      _Version        =   393216
      Style           =   1
      Tabs            =   2
      Tab             =   1
      TabsPerRow      =   2
      TabHeight       =   520
      TabCaption(0)   =   "列表"
      TabPicture(0)   =   "frmObjectMutex.frx":030A
      Tab(0).ControlEnabled=   0   'False
      Tab(0).Control(0)=   "mFg"
      Tab(0).ControlCount=   1
      TabCaption(1)   =   "详细"
      TabPicture(1)   =   "frmObjectMutex.frx":0326
      Tab(1).ControlEnabled=   -1  'True
      Tab(1).Control(0)=   "Label5"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).Control(1)=   "Label6"
      Tab(1).Control(1).Enabled=   0   'False
      Tab(1).Control(2)=   "Label4"
      Tab(1).Control(2).Enabled=   0   'False
      Tab(1).Control(3)=   "Label2"
      Tab(1).Control(3).Enabled=   0   'False
      Tab(1).Control(4)=   "txtName"
      Tab(1).Control(4).Enabled=   0   'False
      Tab(1).Control(5)=   "cboSub2"
      Tab(1).Control(5).Enabled=   0   'False
      Tab(1).Control(6)=   "cboMutex"
      Tab(1).Control(6).Enabled=   0   'False
      Tab(1).Control(7)=   "txtMutex"
      Tab(1).Control(7).Enabled=   0   'False
      Tab(1).ControlCount=   8
      Begin MSFlexGridLib.MSFlexGrid mFg 
         Height          =   5550
         Left            =   -74985
         TabIndex        =   13
         Top             =   315
         Width           =   6455
         _ExtentX        =   11377
         _ExtentY        =   9790
         _Version        =   393216
         Cols            =   6
         FixedCols       =   0
         SelectionMode   =   1
         AllowUserResizing=   3
         FormatString    =   "^子系统|<功能菜单|<对象菜单|^互斥子系统|<互斥功能菜单|<互斥对象菜单"
      End
      Begin VB.TextBox txtMutex 
         Height          =   270
         Left            =   600
         MaxLength       =   50
         TabIndex        =   12
         Top             =   3240
         Width           =   4455
      End
      Begin VB.ComboBox cboMutex 
         Height          =   300
         Left            =   600
         Style           =   2  'Dropdown List
         TabIndex        =   11
         Top             =   2520
         Width           =   4455
      End
      Begin VB.ComboBox cboSub2 
         Height          =   300
         Left            =   600
         Style           =   2  'Dropdown List
         TabIndex        =   7
         Top             =   1800
         Width           =   1725
      End
      Begin VB.TextBox txtName 
         Height          =   270
         Left            =   600
         MaxLength       =   50
         TabIndex        =   5
         Top             =   1080
         Width           =   4455
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "互斥子系统"
         Height          =   180
         Left            =   600
         TabIndex        =   10
         Top             =   1560
         Width           =   900
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "互斥菜单"
         Height          =   180
         Left            =   600
         TabIndex        =   9
         Top             =   2295
         Width           =   720
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "互斥对象菜单标识"
         Height          =   180
         Left            =   600
         TabIndex        =   8
         Top             =   3030
         Width           =   1440
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "对象菜单标识"
         Height          =   180
         Left            =   600
         TabIndex        =   6
         Top             =   840
         Width           =   1080
      End
   End
   Begin VB.ComboBox cboSub1 
      Height          =   300
      Left            =   120
      Style           =   2  'Dropdown List
      TabIndex        =   0
      Top             =   960
      Width           =   3405
   End
   Begin MSComctlLib.ListView lVw 
      Height          =   5055
      Left            =   120
      TabIndex        =   1
      Top             =   1560
      Width           =   3375
      _ExtentX        =   5953
      _ExtentY        =   8916
      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 MSComctlLib.Toolbar tBr 
      Align           =   1  'Align Top
      Height          =   570
      Left            =   0
      TabIndex        =   14
      Top             =   0
      Width           =   10185
      _ExtentX        =   17965
      _ExtentY        =   1005
      ButtonWidth     =   820
      ButtonHeight    =   953
      AllowCustomize  =   0   'False
      Appearance      =   1
      Style           =   1
      ImageList       =   "ilsToolbar"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   8
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "添加"
            Key             =   "Append"
            ImageKey        =   "Append"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "删除"
            Key             =   "Delete"
            ImageKey        =   "Delete"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "修改"
            Key             =   "Revise"
            ImageKey        =   "Revise"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "保存"
            Key             =   "Save"
            ImageKey        =   "Save"
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "取消"
            Key             =   "Cancel"
            ImageKey        =   "Cancel"
         EndProperty
         BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出"
            Key             =   "Exit"
            ImageKey        =   "Exit"
         EndProperty
      EndProperty
      BorderStyle     =   1
      Begin MSComctlLib.ImageList ilsTvw 
         Left            =   3840
         Top             =   840
         _ExtentX        =   1005
         _ExtentY        =   1005
         BackColor       =   -2147483643
         ImageWidth      =   16
         ImageHeight     =   16
         MaskColor       =   12632256
         _Version        =   393216
         BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
            NumListImages   =   2
            BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":0342
               Key             =   "Collapse"
            EndProperty
            BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":0794
               Key             =   "Expand"
            EndProperty
         EndProperty
      End
      Begin MSComctlLib.ImageList ilsToolbar 
         Left            =   4080
         Top             =   120
         _ExtentX        =   1005
         _ExtentY        =   1005
         BackColor       =   -2147483643
         ImageWidth      =   16
         ImageHeight     =   16
         MaskColor       =   12632256
         _Version        =   393216
         BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
            NumListImages   =   9
            BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":0BE6
               Key             =   "Append"
            EndProperty
            BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":103A
               Key             =   "Revise"
            EndProperty
            BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":148C
               Key             =   "Query"
            EndProperty
            BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":159E
               Key             =   "Print"
            EndProperty
            BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":1AE0
               Key             =   "Delete"
            EndProperty
            BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":1BF4
               Key             =   "Save"
            EndProperty
            BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":2138
               Key             =   "Cancel"
            EndProperty
            BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":267C
               Key             =   "Exit"
            EndProperty
            BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmObjectMutex.frx":2AD8
               Key             =   "Preview"
            EndProperty
         EndProperty
      End
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "功能菜单"
      Height          =   180
      Left            =   120
      TabIndex        =   3
      Top             =   1335
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "子系统"
      Height          =   180
      Left            =   120
      TabIndex        =   2
      Top             =   720
      Width           =   540
   End
   Begin VB.Menu mnuFile 
      Caption         =   "文件(&F)"
      Begin VB.Menu mnuFileExit 
         Caption         =   "退出(&X)"
      End
   End
   Begin VB.Menu mnuEdit 
      Caption         =   "编辑(&E)"
      Begin VB.Menu mnuEditAppend 
         Caption         =   "添加(&A)"
      End
      Begin VB.Menu mnuEditDelete 
         Caption         =   "删除(&D)"
         Shortcut        =   ^D
      End
      Begin VB.Menu mnuEditRevise 
         Caption         =   "修改(&R)"
         Shortcut        =   ^R
      End
      Begin VB.Menu mnuEditB 
         Caption         =   "-"
      End
      Begin VB.Menu mnuEditSave 
         Caption         =   "保存(&S)"
         Shortcut        =   ^S
      End
      Begin VB.Menu mnuEditCancel 
         Caption         =   "取消(&C)"
      End
   End
End
Attribute VB_Name = "frmObjectMutex"
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_sMenu1() As String
Dim m_sMenu2() As String
Dim m_bRevise As Boolean
Dim m_sMutexSubID As String
Dim m_sMutexAuthMenuName As String


Private Sub Form_Load()
Dim rSt As New ADODB.Recordset
Dim i As Integer
With lVw
    .ColumnHeaders.Add , , "功能菜单", 3300, 0
    .HideColumnHeaders = True
End With
ReDim m_sSub(1)
With rSt
    .CursorLocation = adUseClient
    .Open "Select * from tsys_SubSys order by SubSysID", _
        gloSys.cnnSys, adOpenStatic, adLockReadOnly
    If .RecordCount > 0 Then
        ReDim m_sSub(.RecordCount)
        i = 1
        Do Until .EOF
            cboSub1.AddItem Trim(.Fields("SubSysName").Value)
            cboSub2.AddItem Trim(.Fields("SubSysName").Value)
            m_sSub(i) = Trim(.Fields("SubSysID").Value)
            i = i + 1
            .MoveNext
        Loop
    End If
    .Close
    If cboSub1.ListCount > 0 Then
        cboSub1.ListIndex = 0
    End If
End With
sTb.Tab = 0
sTb.TabEnabled(0) = True
sTb.TabEnabled(1) = False

End Sub
Private Sub cboSub1_Click()
lVw.ListItems.Clear

⌨️ 快捷键说明

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