?? 加班管理.frm
字號:
VERSION 5.00
Begin VB.Form 加班管理
Caption = "加班管理"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form5"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\大作業\企業考勤管理系統\公司考勤管理系統\自己動手\爵哥\爵哥\db1.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 495
Left = 2640
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "加班管理"
Top = 7320
Width = 6495
End
Begin VB.Frame Frame1
Caption = "加班信息"
Height = 2055
Left = 1320
TabIndex = 9
Top = 3960
Width = 7935
Begin VB.TextBox Text6
Height = 615
Left = 5400
TabIndex = 17
Top = 1320
Width = 1935
End
Begin VB.TextBox Text5
Height = 495
Left = 1440
TabIndex = 16
Top = 1200
Width = 1335
End
Begin VB.TextBox Text4
Height = 375
Left = 5640
TabIndex = 15
Top = 480
Width = 1575
End
Begin VB.TextBox Text3
Height = 495
Left = 1440
TabIndex = 14
Top = 480
Width = 1335
End
Begin VB.Label Label11
Caption = "備注"
Height = 255
Left = 4680
TabIndex = 13
Top = 1440
Width = 615
End
Begin VB.Label Label10
Caption = "結束日期"
Height = 255
Left = 4680
TabIndex = 12
Top = 600
Width = 735
End
Begin VB.Label Label9
Caption = "加班原因"
Height = 255
Left = 360
TabIndex = 11
Top = 1440
Width = 855
End
Begin VB.Label Label8
Caption = "開始日期"
Height = 255
Left = 360
TabIndex = 10
Top = 360
Width = 855
End
End
Begin VB.TextBox Text2
Height = 375
Left = 6000
TabIndex = 8
Top = 2880
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 2520
MaxLength = 6
TabIndex = 6
Top = 2880
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "關閉窗體"
Height = 495
Left = 6120
TabIndex = 3
Top = 1440
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "保存記錄"
Height = 495
Left = 2400
TabIndex = 2
Top = 1440
Width = 1575
End
Begin VB.Label Label5
Caption = "部門ID"
Height = 255
Left = 5280
TabIndex = 7
Top = 3000
Width = 615
End
Begin VB.Label Label4
Caption = "職工ID"
Height = 255
Left = 1680
TabIndex = 5
Top = 3000
Width = 735
End
Begin VB.Label Label3
Height = 1575
Left = 1320
TabIndex = 4
Top = 2280
Width = 7815
End
Begin VB.Label Label2
Height = 735
Left = 2040
TabIndex = 1
Top = 1320
Width = 6735
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 = 495
Left = 4200
TabIndex = 0
Top = 480
Width = 2175
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(Text3) <> 10
n = n + 1
If n > 3 Then
End
End If
If Len(Text3) <> 10 Then
MsgBox ("開始日期有誤")
Text3 = InputBox("請再次輸入開始日期")
End If
Loop
Do While Len(Text4) <> 10
If Len(Text4) <> 10 Then
MsgBox ("結束日期有誤")
Text4 = InputBox("請再次輸入開始日期")
End If
Loop
Data1.Recordset.AddNew
Data1.Recordset.Fields("職工ID") = Text1
Data1.Recordset.Fields("部門ID") = Text2
Data1.Recordset.Fields("開始日期") = Text3
Data1.Recordset.Fields("結束日期") = Text4
Data1.Recordset.Fields("加班原因") = Text5
Data1.Recordset.Fields("備注") = Text6
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 + -