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

📄 renyuan.frm

📁 该系统是用VB开发的一个人事管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form renyuan 
   BackColor       =   &H00C0C0C0&
   Caption         =   "员工信息管理"
   ClientHeight    =   8235
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10275
   LinkTopic       =   "Form1"
   ScaleHeight     =   8235
   ScaleWidth      =   10275
   StartUpPosition =   2  '屏幕中心
   Begin ComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   630
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   10275
      _ExtentX        =   18124
      _ExtentY        =   1111
      ButtonWidth     =   1455
      ButtonHeight    =   926
      Wrappable       =   0   'False
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   327682
      BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7} 
         NumButtons      =   11
         BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "新增员工"
            Key             =   "addnew"
            Description     =   "1"
            Object.ToolTipText     =   "新增员工信息"
            Object.Tag             =   "0"
         EndProperty
         BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "编辑员工"
            Key             =   "edit"
            Description     =   "2"
            Object.ToolTipText     =   "编辑员工基本信息"
            Object.Tag             =   "1"
         EndProperty
         BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "删除员工"
            Key             =   "delete"
            Object.ToolTipText     =   "删除员工信息"
            Object.Tag             =   "2"
         EndProperty
         BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "查询员工"
            Key             =   "search"
            Object.ToolTipText     =   "查询员工信息"
            Object.Tag             =   "3"
         EndProperty
         BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "新增培训"
            Key             =   "add"
            Object.ToolTipText     =   "新增培训信息"
            Object.Tag             =   ""
         EndProperty
         BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "编辑培训"
            Key             =   "editpei"
            Object.ToolTipText     =   "编辑培训信息"
            Object.Tag             =   ""
         EndProperty
         BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "查询培训"
            Key             =   "inquiretrain"
            Object.ToolTipText     =   "查询员工培训信息"
            Object.Tag             =   ""
         EndProperty
         BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Object.Tag             =   ""
            Style           =   3
            MixedState      =   -1  'True
         EndProperty
         BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "刷新"
            Key             =   "reLoad"
            Object.Tag             =   ""
         EndProperty
         BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Object.Tag             =   ""
            Style           =   3
            MixedState      =   -1  'True
         EndProperty
         BeginProperty Button11 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "退出"
            Key             =   "exit"
            Object.ToolTipText     =   "退出"
            Object.Tag             =   "4"
         EndProperty
      EndProperty
      OLEDropMode     =   1
   End
   Begin VB.ComboBox Combo1 
      BackColor       =   &H00FFC0FF&
      Height          =   300
      Left            =   120
      TabIndex        =   2
      Top             =   2160
      Width           =   1095
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   6375
      Left            =   1320
      TabIndex        =   1
      Top             =   1800
      Width           =   8775
      _ExtentX        =   15478
      _ExtentY        =   11245
      _Version        =   393216
      BackColor       =   12648384
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         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
   Begin VB.Label Label1 
      Caption         =   "请选择部门:"
      Height          =   255
      Left            =   120
      TabIndex        =   3
      Top             =   1800
      Width           =   1215
   End
   Begin ComctlLib.ImageList ImageList1 
      Left            =   360
      Top             =   3000
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   3
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "renyuan.frx":0000
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "renyuan.frx":01DA
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "renyuan.frx":03B4
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "renyuan"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset
Dim txtSQL As String
    Dim MsgText As String

Private Sub Combo1_click()
txtSQL = "select * from 员工基本信息表 where 部门='" & Trim(Combo1.Text) & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
  
   Set DataGrid1.DataSource = mrc
   'mrc.Close
   Set mrc = Nothing

End Sub

Private Sub Form_Load()
    subView
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
Select Case Button.Key
     Case "addnew"
     frmAddEmployee.Show 1
     Case "edit"
     frmModifyEmployee.Show 1
     Case "delete"
     frmModifyEmployee.Show 1
     Case "search"
     frmInquireEmployee.Show 1
     Case "add"
     frmAddTrain.Show 1
     Case "editpei"
     frmModifyTrain.Show 1
     Case "inquiretrain"
     frmInquireTrain.Show 1
     Case "reLoad"
     subView
     Case "exit"
     Unload Me
    End Select
End Sub

Private Sub subView()
Dim i As Integer
Dim sSql As String


    Combo1.Clear
    
       txtSQL = "select distinct 部门 from 员工基本信息表"
       Set mrc = ExecuteSQL(txtSQL, MsgText)
       If Not mrc.EOF Then
            Do While Not mrc.EOF
                Combo1.AddItem Trim(mrc.Fields(0))
                mrc.MoveNext
            Loop
            Combo1.ListIndex = 0
            renyuan.Toolbar1.Buttons(1).Enabled = True
            renyuan.Toolbar1.Buttons(2).Enabled = True
            renyuan.Toolbar1.Buttons(3).Enabled = True
            renyuan.Toolbar1.Buttons(4).Enabled = True
            renyuan.Toolbar1.Buttons(5).Enabled = True
        Else
            renyuan.Toolbar1.Buttons(1).Enabled = True
            renyuan.Toolbar1.Buttons(2).Enabled = False
            renyuan.Toolbar1.Buttons(3).Enabled = False
            renyuan.Toolbar1.Buttons(4).Enabled = True
            renyuan.Toolbar1.Buttons(5).Enabled = True
        End If
       txtSQL = "select * from 员工基本信息表"
       Set mrc = ExecuteSQL(txtSQL, MsgText)
       If mrc.EOF Then
            Combo1_click
       End If
End Sub

⌨️ 快捷键说明

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