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

📄 form2.frm

📁 该系统是用VB开发的一个人事管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Begin VB.Form bumengdiaodong 
   BackColor       =   &H00C0C0C0&
   Caption         =   "人员调动管理"
   ClientHeight    =   6630
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8700
   LinkTopic       =   "Form2"
   ScaleHeight     =   6630
   ScaleWidth      =   8700
   StartUpPosition =   2  '屏幕中心
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   630
      Left            =   0
      TabIndex        =   2
      Top             =   0
      Width           =   8700
      _ExtentX        =   15346
      _ExtentY        =   1111
      ButtonWidth     =   1455
      ButtonHeight    =   953
      Appearance      =   1
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   5
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "部门调动"
            Key             =   "diaodong"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "职务变更"
            Key             =   "biangen"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "查询员工"
            Key             =   "search"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "删除记录"
            Key             =   "delete"
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出"
            Key             =   "exit"
         EndProperty
      EndProperty
   End
   Begin VB.ComboBox Combo1 
      BackColor       =   &H00FF80FF&
      Height          =   300
      ItemData        =   "Form2.frx":0000
      Left            =   120
      List            =   "Form2.frx":0002
      TabIndex        =   1
      Top             =   1560
      Width           =   975
   End
   Begin TabDlg.SSTab SSTab1 
      Height          =   5655
      Left            =   1200
      TabIndex        =   0
      Top             =   840
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   9975
      _Version        =   393216
      Tabs            =   2
      Tab             =   1
      TabHeight       =   520
      BackColor       =   12632256
      TabCaption(0)   =   "员工列表"
      TabPicture(0)   =   "Form2.frx":0004
      Tab(0).ControlEnabled=   0   'False
      Tab(0).Control(0)=   "DataGrid1"
      Tab(0).ControlCount=   1
      TabCaption(1)   =   "人员调动记录"
      TabPicture(1)   =   "Form2.frx":0020
      Tab(1).ControlEnabled=   -1  'True
      Tab(1).Control(0)=   "Label1"
      Tab(1).Control(0).Enabled=   0   'False
      Tab(1).Control(1)=   "Combo2"
      Tab(1).Control(1).Enabled=   0   'False
      Tab(1).Control(2)=   "Text1"
      Tab(1).Control(2).Enabled=   0   'False
      Tab(1).Control(3)=   "Command1"
      Tab(1).Control(3).Enabled=   0   'False
      Tab(1).Control(4)=   "DataGrid2"
      Tab(1).Control(4).Enabled=   0   'False
      Tab(1).ControlCount=   5
      Begin MSDataGridLib.DataGrid DataGrid2 
         Height          =   4575
         Left            =   120
         TabIndex        =   8
         Top             =   960
         Width           =   7215
         _ExtentX        =   12726
         _ExtentY        =   8070
         _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 MSDataGridLib.DataGrid DataGrid1 
         Height          =   5055
         Left            =   -74880
         TabIndex        =   7
         Top             =   480
         Width           =   7215
         _ExtentX        =   12726
         _ExtentY        =   8916
         _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.CommandButton Command1 
         Caption         =   "查询"
         Height          =   375
         Left            =   5160
         TabIndex        =   6
         Top             =   480
         Width           =   975
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H00C0E0FF&
         Height          =   375
         Left            =   3240
         TabIndex        =   5
         Top             =   480
         Width           =   1575
      End
      Begin VB.ComboBox Combo2 
         BackColor       =   &H00C0E0FF&
         Height          =   300
         ItemData        =   "Form2.frx":003C
         Left            =   1200
         List            =   "Form2.frx":005E
         TabIndex        =   4
         Top             =   480
         Width           =   1815
      End
      Begin VB.Label Label1 
         Caption         =   "查询记录:"
         Height          =   255
         Left            =   240
         TabIndex        =   3
         Top             =   600
         Width           =   975
      End
   End
   Begin VB.Label Label2 
      Caption         =   "请选择部门:"
      Height          =   255
      Left            =   120
      TabIndex        =   9
      Top             =   1200
      Width           =   1095
   End
   Begin ComctlLib.ImageList ImageList2 
      Left            =   120
      Top             =   2760
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   5
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "Form2.frx":00C4
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "Form2.frx":03DE
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "Form2.frx":06F8
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "Form2.frx":0A12
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "Form2.frx":0D2C
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "bumengdiaodong"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset
Dim mm As ADODB.Recordset
Dim txtSQL As String
Dim txtSQL1 As String
    Dim MsgText As String
    Dim MsgText1 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 Command1_Click()
txtSQL1 = "select * from 员工调动表 where " & Trim(Combo2.Text) & " = '" & Trim(Text1.Text) & "'"
Set mm = ExecuteSQL(txtSQL1, MsgText1)
If Text1.Text <> "" Then
  
   Set DataGrid2.DataSource = mm
   'mrc.Close
   Else
   MsgBox "请输入查询条件", vbExclamation + vbOKOnly, pTitle
   Text1.SetFocus
   Set mm = Nothing
   End If
End Sub

Private Sub Form_Load()
    subView
       
       

    
       
      
     'bumengdiaodong.Toolbar1.diaodong.Enabled = False
     'bumengdiaodong.Toolbar1.biangen.Enabled = False
     'bumengdiaodong.Toolbar1.search.Enabled = True
    ' bumengdiaodong.Toolbar1.Buttons(4).Enabled = True
     'bumengdiaodong.Toolbar1.Buttons(5).Enabled = True
End Sub





Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Key
       Case "diaodong"
       diaodong.Show 1
       Case "biangen"
       zhiwu.Show 1
       Case "search"
       frmInquireEmployee.Show 1
       Case "delete"
       frmModifyEmployee.Show 1
       Case "exit"
       Unload bumengdiaodong
       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
       End If
End Sub

⌨️ 快捷键说明

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