📄 frmlandingremove.frm
字号:
VERSION 5.00
Begin VB.Form FrmLandingRemove
BorderStyle = 3 'Fixed Dialog
Caption = "操作员删除"
ClientHeight = 2145
ClientLeft = 3615
ClientTop = 3900
ClientWidth = 5100
Icon = "FrmLandingRemove.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2145
ScaleWidth = 5100
ShowInTaskbar = 0 'False
Begin VB.CommandButton CmdExit
Caption = "退出"
Height = 255
Left = 3480
TabIndex = 7
Top = 1800
Width = 1455
End
Begin VB.CommandButton CmdRemove
Caption = "删除"
Height = 255
Left = 1800
TabIndex = 6
Top = 1800
Width = 1455
End
Begin VB.CommandButton CmdLast
Caption = ">|"
Height = 375
Left = 3960
TabIndex = 5
Top = 1200
Width = 975
End
Begin VB.CommandButton CmdNext
Caption = ">"
Height = 375
Left = 2760
TabIndex = 4
Top = 1200
Width = 855
End
Begin VB.CommandButton Cmdprev
Caption = "<"
Height = 375
Left = 1440
TabIndex = 3
Top = 1200
Width = 855
End
Begin VB.CommandButton Cmdfirst
Caption = "|<"
Height = 375
Left = 240
TabIndex = 2
Top = 1200
Width = 855
End
Begin VB.TextBox TxtName
Height = 315
Left = 1440
TabIndex = 1
Top = 240
Width = 3495
End
Begin VB.Label LblPopedom
BackStyle = 0 'Transparent
BorderStyle = 1 'Fixed Single
Height = 315
Left = 1440
TabIndex = 9
Top = 720
Width = 3495
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "操作员权限"
Height = 195
Left = 360
TabIndex = 8
Top = 840
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "操作员名称"
Height = 195
Left = 360
TabIndex = 0
Top = 360
Width = 900
End
End
Attribute VB_Name = "FrmLandingRemove"
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 Cmdnext_Click()
If g_DBRct.BOF = False And g_DBRct.EOF = False Then
g_DBRct.MoveNext
If g_DBRct.EOF = True Then
g_DBRct.MoveLast
End If
Call ShowData
End If
End Sub
Private Sub Cmdprev_Click()
If g_DBRct.BOF = False And g_DBRct.EOF = False Then
g_DBRct.MovePrevious
If g_DBRct.BOF = True Then
g_DBRct.MoveFirst
End If
Call ShowData
End If
End Sub
Private Sub Cmdfirst_Click()
If g_DBRct.BOF = False And g_DBRct.EOF = False Then
g_DBRct.MoveFirst
Call ShowData
End If
End Sub
Private Sub Cmdlast_Click()
If g_DBRct.BOF = False And g_DBRct.EOF = False Then
g_DBRct.MoveLast
Call ShowData
End If
End Sub
Private Sub Cmdremove_Click()
If MsgBox("确实要删除该操作员的信息吗?", vbQuestion + vbYesNo, "删除信息") = vbYes Then
g_DBRct.Delete
Call Cmdnext_Click
End If
End Sub
Private Sub Form_Load()
'查询所有操作员信息
If QueryEmpInfo("select * from UserValidate") = True Then
If g_DBRct.BOF = False And g_DBRct.EOF = False Then
Call ShowData
End If
End If
End Sub
Public Sub ShowData()
'如果记录集不为空,显示操作员信息
If g_DBRct.BOF = False And g_DBRct.EOF = False Then
TxtName.Text = g_DBRct!username
'判断操作员权限,并显示
If g_DBRct!userpopedom = True Then
LblPopedom.Caption = "管理员"
Else
LblPopedom.Caption = "普通用户"
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -