📄 frmcheckkq3.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
Begin VB.Form frmCheckKQ3
Caption = "查询员工加班信息"
ClientHeight = 3675
ClientLeft = 60
ClientTop = 345
ClientWidth = 5895
LinkTopic = "Form1"
ScaleHeight = 3675
ScaleWidth = 5895
StartUpPosition = 3 '窗口缺省
Begin VB.CheckBox chkName
Caption = "员工姓名:"
Height = 255
Left = 480
TabIndex = 8
Top = 840
Width = 1335
End
Begin VB.CheckBox chkBH
Caption = "员工编号:"
Height = 255
Left = 480
TabIndex = 7
Top = 360
Width = 1455
End
Begin VB.CheckBox chkDC
Caption = "当日时间"
Height = 300
Left = 480
TabIndex = 6
Top = 1440
Width = 1215
End
Begin VB.Frame Frame1
Height = 735
Left = 480
TabIndex = 2
Top = 1800
Width = 5175
Begin MSComCtl2.DTPicker dtpTo
Height = 255
Left = 3120
TabIndex = 3
Top = 240
Width = 1575
_ExtentX = 2778
_ExtentY = 450
_Version = 393216
Format = 85131265
CurrentDate = 38124
End
Begin MSComCtl2.DTPicker dtpFrom
Height = 255
Left = 960
TabIndex = 4
Top = 240
Width = 1335
_ExtentX = 2355
_ExtentY = 450
_Version = 393216
Format = 85131265
CurrentDate = 38124
End
Begin VB.Label Label1
Caption = "从"
Height = 255
Left = 360
TabIndex = 5
Top = 240
Width = 255
End
End
Begin VB.TextBox txtName
Height = 375
Left = 2400
TabIndex = 1
Top = 960
Width = 2415
End
Begin VB.TextBox txtBH
Height = 375
Left = 2400
TabIndex = 0
Top = 360
Width = 2415
End
Begin MSForms.CommandButton cmdOK
Height = 375
Left = 600
TabIndex = 11
Top = 2880
Width = 1095
Caption = "确定"
PicturePosition = 327683
Size = "1931;661"
Picture = "frmCheckKQ3.frx":0000
FontName = "宋体"
FontHeight = 180
FontCharSet = 134
FontPitchAndFamily= 34
ParagraphAlign = 3
End
Begin MSForms.CommandButton cmdExit
Height = 375
Left = 4080
TabIndex = 10
Top = 2880
Width = 1095
Caption = "返回"
PicturePosition = 327683
Size = "1931;661"
FontName = "宋体"
FontHeight = 180
FontCharSet = 134
FontPitchAndFamily= 34
ParagraphAlign = 3
End
Begin MSForms.CommandButton cmdClear
Height = 375
Left = 2400
TabIndex = 9
Top = 2880
Width = 1095
Caption = "清空"
PicturePosition = 327683
Size = "1931;661"
Picture = "frmCheckKQ3.frx":039A
FontName = "宋体"
FontHeight = 180
FontCharSet = 134
FontPitchAndFamily= 34
ParagraphAlign = 3
End
End
Attribute VB_Name = "frmCheckKQ3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdClear_Click()
txtBH.Text = ""
txtName.Text = ""
End Sub
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub Text1_Change()
End Sub
Private Sub cmdOk_Click()
Dim strHead As String
Dim strAdd As String
Dim strSql As String
strHead = "select ID,t_br.工号,t_br.姓名,特殊加班天数,正常加班天数,加班日期 from OverTimeInfo,t_br where OverTimeInfo.工号=t_br.工号"
If chkBH.Value = 1 And Trim(txtBH.Text) <> "" Then
strAdd = strAdd & " and t_br.工号='" & Trim(txtBH.Text) & "'"
End If
If chkName.Value = 1 And Trim(txtName.Text) <> "" Then
strAdd = strAdd & " and t_br.姓名 like '%" & Trim(txtName.Text) & "%'"
End If
If chkDC = 1 Then
strAdd = strAdd & " and 加班日期>= #" & dtpFrom & "# and 加班日期<=#" & dtpTo & "#"
End If
strSql = strHead & strAdd
frmOverTimeInfoList.showgrid1 (strSql)
frmOverTimeInfoList.Show
End Sub
Private Sub Form_Load()
dtpFrom.Value = Date
dtpTo.Value = Date
End Sub
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -