?? 考勤統計.frm
字號:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form 考勤統計
Caption = "考勤統計"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form7"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "考勤統計.frx":0000
Height = 1095
Left = 1080
TabIndex = 35
Top = 240
Width = 2415
_ExtentX = 4260
_ExtentY = 1931
_Version = 393216
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\學習\企業考勤管理系統\爵哥\考勤管理系統\爵哥\db2.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 2400
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 9120
Width = 4815
End
Begin VB.Frame Frame2
Height = 4575
Left = 1800
TabIndex = 10
Top = 4080
Width = 8895
Begin VB.TextBox Text14
Height = 375
Left = 6120
TabIndex = 34
Top = 3960
Width = 1815
End
Begin VB.TextBox Text13
Height = 375
Left = 6120
TabIndex = 32
Top = 3360
Width = 1815
End
Begin VB.TextBox Text12
Height = 375
Left = 6120
TabIndex = 30
Top = 2640
Width = 1815
End
Begin VB.TextBox Text11
Height = 375
Left = 6120
TabIndex = 28
Top = 1920
Width = 1815
End
Begin VB.TextBox Text10
Height = 375
Left = 6120
TabIndex = 26
Top = 1200
Width = 1815
End
Begin VB.TextBox Text9
Height = 375
Left = 6120
TabIndex = 24
Top = 480
Width = 1815
End
Begin VB.TextBox Text8
Height = 375
Left = 1440
TabIndex = 22
Top = 3960
Width = 1695
End
Begin VB.TextBox Text7
Height = 375
Left = 1440
TabIndex = 20
Top = 3360
Width = 1695
End
Begin VB.TextBox Text6
Height = 375
Left = 1440
TabIndex = 18
Top = 2640
Width = 1695
End
Begin VB.TextBox Text5
Height = 375
Left = 1440
TabIndex = 16
Top = 1920
Width = 1695
End
Begin VB.TextBox Text4
Height = 375
Left = 1440
TabIndex = 14
Top = 1200
Width = 1695
End
Begin VB.TextBox Text3
Height = 375
Left = 1440
TabIndex = 12
Top = 480
Width = 1695
End
Begin VB.Label Label15
Caption = "曠工次數"
Height = 255
Left = 5160
TabIndex = 33
Top = 4080
Width = 735
End
Begin VB.Label Label14
Caption = "早退次數"
Height = 255
Left = 5160
TabIndex = 31
Top = 3480
Width = 735
End
Begin VB.Label Label13
Caption = "遲到次數"
Height = 255
Left = 5160
TabIndex = 29
Top = 2760
Width = 735
End
Begin VB.Label Label12
Caption = "總加班時間"
Height = 255
Left = 5040
TabIndex = 27
Top = 2040
Width = 975
End
Begin VB.Label Label11
Caption = "加班次數"
Height = 255
Left = 5160
TabIndex = 25
Top = 1320
Width = 735
End
Begin VB.Label Label10
Caption = "部門ID"
Height = 255
Left = 5160
TabIndex = 23
Top = 600
Width = 615
End
Begin VB.Label Label9
Caption = "備注"
Height = 255
Left = 600
TabIndex = 21
Top = 4080
Width = 615
End
Begin VB.Label Label8
Caption = "總請假時間"
Height = 255
Left = 480
TabIndex = 19
Top = 3480
Width = 975
End
Begin VB.Label Label7
Caption = "請假次數"
Height = 255
Left = 600
TabIndex = 17
Top = 2760
Width = 855
End
Begin VB.Label Label6
Caption = "總出差時間"
Height = 255
Left = 480
TabIndex = 15
Top = 2040
Width = 975
End
Begin VB.Label Label5
Caption = "出差次數"
Height = 255
Left = 600
TabIndex = 13
Top = 1320
Width = 735
End
Begin VB.Label Label4
Caption = "職工ID"
Height = 255
Left = 600
TabIndex = 11
Top = 600
Width = 615
End
End
Begin VB.Frame Frame1
Height = 1695
Left = 1800
TabIndex = 1
Top = 2040
Width = 8895
Begin VB.CommandButton Command4
Caption = "關閉窗體"
Height = 375
Left = 7200
TabIndex = 9
Top = 1080
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "清空記錄"
Height = 375
Left = 5040
TabIndex = 8
Top = 1080
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "保存記錄"
Height = 375
Left = 2640
TabIndex = 7
Top = 1080
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "考勤統計"
Height = 375
Left = 0
TabIndex = 6
Top = 1080
Width = 1335
End
Begin VB.TextBox Text2
Height = 375
Left = 5520
TabIndex = 5
Top = 240
Width = 2055
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 3
Top = 240
Width = 2055
End
Begin VB.Label Label3
Caption = "結束日期"
Height = 255
Left = 4440
TabIndex = 4
Top = 360
Width = 855
End
Begin VB.Label Label2
Caption = "開始日期"
Height = 255
Left = 240
TabIndex = 2
Top = 360
Width = 735
End
End
Begin VB.Label Label1
Caption = " 考勤統計"
BeginProperty Font
Name = "宋體"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 3000
TabIndex = 0
Top = 0
Width = 4695
End
End
Attribute VB_Name = "考勤統計"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim sql As String
Data1.DatabaseName = "D:\學習\企業考勤管理系統\爵哥\考勤管理系統\爵哥\db2.mdb"
sql = "select 職工ID, count(*) as 出差次數 from 出差管理 group by 職工ID "
Data1.RecordSource = sql
Data1.Refresh
Text4 = Data1.Recordset.Fields("出差次數")
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -