📄 frm_qr.frm
字号:
VERSION 5.00
Begin VB.Form Frm_Qr
Caption = "身份确认"
ClientHeight = 1500
ClientLeft = 60
ClientTop = 345
ClientWidth = 4350
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 1500
ScaleWidth = 4350
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Exit
Caption = "退出"
Height = 350
Left = 3270
TabIndex = 6
Top = 1125
Width = 850
End
Begin VB.CommandButton Cmd_Ok
Caption = "确定"
Height = 350
Left = 2205
TabIndex = 5
Top = 1125
Width = 850
End
Begin VB.Frame Frame1
Height = 1020
Left = 75
TabIndex = 0
Top = 30
Width = 4095
Begin VB.TextBox Text2
Height = 300
IMEMode = 3 'DISABLE
Left = 1170
PasswordChar = "*"
TabIndex = 4
Top = 570
Width = 2685
End
Begin VB.TextBox Text1
Height = 300
Left = 1170
Locked = -1 'True
TabIndex = 3
Top = 210
Width = 2670
End
Begin VB.Label Label2
Caption = "操作员密码"
Height = 285
Left = 165
TabIndex = 2
Top = 615
Width = 930
End
Begin VB.Label Label1
Caption = "操作员姓名"
Height = 225
Left = 165
TabIndex = 1
Top = 270
Width = 1140
End
End
End
Attribute VB_Name = "Frm_Qr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs As New ADODB.Recordset
Private Sub Cmd_Exit_Click()
Unload Me
End Sub
Private Sub Cmd_Ok_Click()
If Text2.Text = "" Then
MsgBox "请输入密码", , "信息提示"
Text2.SetFocus
Exit Sub
End If
rs.Open "select * from tb_user where user_name='" + Text1.Text + "'", cnn, adOpenKeyset
If rs.RecordCount > 0 Then
If rs.Fields("user_mm") <> Text2.Text Then
MsgBox "你输入的密码不正确,不能操作该权限!", , "信息提示"
rs.Close
Exit Sub
Else
If Sign = True Then
Unload Me
Load Frm_Xtgl_Sjql
Frm_Xtgl_Sjql.Show 1
ElseIf Sign = False Then
Shell App.Path & "\数据库备份与恢复.exe", vbNormalFocus
End
End If
End If
End If
rs.Close
End Sub
Private Sub Form_Load()
Text1.Text = Frm_mm.Lbl_Name.Caption
End Sub
Private Sub Form_Unload(Cancel As Integer)
Frm_Main.Enabled = True
End Sub
Private Sub Text1_GotFocus()
Text1.BackColor = &HFFFF80
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then Text2.SetFocus
End Sub
Private Sub Text1_LostFocus()
Text1.BackColor = &HFFFFFF
End Sub
Private Sub Text2_GotFocus()
Text2.BackColor = &HFFFF80
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then Cmd_Ok.SetFocus
End Sub
Private Sub Text2_LostFocus()
Text2.BackColor = &HFFFFFF
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -