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

📄 main_rckh.frm

📁 从网络上下载的VB的人事档案管理系统,经过修改.加入了些功能.希望对大家有帮助
💻 FRM
📖 第 1 页 / 共 3 页
字号:
               ColumnWidth     =   629.858
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   810.142
            EndProperty
            BeginProperty Column03 
               ColumnWidth     =   629.858
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   450.142
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   434.835
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   524.976
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   494.929
            EndProperty
            BeginProperty Column08 
               ColumnWidth     =   510.236
            EndProperty
            BeginProperty Column09 
               ColumnWidth     =   540.284
            EndProperty
            BeginProperty Column10 
               ColumnWidth     =   510.236
            EndProperty
            BeginProperty Column11 
               ColumnWidth     =   510.236
            EndProperty
            BeginProperty Column12 
               ColumnWidth     =   464.882
            EndProperty
            BeginProperty Column13 
               ColumnWidth     =   510.236
            EndProperty
            BeginProperty Column14 
               ColumnWidth     =   480.189
            EndProperty
            BeginProperty Column15 
               ColumnWidth     =   14.74
            EndProperty
         EndProperty
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "main_rckh.frx":0093
         Height          =   330
         Left            =   750
         TabIndex        =   9
         Top             =   510
         Width           =   2940
         _ExtentX        =   5186
         _ExtentY        =   582
         _Version        =   393216
         Style           =   2
         ListField       =   "工号"
         Text            =   ""
      End
      Begin VB.Label Label1 
         Caption         =   "工号:"
         Height          =   195
         Left            =   195
         TabIndex        =   10
         Top             =   600
         Width           =   555
      End
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   360
      Left            =   -345
      Top             =   3210
      Visible         =   0   'False
      Width           =   1380
      _ExtentX        =   2434
      _ExtentY        =   635
      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 MSAdodcLib.Adodc Adodc3 
      Height          =   360
      Left            =   -600
      Top             =   2415
      Visible         =   0   'False
      Width           =   1380
      _ExtentX        =   2434
      _ExtentY        =   635
      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 MSAdodcLib.Adodc Adodc1 
      Height          =   360
      Left            =   -915
      Top             =   2820
      Visible         =   0   'False
      Width           =   1380
      _ExtentX        =   2434
      _ExtentY        =   635
      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 MSAdodcLib.Adodc Adodc4 
      Height          =   360
      Left            =   -345
      Top             =   450
      Visible         =   0   'False
      Width           =   1380
      _ExtentX        =   2434
      _ExtentY        =   635
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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 VB.Label Label10 
      Appearance      =   0  'Flat
      BackColor       =   &H00FFC0C0&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "     日常考核信息管理"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C000C0&
      Height          =   375
      Left            =   2520
      TabIndex        =   6
      Top             =   150
      Width           =   4035
   End
End
Attribute VB_Name = "main_rckh"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdModity_Click()
  Select Case SSTab1.Tab
    Case 0
      blnAdd0 = False
      If Adodc1.Recordset.RecordCount > 0 Then
        If DataCombo1.Text = "" Then
           MsgBox "请选择工号!"
        Else
           Load main_rckh_kq
           main_rckh_kq.Show
        End If
      Else
         MsgBox "没有您要修改的数据,请先添加数据!"
      End If
    Case 1
      blnAdd1 = False
      If Adodc2.Recordset.RecordCount > 0 Then
         Load main_rckh_jb
         main_rckh_jb.Show
      Else
         MsgBox "没有您要修改的数据,请先添加数据!"
      End If
    Case 2
      blnAdd2 = False
      If Adodc3.Recordset.RecordCount > 0 Then
        Load main_rckh_cc
        main_rckh_cc.Show
      Else
         MsgBox "没有您要修改的数据,请先添加数据!"
      End If
  End Select
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = Cnn
Adodc1.RecordSource = "select * from 考勤信息表"
Adodc1.Refresh

Adodc2.ConnectionString = Cnn
Adodc2.RecordSource = "select * from 加班信息表"
Adodc2.Refresh

Adodc3.ConnectionString = Cnn
Adodc3.RecordSource = "select * from 出差信息表"
Adodc3.Refresh

Adodc4.ConnectionString = Cnn
Adodc4.RecordSource = "select * from 人事档案信息表  where 员工状态='在职'"
Adodc4.Refresh

  Set DataGrid1.DataSource = Adodc1
  Dim i As Integer
  For i = 0 To DataGrid1.Columns.Count - 1
      DataGrid1.Columns(i).Width = 840
  Next i
End Sub
Private Sub DataCombo1_Change()
  Adodc1.RecordSource = "select * from 考勤信息表 where 工号 like +'" + DataCombo1.Text + "'+'%'"
  Adodc1.Refresh
End Sub
Private Sub CmdAdd_Click()
  Select Case SSTab1.Tab
    Case 0
      blnAdd0 = True
      If DataCombo1.Text = "" Then
        MsgBox "请选择工号!"
      Else
        If Adodc1.Recordset.RecordCount = 0 Then
          Load main_rckh_kq
          main_rckh_kq.Show
        Else
          MsgBox "此员工考勤记录已存在,只能进行修改!"
        End If
      End If
    Case 1
      blnAdd1 = True
      Load main_rckh_jb
      main_rckh_jb.Show
    Case 2
      blnAdd2 = True
      Load main_rckh_cc
      main_rckh_cc.Show
  End Select
End Sub
Private Sub CmdDelete_Click()
  Select Case SSTab1.Tab
    Case 0
      If Adodc1.Recordset.RecordCount > 0 Then
         Adodc1.Recordset.Delete
         Adodc1.Refresh
      End If
    Case 1
      If Adodc2.Recordset.RecordCount > 0 Then
         Adodc2.Recordset.Delete
         Adodc2.Refresh
      End If
    Case 2
      If Adodc3.Recordset.RecordCount > 0 Then
         Adodc3.Recordset.Delete
         Adodc3.Refresh
      End If
  End Select
End Sub
Private Sub CmdEnd_Click()
  Unload Me
End Sub


⌨️ 快捷键说明

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