?? frmsystemlog.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 frmSystemlog
BorderStyle = 1 'Fixed Single
Caption = "系統使用情況記錄窗"
ClientHeight = 4950
ClientLeft = 1245
ClientTop = 1755
ClientWidth = 8445
Icon = "frmSystemlog.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4950
ScaleWidth = 8445
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CmdViewlog
Caption = "查看記錄"
Height = 310
Left = 4410
TabIndex = 2
Top = 4440
Width = 1000
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 360
Top = 4350
Visible = 0 'False
Width = 1395
_ExtentX = 2461
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
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 cmdClose
Caption = "關閉"
Default = -1 'True
Height = 310
Left = 5790
TabIndex = 0
Top = 4440
Width = 1000
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmSystemlog.frx":0442
Height = 4080
Left = 2580
TabIndex = 1
Top = 150
Width = 5805
_ExtentX = 10239
_ExtentY = 7197
_Version = 393216
AllowUpdate = -1 'True
HeadLines = 1.4
RowHeight = 14
FormatLocked = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 700
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 = 5
BeginProperty Column00
DataField = "日期"
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 = "時間"
Caption = "時間"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "用戶帳號"
Caption = "用戶帳號"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
DataField = "用戶角色"
Caption = "用戶角色"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column04
DataField = "使用模塊"
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
BeginProperty Column00
ColumnWidth = 1080
EndProperty
BeginProperty Column01
ColumnWidth = 975.118
EndProperty
BeginProperty Column02
ColumnWidth = 1124.787
EndProperty
BeginProperty Column03
ColumnWidth = 1094.74
EndProperty
BeginProperty Column04
ColumnWidth = 1574.929
EndProperty
EndProperty
End
Begin VB.Image imgwindow
BorderStyle = 1 'Fixed Single
Height = 4065
Left = 60
Picture = "frmSystemlog.frx":0457
Stretch = -1 'True
Top = 150
Width = 2490
End
End
Attribute VB_Name = "frmSystemlog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdViewlog_Click()
'當點擊按鈕時,才取得數據
Adodc1.RecordSource = "Select * From 系統日志 Order By 日期 Desc, 時間 Desc"
Adodc1.Refresh
End Sub
Private Sub Form_Load()
Adodc1.ConnectionString = strConn
End Sub
Private Sub CmdClose_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -