📄 frmsystemmodify.frm
字号:
VERSION 5.00
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Begin VB.Form frmSystemModify
BorderStyle = 3 'Fixed Dialog
Caption = "修改用户"
ClientHeight = 1395
ClientLeft = 45
ClientTop = 435
ClientWidth = 3600
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1395
ScaleWidth = 3600
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox txtUser
BackColor = &H8000000F&
Height = 270
Left = 2160
Locked = -1 'True
MaxLength = 5
TabIndex = 2
Top = 150
Width = 1215
End
Begin VB.ComboBox cmbType
Height = 300
ItemData = "frmSystemModify.frx":0000
Left = 2160
List = "frmSystemModify.frx":0002
TabIndex = 1
Top = 510
Width = 1215
End
Begin CSCommand.Command cmdSave
Default = -1 'True
Height = 255
Left = 1320
TabIndex = 0
Top = 990
Width = 855
_ExtentX = 1508
_ExtentY = 450
IconAlign = 0
Icon = "frmSystemModify.frx":0004
Caption = "保存(&S)"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command cmdBack
Cancel = -1 'True
Height = 255
Left = 2400
TabIndex = 3
Top = 990
Width = 855
_ExtentX = 1508
_ExtentY = 450
IconAlign = 0
Icon = "frmSystemModify.frx":0020
Caption = "返回(Ese)"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label1
Caption = "修改用户"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1215
Left = 120
TabIndex = 6
Top = 120
Width = 495
End
Begin VB.Label lbal
Caption = "操作员:"
Height = 195
Index = 0
Left = 1200
TabIndex = 5
Top = 150
Width = 735
End
Begin VB.Label lbal
Caption = "级 别:"
Height = 195
Index = 3
Left = 1200
TabIndex = 4
Top = 510
Width = 735
End
End
Attribute VB_Name = "frmSystemModify"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim UserCon As ADODB.Connection
Dim UserRs As ADODB.Recordset
Dim UserStr As String
Private Sub cmdBack_Click()
Unload Me
End Sub
Private Sub cmdSave_Click()
UserStr = "select admin,ad_type from administrator where admin='" & mdlCon.UserModify & "' "
If mdlCon.connectTotable(UserCon, UserRs, UserStr) Then
End If
UserRs!ad_type = cmbType.Text '用户权限更新
UserRs.Update
UserRs.Close
UserCon.Close
MsgBox "用户更改成功,窗口关闭!"
Unload Me
End Sub
Private Sub Form_Load()
cmbType.AddItem ("经理")
cmbType.AddItem ("操作员")
cmbType.AddItem ("领班")
UserStr = "select * from administrator where admin='" & mdlCon.UserModify & "'"
If mdlCon.connectTotable(UserCon, UserRs, UserStr) Then
End If
txtUser.Text = UserRs!admin
cmbType.Text = UserRs!ad_type
UserRs.Close
UserCon.Close
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -