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

📄 f_mianshicx.frm

📁 公司人员综合管理系统 提供公司人员的简历、工资账目、考勤、医疗纪录、失业保险等情况
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form F_MianShiCX 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "面试查询"
   ClientHeight    =   7365
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   10170
   ControlBox      =   0   'False
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   7365
   ScaleWidth      =   10170
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame3 
      Height          =   4695
      Left            =   120
      TabIndex        =   16
      Top             =   2280
      Width           =   9495
      Begin VB.CommandButton CmdXianShi_Exit 
         Caption         =   "关闭"
         Height          =   375
         Left            =   8160
         TabIndex        =   29
         Top             =   3840
         Width           =   1095
      End
      Begin VB.TextBox txtFields 
         DataField       =   "参加人"
         Height          =   285
         Index           =   4
         Left            =   6600
         TabIndex        =   22
         Top             =   2640
         Width           =   2415
      End
      Begin VB.TextBox txtFields 
         DataField       =   "面试人数"
         Height          =   285
         Index           =   3
         Left            =   2160
         TabIndex        =   21
         Top             =   2640
         Width           =   2415
      End
      Begin VB.TextBox txtFields 
         DataField       =   "招聘编号"
         Height          =   285
         Index           =   0
         Left            =   2160
         TabIndex        =   19
         Top             =   720
         Width           =   2415
      End
      Begin VB.ComboBox Combo4 
         DataField       =   "所属部门"
         Height          =   315
         Left            =   2160
         TabIndex        =   18
         Top             =   1560
         Width           =   2415
      End
      Begin VB.ComboBox Combo3 
         DataField       =   "岗位名称"
         Height          =   315
         Left            =   6600
         TabIndex        =   17
         Top             =   1560
         Width           =   2415
      End
      Begin MSComCtl2.DTPicker DTPicker3 
         DataField       =   "面试日期"
         Height          =   300
         Left            =   6600
         TabIndex        =   20
         Top             =   720
         Width           =   2415
         _ExtentX        =   4260
         _ExtentY        =   529
         _Version        =   393216
         CheckBox        =   -1  'True
         DateIsNull      =   -1  'True
         Format          =   62849025
         CurrentDate     =   36191
      End
      Begin VB.Label lblLabels 
         Caption         =   "参加人:"
         Height          =   255
         Index           =   4
         Left            =   5280
         TabIndex        =   28
         Top             =   2640
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "面试人数:"
         Height          =   255
         Index           =   3
         Left            =   360
         TabIndex        =   27
         Top             =   2640
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "所属部门:"
         Height          =   255
         Index           =   2
         Left            =   360
         TabIndex        =   26
         Top             =   1560
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "岗位名称:"
         Height          =   255
         Index           =   1
         Left            =   5160
         TabIndex        =   25
         Top             =   1560
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "面试日期:"
         Height          =   255
         Index           =   0
         Left            =   5160
         TabIndex        =   24
         Top             =   720
         Width           =   1815
      End
      Begin VB.Label lblLabels 
         Caption         =   "招聘编号:"
         Height          =   255
         Index           =   5
         Left            =   360
         TabIndex        =   23
         Top             =   720
         Width           =   1815
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "选择查询条件"
      Height          =   1935
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   9495
      Begin VB.CommandButton Command2 
         Caption         =   "关闭"
         Height          =   375
         Left            =   8160
         TabIndex        =   9
         Top             =   1440
         Width           =   1095
      End
      Begin VB.CommandButton Command1 
         Caption         =   "查询"
         Height          =   375
         Left            =   6480
         TabIndex        =   8
         Top             =   1440
         Width           =   1095
      End
      Begin VB.CheckBox Check2 
         Caption         =   "Check2"
         Height          =   255
         Left            =   1800
         TabIndex        =   7
         Top             =   360
         Width           =   255
      End
      Begin VB.CheckBox Check1 
         Caption         =   "Check1"
         Height          =   255
         Left            =   360
         TabIndex        =   6
         Top             =   360
         Width           =   255
      End
      Begin VB.ComboBox Combo2 
         Height          =   315
         Left            =   360
         TabIndex        =   5
         Top             =   1080
         Visible         =   0   'False
         Width           =   1695
      End
      Begin VB.ComboBox Combo1 
         Height          =   315
         Left            =   360
         TabIndex        =   4
         Top             =   1080
         Visible         =   0   'False
         Width           =   1695
      End
      Begin MSComCtl2.DTPicker DTPicker2 
         Height          =   300
         Left            =   4920
         TabIndex        =   10
         Top             =   1080
         Visible         =   0   'False
         Width           =   1455
         _ExtentX        =   2566
         _ExtentY        =   529
         _Version        =   393216
         Format          =   62849025
         CurrentDate     =   36251
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   300
         Left            =   2160
         TabIndex        =   11
         Top             =   1080
         Visible         =   0   'False
         Width           =   1575
         _ExtentX        =   2778
         _ExtentY        =   529
         _Version        =   393216
         Format          =   62849025
         CurrentDate     =   36251
      End
      Begin VB.Label Label5 
         Caption         =   "结束时间"
         Height          =   255
         Left            =   3960
         TabIndex        =   15
         Top             =   1080
         Visible         =   0   'False
         Width           =   735
      End
      Begin VB.Label Label4 
         Caption         =   "开始时间"
         Height          =   375
         Left            =   360
         TabIndex        =   14
         Top             =   1080
         Visible         =   0   'False
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "招聘日期"
         Height          =   255
         Left            =   2160
         TabIndex        =   13
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "岗位名称"
         Height          =   255
         Left            =   720
         TabIndex        =   12
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "查询结果"
      Height          =   4695
      Left            =   120
      TabIndex        =   0
      Top             =   2280
      Width           =   9495
      Begin VB.CommandButton Command3 
         Caption         =   "显示"
         Height          =   375
         Left            =   8160
         TabIndex        =   1
         Top             =   4200
         Width           =   1095
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Height          =   3615
         Left            =   120
         TabIndex        =   2
         Top             =   360
         Width           =   9135
         _ExtentX        =   16113
         _ExtentY        =   6376
         _Version        =   393216
         HeadLines       =   1
         RowHeight       =   15
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column01 
            DataField       =   ""
            Caption         =   ""
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "F_MianShiCX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents rs As Recordset
Attribute rs.VB_VarHelpID = -1
Dim WithEvents adoPrimaryRS As Recordset
Attribute adoPrimaryRS.VB_VarHelpID = -1
Dim WithEvents adoXianshiRS As Recordset
Attribute adoXianshiRS.VB_VarHelpID = -1
Dim JieYue_ID As String  '为找到ID 的查询SQL 语句


Private Sub Check1_Click()
If Check1.Value = 1 Then
    Check2.Value = 0
   
    Combo1.Clear
    
    SQL = "select distinct 岗位名称 from 面试登记"
    Set rs = db.Execute(SQL)
    
    Do While Not rs.EOF
            If IsNull(rs("岗位名称")) = False Then
                Combo1.AddItem rs("岗位名称")
            End If
            rs.MoveNext
    Loop
    Combo1.Visible = True
   
    Label4.Visible = False
    Label5.Visible = False
    DTPicker1.Visible = False
    DTPicker2.Visible = False
    Frame2.Visible = False
    Frame3.Visible = False
End If
End Sub

Private Sub Check2_Click()
If Check2.Value = 1 Then
    Check1.Value = 0
 
   
    Combo1.Visible = False
   
    Label4.Visible = True
    Label5.Visible = True
    DTPicker1.Visible = True
    DTPicker2.Visible = True
    
    Frame2.Visible = False
    Frame3.Visible = False
End If
End Sub


Private Sub CmdXianShi_Exit_Click()
Frame2.Visible = True
Frame3.Visible = False
End Sub

Private Sub Command1_Click()
Dim DataGrid_sql  As String  '数据表格中的数据源
Dim oText As TextBox

   If Check1.Value = 1 Then
         
        DataGrid_sql = "select * from 面试登记 where 岗位名称 ='" & Combo1.Text & "'"
        
   End If

   

    If Check2.Value = 1 Then
        
        DataGrid_sql = "select * from 面试登记 where 面试日期   between ' " & DTPicker1 & " ' and ' " & DTPicker2 & " '"
       
    End If
    
    If Check1.Value = 1 Or Check2.Value = 1 Then
    
      Set adoPrimaryRS = New Recordset
      adoPrimaryRS.Open DataGrid_sql, db, adOpenStatic, adLockOptimistic

      Set DataGrid1.DataSource = adoPrimaryRS
    
          
      Frame3.Visible = False
      Frame2.Visible = True
    End If
End Sub

Private Sub Command2_Click()
RSGL.Enabled = True
Unload Me
End Sub

Private Sub Command3_Click()
Dim XianShi_sql    As String '单条数据显示的数据源
  
  
  If JieYue_ID = "" Then
    MsgBox "请您选择其中一条信息!"
    Exit Sub
  Else
    XianShi_sql = "select * from 面试登记 where ID = " & JieYue_ID
    
    Set adoXianshiRS = New Recordset
    adoXianshiRS.Open XianShi_sql, db, adOpenStatic, adLockOptimistic
         
   
    For Each oText In Me.txtFields
          Set oText.DataSource = adoXianshiRS
    Next
    
    Set DTPicker3.DataSource = adoXianshiRS
    

         
    Set Combo3.DataSource = adoXianshiRS
    Set Combo4.DataSource = adoXianshiRS
  
End If
  
  Frame2.Visible = False
  Frame3.Visible = True
       
End Sub

Private Sub DataGrid1_Click()

  If Not adoPrimaryRS.BOF And Not adoPrimaryRS.EOF Then
      If Not IsNull(adoPrimaryRS.Fields("ID")) Then
          JieYue_ID = adoPrimaryRS.Fields("ID")
      Else
          MsgBox "请您选择其中一条信息!"
      End If
   Else
    Exit Sub
  End If
  
End Sub

Private Sub Form_Load()
On Error Resume Next
    For Each TextBox In Me.Controls
        TextBox.Font.Name = "宋体"
        TextBox.Font.Size = 9
    Next
Frame2.Visible = False
Frame3.Visible = False
For Each oText In Me.txtFields
   oText.Locked = True
Next

 DTPicker3.Enabled = True

           
End Sub





⌨️ 快捷键说明

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