⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmdaylist.frm

📁 企业人事管理系统,有考勤,人员管理等功能,值得研究,也是我付费弄来的,绝对超值
💻 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 frmdaylist 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "报表"
   ClientHeight    =   4290
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6015
   Icon            =   "frmdaylist.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4290
   ScaleWidth      =   6015
   StartUpPosition =   1  '所有者中心
   Begin VB.Frame Frame2 
      Height          =   735
      Left            =   480
      TabIndex        =   10
      Top             =   2880
      Width           =   5175
      Begin MSComCtl2.DTPicker dtp2 
         Height          =   255
         Left            =   3120
         TabIndex        =   11
         Top             =   240
         Width           =   1575
         _ExtentX        =   2778
         _ExtentY        =   450
         _Version        =   393216
         Format          =   85131265
         CurrentDate     =   39540
      End
      Begin MSComCtl2.DTPicker dtp1 
         Height          =   255
         Left            =   960
         TabIndex        =   12
         Top             =   240
         Width           =   1215
         _ExtentX        =   2143
         _ExtentY        =   450
         _Version        =   393216
         Format          =   85131265
         CurrentDate     =   39540
      End
   End
   Begin VB.CheckBox chkDL 
      Caption         =   "调入时间"
      Height          =   255
      Left            =   480
      TabIndex        =   9
      Top             =   2520
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      Height          =   735
      Left            =   480
      TabIndex        =   5
      Top             =   1680
      Width           =   5175
      Begin MSComCtl2.DTPicker dtpTo 
         Height          =   255
         Left            =   3120
         TabIndex        =   6
         Top             =   240
         Width           =   1575
         _ExtentX        =   2778
         _ExtentY        =   450
         _Version        =   393216
         Format          =   85131265
         CurrentDate     =   39540
      End
      Begin MSComCtl2.DTPicker dtpFrom 
         Height          =   255
         Left            =   960
         TabIndex        =   7
         Top             =   240
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   450
         _Version        =   393216
         Format          =   85131265
         CurrentDate     =   39540
      End
      Begin VB.Label Label1 
         Caption         =   "从"
         Height          =   255
         Left            =   480
         TabIndex        =   8
         Top             =   240
         Width           =   255
      End
   End
   Begin VB.TextBox txtBH 
      Height          =   375
      Left            =   2400
      TabIndex        =   4
      Top             =   360
      Width           =   2415
   End
   Begin VB.TextBox txtName 
      Height          =   375
      Left            =   2400
      TabIndex        =   3
      Top             =   960
      Width           =   2415
   End
   Begin VB.CheckBox chkDC 
      Caption         =   "调出时间"
      Height          =   180
      Left            =   480
      TabIndex        =   2
      Top             =   1440
      Width           =   1095
   End
   Begin VB.CheckBox chkBH 
      Caption         =   "员工编号:"
      Height          =   255
      Left            =   480
      TabIndex        =   1
      Top             =   360
      Width           =   1455
   End
   Begin VB.CheckBox chkName 
      Caption         =   "员工姓名:"
      Height          =   255
      Left            =   480
      TabIndex        =   0
      Top             =   960
      Width           =   1335
   End
   Begin MSForms.CommandButton Command1 
      Height          =   375
      Left            =   1320
      TabIndex        =   13
      Top             =   3840
      Width           =   1455
      Caption         =   "报表打印"
      PicturePosition =   327683
      Size            =   "2566;661"
      Picture         =   "frmdaylist.frx":0442
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
End
Attribute VB_Name = "frmdaylist"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim strHead As String
 Dim strAdd As String
 Dim strSql As String
 
 
 strHead = "SELECT t_br.工号, t_br.姓名, AlterationInfo.备注, AlterationInfo.调出时间, AlterationInfo.调入时间, AlterationInfo.原部门, AlterationInfo.新部门, AlterationInfo.原职务, AlterationInfo.新职务 FROM AlterationInfo, t_br WHERE AlterationInfo.工号 = 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.姓名='" & Trim(txtName.Text) & "'"
  End If
  
  If chkDC = 1 Then
    strAdd = strAdd & " and AlterationInfo.调出时间>= #" & dtpFrom & "# and AlterationInfo.调出时间<=#" & dtpTo & "#"
  End If
  
   If chkDL = 1 Then
    strAdd = strAdd & " and AlterationInfo.调入时间>= #" & dtp1 & "# and AlterationInfo.调入时间<=#" & dtp2 & "#"
  End If
   
 strSql = strHead & strAdd
 If DataEnv.rs调动表.State = 1 Then
 DataEnv.rs调动表.Close
 End If
 DataEnv.rs调动表.Open strSql
 rptDD.Show
 
End Sub

Private Sub Form_Load()

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -