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

📄 main_tj.frm

📁 从网络上下载的VB的人事档案管理系统,经过修改.加入了些功能.希望对大家有帮助
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form main_tj 
   BackColor       =   &H00D0E8EE&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "档案统计"
   ClientHeight    =   3585
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6645
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3585
   ScaleWidth      =   6645
   StartUpPosition =   1  '所有者中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   135
      Top             =   3060
      Visible         =   0   'False
      Width           =   2340
      _ExtentX        =   4128
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1 
      Bindings        =   "main_tj.frx":0000
      Height          =   1440
      Left            =   195
      TabIndex        =   7
      Top             =   1545
      Width           =   6285
      _ExtentX        =   11086
      _ExtentY        =   2540
      _Version        =   393216
      Cols            =   1
      FixedCols       =   0
      BackColorFixed  =   16744576
      BackColorBkg    =   16761024
      _NumberOfBands  =   1
      _Band(0).Cols   =   1
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H00FF8080&
      Caption         =   "退出"
      Height          =   390
      Left            =   4620
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   3060
      Width           =   1890
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00FF8080&
      Caption         =   "统计"
      Height          =   390
      Left            =   2655
      Style           =   1  'Graphical
      TabIndex        =   5
      Top             =   3060
      Width           =   1890
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   1080
      TabIndex        =   3
      Top             =   1155
      Visible         =   0   'False
      Width           =   2400
   End
   Begin VB.OptionButton Option2 
      BackColor       =   &H00D0E8EE&
      Caption         =   "按离职人员统计"
      Height          =   315
      Left            =   3060
      TabIndex        =   1
      Top             =   735
      Width           =   2760
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H00D0E8EE&
      Caption         =   "按在职人员分类统计"
      Height          =   315
      Left            =   225
      TabIndex        =   0
      Top             =   720
      Width           =   2190
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "分类字段"
      Height          =   225
      Left            =   210
      TabIndex        =   4
      Top             =   1185
      Visible         =   0   'False
      Width           =   900
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "档案统计"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   18
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   2715
      TabIndex        =   2
      Top             =   75
      Width           =   1545
   End
End
Attribute VB_Name = "main_tj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
  If Option1.Value = True Then
    Adodc1.RecordSource = "select " & Combo1.Text & "," & "Count(*) as 人数 from 人事档案信息表 where 员工状态='在职' group by " & Combo1.Text
    Adodc1.Refresh
  Else
    Adodc1.RecordSource = "select " & Combo1.Text & "," & "Count(*) as 人数 from 人事档案信息表 where 员工状态='离职' group by " & Combo1.Text
    Adodc1.Refresh
  End If
End Sub
Private Sub Command2_Click()
  Unload Me
End Sub

Private Sub Form_Load()
  Combo1.AddItem ("性别")
  Combo1.AddItem ("民族")
  Combo1.AddItem ("籍贯")
  Combo1.AddItem ("工龄")
  Combo1.AddItem ("技术职称")
  Combo1.AddItem ("行政职务")
  Combo1.ListIndex = 0
  Adodc1.ConnectionString = Cnn
Adodc1.RecordSource = "select * from 人事档案信息表"
Adodc1.Refresh
End Sub

Private Sub Option1_Click()
  Option1.Value = True
  Label2.Visible = True
  Combo1.Visible = True
End Sub

⌨️ 快捷键说明

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