📄 form_cjxtsh2.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form Form_CJXTSH2
Caption = "修改密码"
ClientHeight = 5610
ClientLeft = 60
ClientTop = 450
ClientWidth = 8205
LinkTopic = "Form1"
ScaleHeight = 5610
ScaleWidth = 8205
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "返 回"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 675
Left = 3150
TabIndex = 12
Top = 4110
Width = 1515
End
Begin MSComctlLib.ImageList ImageList1
Left = 960
Top = 90
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 32
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "Form_CJXTSH2.frx":0000
Key = "退出"
Object.Tag = "Exit"
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 11
Top = 0
Width = 8205
_ExtentX = 14473
_ExtentY = 741
ButtonWidth = 1032
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 1
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "Exit"
Object.ToolTipText = "退出"
ImageIndex = 1
EndProperty
EndProperty
End
Begin VB.CommandButton Command_cel
Caption = "取 消"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 675
Left = 4740
TabIndex = 10
Top = 4110
Width = 1515
End
Begin VB.CommandButton Command_yes
Caption = "确 定"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 675
Left = 1560
TabIndex = 9
Top = 4110
Width = 1515
End
Begin VB.TextBox Text_Rnpwd
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 3150
PasswordChar = "*"
TabIndex = 8
Top = 3300
Width = 3075
End
Begin VB.TextBox Text_Npwd
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 3150
PasswordChar = "*"
TabIndex = 7
Top = 2600
Width = 3075
End
Begin VB.TextBox Text_Pwd
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3150
TabIndex = 6
Top = 1900
Width = 3075
End
Begin VB.TextBox Text_Name
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3150
TabIndex = 5
Top = 1200
Width = 3075
End
Begin VB.Label Label5
Caption = "重新输入新密码:"
Height = 225
Left = 1590
TabIndex = 4
Top = 3420
Width = 1575
End
Begin VB.Label Label4
Caption = "新密码:"
Height = 225
Left = 1590
TabIndex = 3
Top = 2710
Width = 1575
End
Begin VB.Label Label3
Caption = "原密码:"
Height = 225
Left = 1590
TabIndex = 2
Top = 2000
Width = 1575
End
Begin VB.Label Label2
Caption = "用户名:"
Height = 225
Left = 1590
TabIndex = 1
Top = 1290
Width = 1575
End
Begin VB.Label Label1
Caption = "修改审核人密码"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 2940
TabIndex = 0
Top = 600
Width = 2325
End
End
Attribute VB_Name = "Form_CJXTSH2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command_cel_Click()
Text_Name.Text = ""
Text_Pwd.Text = ""
Text_Npwd = ""
Text_rpwd = ""
End Sub
Private Sub Command_yes_Click()
Dim XM As String
Dim JMM As String
Dim XMM As String
Dim QMM As String
XM = Text_Name.Text
JMM = Text_Pwd.Text
XMM = Text_Npwd.Text
QMM = Text_Rnpwd.Text
If JMM = XMM Then
ret = MsgBox("您的新密码和原来密码相同,请重新输入密码!")
ElseIf XMM = QMM Then
Dim str As String
str = "update users set pwd ='" & XMM & "'where username='" & XM & "' and privilege='审核人'"
Cmd.CommandText = str
Cmd.Execute
ret = MsgBox("恭喜您!你已经成功修改密码。")
Else
ret = MsgBox("两次输入的密码不一样,请重新输入!")
End If
End Sub
Private Sub Command1_Click()
Form_CJXTSH.Show
Form_CJXTSH2.Hide
End Sub
Private Sub Form_Load()
Height = 7000
Width = 8000
Left = 4700
Top = 1900
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
Case "Exit"
Unload Me
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -