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

📄 frmuser.frm

📁 本论文以西电基础教学实验中心学生上机管理系统为背景
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmUser 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "操作员维护"
   ClientHeight    =   6090
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8505
   Icon            =   "frmUser.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6090
   ScaleWidth      =   8505
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame fraPurview 
      Caption         =   "权限设置"
      Height          =   3975
      Left            =   2400
      TabIndex        =   13
      Top             =   1920
      Width           =   5895
      Begin VB.ListBox litSelected 
         Height          =   3120
         Left            =   3240
         TabIndex        =   19
         Top             =   600
         Width           =   2415
      End
      Begin VB.CommandButton cmdLeftAll 
         Caption         =   "<<"
         Height          =   255
         Left            =   2700
         TabIndex        =   18
         Top             =   2640
         Width           =   375
      End
      Begin VB.CommandButton cmdLeft 
         Caption         =   "<"
         Height          =   255
         Left            =   2700
         TabIndex        =   17
         Top             =   2160
         Width           =   375
      End
      Begin VB.CommandButton cmdRightAll 
         Caption         =   ">>"
         Height          =   255
         Left            =   2700
         TabIndex        =   16
         Top             =   1680
         Width           =   375
      End
      Begin VB.CommandButton cmdRight 
         Caption         =   ">"
         Height          =   255
         Left            =   2700
         TabIndex        =   15
         Top             =   1200
         Width           =   375
      End
      Begin VB.ListBox litSelect 
         Height          =   3120
         Left            =   120
         TabIndex        =   14
         Top             =   600
         Width           =   2415
      End
      Begin VB.Label temp_lab 
         Caption         =   "Label3"
         Height          =   255
         Left            =   0
         TabIndex        =   23
         Top             =   -2160
         Visible         =   0   'False
         Width           =   1695
      End
      Begin VB.Label lblSelected 
         Caption         =   "已选择权限:"
         Height          =   255
         Left            =   3240
         TabIndex        =   21
         Top             =   360
         Width           =   1215
      End
      Begin VB.Label lblSelect 
         AutoSize        =   -1  'True
         Caption         =   "供选择权限:"
         Height          =   180
         Left            =   120
         TabIndex        =   20
         Top             =   360
         Width           =   1080
      End
   End
   Begin VB.Frame fraUaer 
      Caption         =   "操作员信息"
      Height          =   1455
      Left            =   3480
      TabIndex        =   5
      Top             =   360
      Width           =   4815
      Begin VB.ComboBox cbpType 
         Height          =   300
         ItemData        =   "frmUser.frx":000C
         Left            =   1200
         List            =   "frmUser.frx":0019
         Style           =   2  'Dropdown List
         TabIndex        =   22
         Top             =   360
         Width           =   1215
      End
      Begin VB.TextBox Password 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   3480
         MaxLength       =   6
         PasswordChar    =   "*"
         TabIndex        =   12
         Top             =   960
         Width           =   975
      End
      Begin VB.TextBox txtPsd 
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1200
         MaxLength       =   6
         PasswordChar    =   "*"
         TabIndex        =   10
         Top             =   960
         Width           =   1215
      End
      Begin VB.TextBox txtU_Name 
         Height          =   270
         Left            =   3480
         MaxLength       =   10
         TabIndex        =   8
         Top             =   360
         Width           =   975
      End
      Begin VB.Label lblPassword 
         AutoSize        =   -1  'True
         Caption         =   "确认密码:"
         Height          =   180
         Left            =   2520
         TabIndex        =   11
         Top             =   1005
         Width           =   900
      End
      Begin VB.Label lblPsd 
         Caption         =   "密码:"
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   975
         Width           =   735
      End
      Begin VB.Label lblu_name 
         AutoSize        =   -1  'True
         Caption         =   "用户名:"
         Height          =   180
         Left            =   2640
         TabIndex        =   7
         Top             =   405
         Width           =   720
      End
      Begin VB.Label lblType 
         AutoSize        =   -1  'True
         Caption         =   "用户类型:"
         Height          =   180
         Left            =   240
         TabIndex        =   6
         Top             =   405
         Width           =   900
      End
   End
   Begin VB.CommandButton cmdEdit 
      Caption         =   "修 改"
      Height          =   375
      Left            =   2400
      TabIndex        =   4
      Top             =   1440
      Width           =   975
   End
   Begin VB.CommandButton cmdDelete 
      Caption         =   "删 除"
      Height          =   375
      Left            =   2400
      TabIndex        =   3
      Top             =   960
      Width           =   975
   End
   Begin VB.CommandButton cmdAdd 
      Caption         =   "添 加"
      Height          =   375
      Left            =   2400
      TabIndex        =   2
      Top             =   480
      Width           =   975
   End
   Begin MSComctlLib.ListView lvwUser 
      Height          =   5295
      Left            =   240
      TabIndex        =   1
      Top             =   600
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   9340
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      HideColumnHeaders=   -1  'True
      FullRowSelect   =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin VB.Label lblList 
      AutoSize        =   -1  'True
      Caption         =   "操作员列表:"
      Height          =   180
      Left            =   240
      TabIndex        =   0
      Top             =   360
      Width           =   1080
   End
End
Attribute VB_Name = "frmUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''                                                                ''
''Filename       frmUser.frm                                      ''
''                                                                ''
''Created On     2004.3.28                                        ''
''                                                                ''
''Description    操作员信息维护窗体                               ''
''                                                                ''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim rsPurview As Recordset
Dim rsUser As Recordset
Dim rsRole As Recordset
Dim rsAllocatee As Recordset

Dim AddJudge As String
Dim EdotJudge As String
Dim StrItem As String
Dim StrU_ID As String
Dim strR_ID As String
Dim Intindex As Integer
Dim lItem As ListItem
Private Sub cbpType_Click()
If cbpType.Text <> "" Then
    Set rsPurview = New Recordset
    rsPurview.Open "select TbPurview.P_Name,tbrole.R_ID from tbrole,tbpopedom,TbPurview where tbpopedom.P_ID=TbPurview.P_ID and tbpopedom.R_ID =tbrole.R_ID AND tbROLE.R_NAME LIKE '" & cbpType.Text & "'", Modmain.conn, 3, 2
    strR_ID = rsPurview.Fields!R_ID
    ClearItem
    While Not rsPurview.EOF
         litSelected.AddItem rsPurview.Fields!P_Name
        rsPurview.MoveNext
    Wend
    rsPurview.Close
    Set rsPurview = Nothing
End If
End Sub
Private Sub cmdAdd_Click()
AddJudge = "false"
If cmdAdd.Caption = "添 加" Then
    cmdDelete.Enabled = False
    cmdEdit.Enabled = False
    fraUaer.Enabled = True
    fraPurview.Enabled = True
    cmdAdd.Caption = "保 存"
    cbpType.Enabled = True
    ClearInfo
    lvwUser.Enabled = False
    ClearItem
    ElseIf cmdAdd.Caption = "保 存" Then
        AddNewUser
        If AddJudge = "true" Then
            cmdDelete.Enabled = True
            cmdEdit.Enabled = True
            fraUaer.Enabled = True
            fraPurview.Enabled = False
            cmdAdd.Caption = "添 加"
            cbpType.Enabled = False
            lvwUser.Enabled = True
        Else
            Exit Sub
        End If
End If
End Sub

Private Sub cmdDelete_Click()
If StrU_ID = "" Then
    MsgBox "请选择操作员!", vbOKOnly + vbExclamation, "机房管理"
Else
    If cbpType.Text <> "超级用户" Then
        DeleteUser
    Else
        MsgBox "超级用户不能删除!", vbOKOnly + vbExclamation, "机房管理"
    End If
End If

End Sub

Private Sub cmdEdit_Click()
EdotJudge = "false"
If cmdEdit.Caption = "修 改" Then
    If StrU_ID = "" Then
        MsgBox "请选择操作员!", vbOKOnly + vbExclamation, "机房管理"
        Exit Sub
    End If
    cmdAdd.Enabled = False
    cmdDelete.Enabled = False
    fraUaer.Enabled = True
    fraPurview.Enabled = True
    cmdEdit.Caption = "保 存"
    cbpType.Enabled = False
    lvwUser.Enabled = False
    ElseIf cmdEdit.Caption = "保 存" Then
        AddEditInfo
        If EdotJudge = "true" Then
            cmdAdd.Enabled = True
            cmdDelete.Enabled = True
            fraUaer.Enabled = False

⌨️ 快捷键说明

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