📄 总调用.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form2
Caption = "口令修改"
ClientHeight = 4650
ClientLeft = 1260
ClientTop = 450
ClientWidth = 5115
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 4650
ScaleWidth = 5115
Begin VB.TextBox Text4
Height = 375
Left = 2040
TabIndex = 8
Top = 4080
Visible = 0 'False
Width = 615
End
Begin VB.CommandButton Cmdreturn
Caption = "返回"
Height = 615
Left = 2640
TabIndex = 7
Top = 3360
Width = 1335
End
Begin VB.CommandButton Cmdok
Caption = "确定"
Default = -1 'True
Height = 615
Left = 480
TabIndex = 6
Top = 3360
Width = 1335
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 3840
Top = 1200
Visible = 0 'False
Width = 1215
_ExtentX = 2143
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"总调用.frx":0000
OLEDBString = $"总调用.frx":0089
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "售票员口令表"
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Text3
Height = 735
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 5
Top = 2280
Width = 1695
End
Begin VB.TextBox Text2
Height = 615
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 4
Top = 1440
Width = 1695
End
Begin VB.TextBox Text1
Height = 615
Left = 1920
Locked = -1 'True
TabIndex = 3
Top = 600
Width = 1695
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3840
Top = 360
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"总调用.frx":0112
OLEDBString = $"总调用.frx":019B
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = "administrator"
Password = "19830621"
RecordSource = "管理员口令表"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Label Label3
Caption = "口令确认:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 2
Top = 2280
Width = 1575
End
Begin VB.Label Label2
Caption = "新口令:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 1
Top = 1440
Width = 1455
End
Begin VB.Label Label1
Caption = "用户名:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 360
TabIndex = 0
Top = 600
Width = 1455
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmdok_Click()
Dim username1 As String, username2 As String
username1 = Text1.Text
If Text2.Text <> Text3.Text Then
MsgBox "密码不同请重输", 16, "错误"
End If
If Form1.Option1.Value Then
Set Text4.DataSource = Adodc1
Text4.DataField = "口令"
Else
If Form1.Option2.Value Then
Set Text4.DataSource = Adodc2
Text4.DataField = "口令"
End If
End If
If Form1.Option1.Value Then
Adodc1.Recordset.MoveFirst
If username1 <> "" Then
username2 = "用户名='" & username1 & "'"
Adodc1.Recordset.Find username2
Text4.Text = Text2.Text
Adodc1.Recordset.Save
MsgBox "密码修改成功", 48, "成功"
End If
Else
If Form1.Option2.Value Then
Adodc2.Recordset.MoveFirst
If username1 <> "" Then
username2 = "工号='" & username1 & "'"
Adodc2.Recordset.Find username2
Text4.Text = Text2.Text
Adodc1.Recordset.Save
MsgBox "密码修改成功", 48, "成功"
End If
End If
End If
Form2.Hide
MDIForm1.Show
End Sub
Private Sub Cmdreturn_Click()
Form2.Hide
End Sub
Private Sub Form_Load()
Text1.Text = Form1.Text1.Text
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -