📄 formdocument.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form Formdocument
BorderStyle = 1 'Fixed Single
Caption = "操作记录"
ClientHeight = 5310
ClientLeft = 45
ClientTop = 330
ClientWidth = 6495
ControlBox = 0 'False
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 5310
ScaleWidth = 6495
Begin VB.CommandButton Command3
Caption = "恢 复"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2520
TabIndex = 3
Top = 4680
Width = 975
End
Begin VB.CommandButton Command2
Caption = "关 闭"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4680
TabIndex = 2
Top = 4680
Width = 975
End
Begin VB.CommandButton Command1
Caption = "查 找"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 1
Top = 4680
Width = 975
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1
Bindings = "Formdocument.frx":0000
Height = 4575
Left = 0
TabIndex = 0
Top = 0
Width = 6495
_ExtentX = 11456
_ExtentY = 8070
_Version = 393216
Cols = 5
ScrollBars = 2
_NumberOfBands = 1
_Band(0).Cols = 5
_Band(0).GridLinesBand= 1
_Band(0).TextStyleBand= 0
_Band(0).TextStyleHeader= 0
_Band(0)._NumMapCols= 5
_Band(0)._MapCol(0)._Name= "操作员"
_Band(0)._MapCol(0)._RSIndex= 0
_Band(0)._MapCol(1)._Name= "进入时间"
_Band(0)._MapCol(1)._RSIndex= 1
_Band(0)._MapCol(2)._Name= "项目"
_Band(0)._MapCol(2)._RSIndex= 2
_Band(0)._MapCol(3)._Name= "离开时间"
_Band(0)._MapCol(3)._RSIndex= 3
_Band(0)._MapCol(4)._Name= "查询时间"
_Band(0)._MapCol(4)._RSIndex= 4
_Band(0)._MapCol(4)._Hidden= -1 'True
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 1080
Width = 2535
_ExtentX = 4471
_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:\My Documents\花寨子2000.udl"
OLEDBString = ""
OLEDBFile = "C:\My Documents\花寨子2000.udl"
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
End
Attribute VB_Name = "Formdocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim entrydate As Date
Private Sub command1_Click()
'查找
Load Formdment1
Formdment1.Show vbModal
If filterstring <> "" Or lstring <> "" Then
Adodc1.Recordset.Filter = filterstring
MSHFlexGrid1.Clear
MSHFlexGrid1.Refresh
Else
Exit Sub
End If
Command3.Enabled = True
End Sub
Private Sub Command2_Click()
'关闭
Unload Me
End Sub
Private Sub Command3_Click()
'恢复
Adodc1.Recordset.Filter = adFilterNone
MSHFlexGrid1.Clear
MSHFlexGrid1.Refresh
Command3.Enabled = False
End Sub
Private Sub Form_Load()
Command3.Enabled = False
entrydate = Now()
MSHFlexGrid1.ColWidth(0, 0) = 300
MSHFlexGrid1.ColWidth(1, 0) = 800
MSHFlexGrid1.ColWidth(2, 0) = 1780
MSHFlexGrid1.ColWidth(3, 0) = 1500
MSHFlexGrid1.ColWidth(4, 0) = 1780
MSHFlexGrid1.ScrollTrack = True
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Call history(staff, entrydate, Me.Caption, Now())
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -