📄 frmdyn.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmDyn
BorderStyle = 3 'Fixed Dialog
Caption = "日考勤动态报表"
ClientHeight = 7200
ClientLeft = 45
ClientTop = 330
ClientWidth = 8880
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Icon = "frmDyn.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7200
ScaleWidth = 8880
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Cancel = -1 'True
Height = 525
Index = 2
Left = 7290
Picture = "frmDyn.frx":000C
Style = 1 'Graphical
TabIndex = 15
Top = 1590
Width = 1230
End
Begin VB.CommandButton Command1
Height = 525
Index = 1
Left = 7290
Picture = "frmDyn.frx":1E7D
Style = 1 'Graphical
TabIndex = 14
Top = 892
Width = 1230
End
Begin VB.CommandButton Command1
Height = 525
Index = 0
Left = 7290
Picture = "frmDyn.frx":3DE8
Style = 1 'Graphical
TabIndex = 13
Top = 195
Width = 1230
End
' Download:http://www.codefans.net
Begin VB.Frame Frame1
Height = 2025
Left = 285
TabIndex = 5
Top = 75
Width = 6615
Begin VB.OptionButton optSel
Caption = "查询未打卡者"
Height = 285
Index = 2
Left = 390
TabIndex = 20
Top = 1508
Width = 1965
End
Begin VB.ComboBox cboDept
Height = 330
Left = 4440
Style = 2 'Dropdown List
TabIndex = 19
Top = 892
Width = 1860
End
Begin VB.CommandButton Command2
Caption = "…"
Height = 330
Left = 5970
TabIndex = 18
Top = 1485
Width = 330
End
Begin VB.CheckBox chkSel
Caption = "查询未打卡者"
Height = 285
Index = 1
Left = 2175
TabIndex = 17
Top = 1095
Visible = 0 'False
Width = 1560
End
Begin VB.CheckBox chkSel
Caption = "查询迟到者"
Height = 285
Index = 0
Left = 2175
TabIndex = 16
Top = 750
Visible = 0 'False
Width = 1365
End
Begin VB.OptionButton optSel
Caption = "查询全部打卡人员"
Height = 285
Index = 1
Left = 390
TabIndex = 12
Top = 323
Value = -1 'True
Width = 2055
End
Begin VB.OptionButton optSel
Caption = "查询迟到者"
Height = 285
Index = 0
Left = 405
TabIndex = 11
Top = 915
Width = 1530
End
Begin VB.TextBox txtEmp
Height = 330
Left = 4440
TabIndex = 10
Top = 1485
Width = 1530
End
Begin VB.CommandButton cmdSel
Caption = "…"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Index = 0
Left = 5970
TabIndex = 1
TabStop = 0 'False
Top = 300
Width = 330
End
Begin VB.TextBox txtDate
Height = 330
Index = 0
Left = 4440
Locked = -1 'True
TabIndex = 0
Top = 300
Width = 1530
End
Begin VB.CommandButton cmdSel
Caption = "…"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Index = 1
Left = 6015
TabIndex = 3
TabStop = 0 'False
Top = 675
Visible = 0 'False
Width = 330
End
Begin VB.TextBox txtDate
Height = 330
Index = 1
Left = 4665
Locked = -1 'True
TabIndex = 2
Top = 675
Visible = 0 'False
Width = 1350
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "员工卡号:"
Height = 210
Index = 3
Left = 3450
TabIndex = 9
Top = 1545
Width = 945
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "部 门:"
Height = 210
Index = 2
Left = 3450
TabIndex = 8
Top = 952
Width = 945
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "统计日期:"
Height = 210
Index = 0
Left = 3450
TabIndex = 7
Top = 360
Width = 945
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "统计截至日期:"
Height = 210
Index = 1
Left = 3225
TabIndex = 6
Top = 735
Visible = 0 'False
Width = 1365
End
End
Begin MSFlexGridLib.MSFlexGrid msfGrid
Height = 4485
Left = 255
TabIndex = 4
Top = 2400
Width = 8340
_ExtentX = 14711
_ExtentY = 7911
_Version = 393216
FixedCols = 0
ScrollBars = 2
End
End
Attribute VB_Name = "frmDyn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mFormatString As String
'*****OPTSEL
Const mALL = 1
Const mLATE = 0
Const mNOTCARD = 2
'***CHKSEL
'Const mLATE = 0
'Const mABNORMAL = 1
Private Sub cboDept_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
SendKeyTab KeyCode
End If
End Sub
Private Sub cmdSel_Click(Index As Integer)
frmRiLi.Show vbModal
If frmRiLi.mRetDate <> Empty Then
txtDate(Index) = frmRiLi.mRetDate
End If
End Sub
Private Sub Command1_Click(Index As Integer)
Select Case Index
Case 0
If Trim(txtDate(0)) = Empty Then
MsgBox Trim(Label1(0)) & "不能为空", vbInformation, gTitle
txtDate(0).SetFocus
Exit Sub
End If
Me.MousePointer = vbHourglass
Me.Enabled = False
FindFlow
Me.Enabled = True
Me.MousePointer = 0
Command1(1).Enabled = msfGrid.Rows > msfGrid.FixedRows
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -