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

📄 frmlandingoption.frm

📁 这是图书馆管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmLandingOption 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "登陆信息查询"
   ClientHeight    =   1905
   ClientLeft      =   3195
   ClientTop       =   3330
   ClientWidth     =   5025
   Icon            =   "FrmLandingOption.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1905
   ScaleWidth      =   5025
   ShowInTaskbar   =   0   'False
   Begin VB.ComboBox cboPopedom 
      Height          =   300
      Left            =   1440
      Style           =   2  'Dropdown List
      TabIndex        =   5
      Top             =   840
      Width           =   1695
   End
   Begin VB.TextBox TxtName 
      Height          =   315
      Left            =   1440
      TabIndex        =   2
      Top             =   240
      Width           =   2775
   End
   Begin VB.CommandButton CmdOption 
      Caption         =   "查询"
      Height          =   375
      Left            =   2760
      TabIndex        =   1
      Top             =   1440
      Width           =   975
   End
   Begin VB.CommandButton CmdExit 
      Caption         =   "退出"
      Height          =   375
      Left            =   3960
      TabIndex        =   0
      Top             =   1440
      Width           =   975
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "操作员名称"
      Height          =   195
      Left            =   240
      TabIndex        =   4
      Top             =   360
      Width           =   900
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "操作员权限"
      Height          =   195
      Left            =   240
      TabIndex        =   3
      Top             =   960
      Width           =   900
   End
End
Attribute VB_Name = "FrmLandingOption"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub CmdExit_Click()
    Unload Me
End Sub

Private Sub CmdOption_Click()
    Dim strSelectSQL As String
    strSelectSQL = "select * from uservalidate where UserPopedom="
    If cboPopedom.Text = "管理员" Then
        strSelectSQL = strSelectSQL & "1"
    Else
        strSelectSQL = strSelectSQL & "0"
    End If
    If TxtName.Text <> "" Then
        strSelectSQL = strSelectSQL & "and username='" & _
                        Trim(TxtName.Text) & "'"
    End If
    '判断查询操作员条件
    If QueryEmpInfo(strSelectSQL) = True And g_DBRct.BOF = False And g_DBRct.EOF = False Then
        FrmLandingSelect.Show
        Unload Me
    Else
        MsgBox "无法找到符合条件的操作员记录,请重新查询", vbOKOnly, "操作员不存在"
        TxtName.Text = ""
        cboPopedom.ListIndex = 0
    End If
End Sub

Private Sub Form_Load()
    '窗体加载时列表框中自动生成内容,并有默认值
    cboPopedom.Clear
    cboPopedom.AddItem "管理员"
    cboPopedom.AddItem "普通用户"
    cboPopedom.ListIndex = 0
End Sub

⌨️ 快捷键说明

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