?? frmcheckedit.frm
字號:
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 5160
TabIndex = 24
Top = 360
Width = 1020
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "事假天數(shù)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 2880
TabIndex = 23
Top = 360
Width = 1020
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "病假天數(shù)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 480
TabIndex = 22
Top = 360
Width = 1020
End
End
Begin VB.Frame Frame1
Caption = "基本信息"
BeginProperty Font
Name = "宋體"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1215
Left = 120
TabIndex = 14
Top = 120
Width = 7695
Begin VB.ComboBox ComboQq
Height = 315
ItemData = "FrmCheckEdit.frx":23CE
Left = 5640
List = "FrmCheckEdit.frx":248F
TabIndex = 0
Text = "ComboQq"
Top = 780
Width = 735
End
Begin VB.ComboBox ComboName
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
ItemData = "FrmCheckEdit.frx":25B9
Left = 5640
List = "FrmCheckEdit.frx":25BB
TabIndex = 13
Text = "ComboName"
Top = 300
Width = 1335
End
Begin VB.Label lblDays
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "31"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 2280
TabIndex = 20
Top = 840
Width = 180
End
Begin VB.Label lblMonth
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "2004-8"
BeginProperty Font
Name = "宋體"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 2280
TabIndex = 19
Top = 360
Width = 540
End
Begin VB.Label Label8
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "員工姓名"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 4320
TabIndex = 18
Top = 360
Width = 1020
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "當(dāng)月天數(shù)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 960
TabIndex = 17
Top = 840
Width = 1020
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "全勤天數(shù)"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 4320
TabIndex = 16
Top = 840
Width = 1020
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "考勤月份"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 240
Left = 960
TabIndex = 15
Top = 360
Width = 1020
End
End
Begin VB.Label LblOK
BackStyle = 0 'Transparent
Caption = "確 定"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 2880
MouseIcon = "FrmCheckEdit.frx":25BD
MousePointer = 99 'Custom
TabIndex = 35
Top = 3840
Width = 735
End
Begin VB.Image Image3
Height = 300
Left = 2280
Picture = "FrmCheckEdit.frx":28C7
Top = 3840
Width = 300
End
Begin VB.Label LblCancel
BackStyle = 0 'Transparent
Caption = "取 消"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4920
MouseIcon = "FrmCheckEdit.frx":2CE3
MousePointer = 99 'Custom
TabIndex = 34
Top = 3840
Width = 855
End
Begin VB.Image Image4
Height = 300
Left = 4320
Picture = "FrmCheckEdit.frx":2FED
Top = 3840
Width = 300
End
End
Attribute VB_Name = "FrmCheckEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean '插入=false,修改=true
Public OriEmpId As Long
Public TmpOk As Boolean
Private Sub ComboName_GotFocus()
ComboQq.SetFocus
'設(shè)置FrmEmpSel窗體的位置
FrmEmpSel.Left = Me.Left + ComboName.Left + 350 - FrmEmpSel.Width
FrmEmpSel.Top = Me.Top + ComboName.Top + ComboName.Height + 450
FrmEmpSel.Show 1
'將選擇的員工姓名顯示到ComboUpper控件中
ComboName.Text = UpperEmp.Emp_Name
End Sub
Private Sub LblCancel_Click()
TmpOk = False
Unload Me
End Sub
Private Sub LblOK_Click()
If UpperEmp.Emp_Id <= 0 Then
MsgBox "請選擇員工"
Exit Sub
End If
With MyCheck
'判斷記錄是否存在
If Modify = False Or OriEmpId <> UpperEmp.Emp_Id Then
If .In_DB(lblMonth, UpperEmp.Emp_Id) = True Then
MsgBox "要添加的記錄已經(jīng)存在,請修改已有的記錄"
Exit Sub
End If
End If
.CheckinMonth = lblMonth
.Emp_Id = UpperEmp.Emp_Id
.DaysOfMonth = Val(lblDays)
.qqDays = Val(ComboQq.Text)
.bjDays = Val(ComboBj.Text)
.sjDays = Val(ComboSj.Text)
.kgDays = Val(ComboKg.Text)
.fdxjDays = Val(ComboFdxj.Text)
.nxjDays = Val(ComboNxj.Text)
.dxjDays = Val(ComboDxj.Text)
.cxDays = Val(ComboCx.Text)
.cdDays = Val(ComboCd.Text)
.ztDays = Val(ComboZt.Text)
.ot1Days = Val(ComboOt1.Text)
.ot2Days = Val(ComboOt2.Text)
.ot3Days = Val(ComboOt3.Text)
If Modify = False Then
.Insert
Else
Call .Update(lblMonth, OriEmpId)
End If
End With
TmpOk = True
Unload Me
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -