?? 出勤管理.frm
字號:
VERSION 5.00
Begin VB.Form 出勤管理
Caption = "出勤管理"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form3"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text9
Height = 375
Left = 6840
TabIndex = 17
Top = 5160
Width = 1575
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\大作業\企業考勤管理系統\公司考勤管理系統\自己動手\爵哥\爵哥\db1.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 1560
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "出勤管理"
Top = 7320
Width = 6015
End
Begin VB.Frame Frame2
Caption = "出勤信息"
Height = 2535
Left = 840
TabIndex = 8
Top = 4440
Width = 7935
Begin VB.TextBox Text8
Height = 375
Left = 1320
TabIndex = 16
Text = "Text8"
Top = 2040
Width = 6255
End
Begin VB.TextBox Text7
Height = 375
Left = 1320
TabIndex = 14
Top = 1560
Width = 1815
End
Begin VB.TextBox Text6
Height = 375
Left = 1320
TabIndex = 12
Top = 960
Width = 1815
End
Begin VB.TextBox Text5
Height = 375
Left = 1320
TabIndex = 10
Top = 360
Width = 1815
End
Begin VB.Label Label4
Caption = "是否為上午(true/false)"
Height = 375
Left = 3720
TabIndex = 18
Top = 720
Width = 2175
End
Begin VB.Label Label9
Caption = "備注"
Height = 255
Left = 480
TabIndex = 15
Top = 2160
Width = 615
End
Begin VB.Label Label8
Caption = "下班時間"
Height = 255
Left = 480
TabIndex = 13
Top = 1680
Width = 735
End
Begin VB.Label Label7
Caption = "上班時間"
Height = 255
Left = 480
TabIndex = 11
Top = 1080
Width = 735
End
Begin VB.Label Label6
Caption = "上班日期"
Height = 255
Left = 480
TabIndex = 9
Top = 480
Width = 735
End
End
Begin VB.CommandButton Command2
Caption = "關閉窗體"
Height = 375
Left = 6960
TabIndex = 3
Top = 1560
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "保存記錄"
Height = 375
Left = 2040
TabIndex = 2
Top = 1560
Width = 2055
End
Begin VB.Frame Frame1
Height = 2175
Left = 840
TabIndex = 1
Top = 2280
Width = 9495
Begin VB.TextBox Text2
Height = 375
Left = 5520
TabIndex = 7
Top = 960
Width = 1935
End
Begin VB.TextBox Text1
Height = 375
Left = 1680
MaxLength = 6
TabIndex = 5
Top = 960
Width = 1935
End
Begin VB.Label Label3
Caption = "部門ID"
Height = 255
Left = 4680
TabIndex = 6
Top = 1080
Width = 735
End
Begin VB.Label Label2
Caption = "職員ID"
Height = 255
Left = 600
TabIndex = 4
Top = 1080
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 = 975
Left = 3720
TabIndex = 0
Top = 120
Width = 4095
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 n As Integer
Command1.Enabled = True
Do While Len(Text1) <> 6
If Len(Text1) <> 6 Then
MsgBox ("職工號有誤")
Text1 = InputBox("請再次輸入職工號")
End If
Loop
Do While Len(Text5) <> 10
n = n + 1
If n > 3 Then
End
End If
If Len(Text5) <> 10 Then
MsgBox ("開始日期有誤")
Text5 = InputBox("請再次輸入開始日期")
End If
Loop
Data1.Recordset.AddNew
Data1.Recordset.Fields("職工ID") = Text1
Data1.Recordset.Fields("部門ID") = Text2
Data1.Recordset.Fields("上班日期") = Text5
Data1.Recordset.Fields("上班時間") = Text6
Data1.Recordset.Fields("下班時間") = Text7
Data1.Recordset.Fields("是否為上午") = Text9
Data1.Recordset.Fields("備注") = Text8
Data1.Recordset.Update
Data1.Refresh
Command1.Enabled = False
End Sub
Private Sub Command2_Click()
End
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -