📄 系统维护-用户信息.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form21
Caption = "系统维护-用户信息"
ClientHeight = 7860
ClientLeft = 60
ClientTop = 345
ClientWidth = 7425
LinkTopic = "Form21"
ScaleHeight = 7860
ScaleWidth = 7425
StartUpPosition = 3 '窗口缺省
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "系统维护-用户信息.frx":0000
Height = 2895
Left = 2280
TabIndex = 9
Top = 1800
Width = 3375
_ExtentX = 5953
_ExtentY = 5106
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = -1 'True
Appearance = 0
Enabled = -1 'True
ColumnHeaders = 0 'False
HeadLines = 1
RowHeight = 15
RowDividerStyle = 1
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = "user"
Caption = "用户名"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = "c"
Caption = "用户权限"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
AllowFocus = 0 'False
AllowRowSizing = 0 'False
AllowSizing = 0 'False
Locked = -1 'True
RecordSelectors = 0 'False
BeginProperty Column00
DividerStyle = 1
ColumnAllowSizing= 0 'False
Locked = -1 'True
EndProperty
BeginProperty Column01
ColumnAllowSizing= 0 'False
Locked = -1 'True
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3240
Top = 6360
Visible = 0 'False
Width = 1560
_ExtentX = 2752
_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= 2
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "FILE NAME=C:\mydb.dsn"
OLEDBString = ""
OLEDBFile = "C:\mydb.dsn"
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "登录信息"
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.CommandButton Command4
Caption = "退出"
Height = 495
Left = 5160
TabIndex = 6
Top = 6960
Width = 1095
End
Begin VB.CommandButton Command3
Caption = "注册新用户"
Height = 495
Left = 1440
TabIndex = 5
Top = 6960
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "重新登录"
Height = 495
Left = 5160
TabIndex = 4
Top = 6000
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "修改用户资料"
Height = 495
Left = 1440
TabIndex = 3
Top = 6000
Width = 1335
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "“1”表示系统管理员。"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Left = 2400
TabIndex = 8
Top = 5520
Width = 2520
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "注:用户权限中“0”表示一般用户,"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 240
Left = 1920
TabIndex = 7
Top = 5160
Width = 3960
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "用户权限"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 240
Left = 4080
TabIndex = 2
Top = 1440
Width = 1020
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "用户名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 240
Left = 2640
TabIndex = 1
Top = 1440
Width = 765
End
Begin VB.Line Line2
X1 = 1440
X2 = 6240
Y1 = 1080
Y2 = 1080
End
Begin VB.Line Line1
X1 = 1440
X2 = 6240
Y1 = 960
Y2 = 960
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "所有用户信息"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 2640
TabIndex = 0
Top = 360
Width = 2700
End
End
Attribute VB_Name = "Form21"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form21.Hide
Form3.Show
Form3.Text1(0).Text = ""
Form3.Text1(1).Text = ""
Form3.Text1(2).Text = ""
Form3.Text1(3).Text = ""
Form3.Text1(4).Text = ""
Form3.Combo1.SetFocus
End Sub
Private Sub Command2_Click()
frmLogin.Show
Unload Me
frmLogin.txtPassword.Text = ""
frmLogin.txtUserName.Text = ""
frmLogin.Combo1.Text = "请选择"
End Sub
Private Sub Command3_Click()
If frmLogin.Combo1.Text = "一般用户" Then
Me.Hide
Form4.Show
Form4.Combo1.Text = "一般用户"
Form4.Combo1.Enabled = False
Else
Me.Hide
Form4.Show
Form4.Combo1.Text = "系统管理员"
'Form4.Combo1.Enabled = False
End If
End Sub
Private Sub Command4_Click()
Form2.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -