📄 main_xtgl_mmsz.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form main_xtgl_mmsz
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "系统管理-【密码设置】"
ClientHeight = 3060
ClientLeft = 45
ClientTop = 330
ClientWidth = 5880
Icon = "main_xtgl_mmsz.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3060
ScaleWidth = 5880
StartUpPosition = 1 '所有者中心
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "main_xtgl_mmsz.frx":000C
Height = 330
Left = 2745
TabIndex = 5
Top = 585
Width = 2880
_ExtentX = 5080
_ExtentY = 582
_Version = 393216
ListField = "操作员"
Text = ""
End
Begin VB.CommandButton Command1
BackColor = &H00C0C0C0&
Caption = "&O 确定"
Height = 375
Left = 2385
Style = 1 'Graphical
TabIndex = 4
Top = 2535
Width = 1575
End
Begin VB.CommandButton Command2
BackColor = &H00C0C0C0&
Caption = "&C 取消"
Height = 375
Left = 3975
Style = 1 'Graphical
TabIndex = 3
Top = 2535
Width = 1575
End
Begin VB.TextBox TxtNMM
BackColor = &H00FFFFFF&
Height = 300
IMEMode = 3 'DISABLE
Left = 2745
MaxLength = 6
PasswordChar = "*"
TabIndex = 2
Top = 1665
Width = 2880
End
Begin VB.TextBox TxtOMM
BackColor = &H00FFFFFF&
Height = 300
IMEMode = 3 'DISABLE
Left = 2745
MaxLength = 6
TabIndex = 1
Top = 1140
Width = 2880
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = -510
Top = 2175
Visible = 0 'False
Width = 1305
_ExtentX = 2302
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=NBooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "NBooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from qxb"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = -375
Top = 1800
Visible = 0 'False
Width = 1305
_ExtentX = 2302
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=NBooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "NBooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from qxb"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Image Image1
Height = 2760
Left = 120
Picture = "main_xtgl_mmsz.frx":0021
Stretch = -1 'True
Top = 150
Width = 1770
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "操作员 原密码 新密码"
Height = 1410
Left = 2115
TabIndex = 0
Top = 660
Width = 1005
End
End
Attribute VB_Name = "main_xtgl_mmsz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub datacombo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then TxtOMM.SetFocus '回车TxtOMM获得焦点
End Sub
Private Sub TxtOMM_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then TxtNMM.SetFocus '回车TxtNMM获得焦点
End Sub
Private Sub Command1_Click() '修改操作员密码
If TxtOMM.text = "" Then
MsgBox "请输入原密码!"
Exit Sub
End If
If TxtNMM.text = "" Then
MsgBox "请输入新密码!"
Exit Sub
End If
If DataCombo1.text = "" Then
MsgBox "请输入操作员!"
Exit Sub
End If
Adodc1.RecordSource = "select * from qxb where 操作员='" & DataCombo1.text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
If TxtOMM.text = Adodc1.Recordset.Fields("密码") Then
Adodc1.Recordset.Fields("密码") = TxtNMM.text
Adodc1.Recordset.Update
MsgBox "密码更改成功!"
Else
MsgBox "原密码不正确,请重新输入!"
Exit Sub
End If
End If
End Sub
Private Sub Command2_Click()
frm_main.Enabled = True
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -