?? menu72.frm
字號:
VERSION 5.00
Begin VB.Form winmenu72
BackColor = &H80000004&
BorderStyle = 1 'Fixed Single
Caption = "操作員更改密碼"
ClientHeight = 5040
ClientLeft = 45
ClientTop = 330
ClientWidth = 6135
ControlBox = 0 'False
Icon = "menu72.frx":0000
LinkTopic = "Form4"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
Moveable = 0 'False
ScaleHeight = 5040
ScaleWidth = 6135
Begin VB.Frame Framea
BackColor = &H80000004&
BorderStyle = 0 'None
Height = 4935
Left = 0
TabIndex = 1
Top = 120
Width = 4815
Begin VB.CommandButton qxquit
Caption = "返回"
Height = 375
Left = 3240
TabIndex = 15
Top = 3840
Width = 975
End
Begin VB.CommandButton qxcancel
Caption = "取消"
Enabled = 0 'False
Height = 375
Left = 2280
TabIndex = 2
Top = 3840
Width = 975
End
Begin VB.CommandButton Command1
Caption = "確定"
Enabled = 0 'False
Height = 375
Left = 1320
TabIndex = 14
Top = 3840
Width = 975
End
Begin VB.TextBox tenewkey
BackColor = &H80000006&
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
Locked = -1 'True
MaxLength = 15
PasswordChar = "*"
TabIndex = 13
Top = 2400
Width = 1335
End
Begin VB.TextBox tetwonewkey
BackColor = &H80000006&
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
Locked = -1 'True
MaxLength = 15
PasswordChar = "*"
TabIndex = 12
Top = 2880
Width = 1335
End
Begin VB.CommandButton command2
Caption = "更改"
Height = 375
Left = 360
TabIndex = 5
Top = 3840
Width = 975
End
Begin VB.TextBox zgdm
BackColor = &H80000006&
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
Left = 2160
Locked = -1 'True
TabIndex = 0
Top = 960
Width = 1335
End
Begin VB.TextBox zgxm
BackColor = &H80000006&
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
Left = 2160
Locked = -1 'True
TabIndex = 4
Top = 1440
Width = 1335
End
Begin VB.TextBox zgmm
BackColor = &H80000006&
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 375
IMEMode = 3 'DISABLE
Left = 2160
Locked = -1 'True
MaxLength = 15
PasswordChar = "*"
TabIndex = 3
Top = 1920
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "確認新密碼:"
Height = 255
Left = 840
TabIndex = 11
Top = 3000
Width = 1095
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "新密碼:"
Height = 375
Left = 1200
TabIndex = 10
Top = 2520
Width = 975
End
Begin VB.Line Line2
BorderColor = &H00FF0000&
BorderWidth = 3
X1 = 0
X2 = 4800
Y1 = 3720
Y2 = 3720
End
Begin VB.Line Line1
BorderColor = &H00C00000&
BorderWidth = 3
X1 = 0
X2 = 6600
Y1 = 4320
Y2 = 4320
End
Begin VB.Label waring
BackStyle = 0 'Transparent
Caption = "提示:請您輸入您的操作員代碼與密碼,并核對您的姓名是否正確!"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 480
TabIndex = 9
Top = 120
Width = 3975
End
Begin VB.Label ladm
BackStyle = 0 'Transparent
Caption = "操作員代碼:"
Height = 375
Left = 840
TabIndex = 8
Top = 1080
Width = 1335
End
Begin VB.Label laxm
BackStyle = 0 'Transparent
Caption = "操作員姓名:"
Height = 375
Left = 840
TabIndex = 7
Top = 1550
Width = 1335
End
Begin VB.Label lamm
BackStyle = 0 'Transparent
Caption = "舊密碼:"
Height = 375
Left = 1200
TabIndex = 6
Top = 2040
Width = 1335
End
End
End
Attribute VB_Name = "winmenu72"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Set tab1 = data1.OpenRecordset("select * from mmk where cjydm='" + zgdm.Text + "' and cjymm='" + zgmm.Text + "'")
If tab1.EOF Then
MsgBox "舊密碼不正確,不能進行修改!", vbExclamation + vbOKOnly, "收購系統(tǒng)"
zgmm.SetFocus
Exit Sub
End If
If tenewkey.Text <> tetwonewkey.Text Then
MsgBox "新密碼與確認密碼不符,請重新輸入!", vbExclamation + vbOKOnly, "收購系統(tǒng)"
Exit Sub
tenewkey.SetFocus
End If
data1.Execute "update mmk set cjymm='" + tetwonewkey.Text + "' where cjydm='" + zgdm.Text + "'"
Command1.Enabled = False
qxcancel.Enabled = False
Command2.Enabled = True
End Sub
Private Sub Command2_Click()
zgmm.Locked = False
tenewkey.Locked = False
tetwonewkey.Locked = False
zgmm.SetFocus
Command2.Enabled = False
Command1.Enabled = True
qxcancel.Enabled = True
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
mainboot.menunum = "nothing"
mainboot.Picture1.Visible = True
End Sub
Private Sub qxcancel_Click()
zgmm.Locked = True
tenewkey.Locked = True
tetwonewkey.Locked = True
zgmm.Text = ""
tenewkey.Text = ""
tetwonewkey.Text = ""
Command2.Enabled = True
Command1.Enabled = False
qxcancel.Enabled = False
End Sub
Private Sub qxok_Click()
End Sub
Private Sub qxquit_Click()
mainboot.menunum = "nothing"
mainboot.Picture1.Visible = True
Unload Me
End Sub
Private Sub tenewkey_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then tetwonewkey.SetFocus
End Sub
Private Sub tetwonewkey_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then If Command1.Enabled = True Then Command1.SetFocus
End Sub
Private Sub zgdm_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then zgmm.SelStart = 0: zgmm.SelLength = 15: zgmm.SetFocus
End Sub
Private Sub zgdm_LostFocus()
Set tab11 = data1.OpenRecordset("qxk")
'If Not tab11.EOF Then zgxm.Text = tab11("cjyxm") Else zgxm.Text = ""
zgxm.Text = tab11("cjyxm")
End Sub
Private Sub Form_Load()
Me.Left = 2160
Me.Top = 1500
Me.Width = 4665
Me.Height = 5200
Framea.Left = 0
Framea.Top = 0
zgdm.Text = ""
zgdm.MaxLength = 3
zgxm.Text = ""
zgxm.MaxLength = 10
zgmm.Text = ""
Set tab1 = data1.OpenRecordset("qxk")
zgdm.Text = tab1("cjydm")
zgxm.Text = tab1("cjyxm")
End Sub
Private Sub text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then Command2_Click
End Sub
Private Sub zgmm_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then tenewkey.SetFocus
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -