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

📄 humanlist.frm

📁 人力资源管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmHumanList 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "员工列表:"
   ClientHeight    =   5760
   ClientLeft      =   5340
   ClientTop       =   2880
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5760
   ScaleWidth      =   4680
   Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
      Height          =   4215
      Left            =   120
      TabIndex        =   7
      Top             =   1440
      Width           =   4455
      _ExtentX        =   7858
      _ExtentY        =   7435
      _Version        =   393216
   End
   Begin VB.Frame Frame1 
      Caption         =   "选择员工信息:"
      Height          =   1215
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4455
      Begin VB.CommandButton Command2 
         Caption         =   "取消(&C)"
         Height          =   375
         Left            =   2880
         TabIndex        =   6
         Top             =   720
         Width           =   1215
      End
      Begin VB.CommandButton Command1 
         Caption         =   "转到(&T)"
         Height          =   375
         Left            =   2880
         TabIndex        =   5
         Top             =   240
         Width           =   1215
      End
      Begin VB.TextBox txtName 
         Height          =   270
         Left            =   960
         TabIndex        =   4
         Top             =   720
         Width           =   1575
      End
      Begin VB.TextBox txtNum 
         Height          =   270
         Left            =   960
         TabIndex        =   3
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label2 
         Caption         =   "姓名:"
         Height          =   255
         Left            =   240
         TabIndex        =   2
         Top             =   720
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "编号:"
         Height          =   375
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   975
      End
   End
End
Attribute VB_Name = "frmHumanList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub MyRefresh()
    Dim strTitle As String
    Dim adors As New Recordset
    Dim strSQL As String
    Dim i As Integer
    
    adors.ActiveConnection = ADOcn
    
    MSFlexGrid1.Clear
    
    MSFlexGrid1.Rows = 1
    MSFlexGrid1.Cols = 2
    MSFlexGrid1.FixedRows = 0  '不锁定第一行
    '加表的标题
    strTitle = "编号" + vbTab + "姓名"

    MSFlexGrid1.AddItem strTitle, 0
    MSFlexGrid1.FixedRows = 1    ' 锁定第一行
   
    strSQL = "Select * From 人事档案 order by 编号"
    adors.Open strSQL
    i = 1
    Do While Not adors.EOF
       strTitle = adors("编号") + vbTab + adors("姓名")
        MSFlexGrid1.AddItem strTitle, i
        adors.MoveNext
        i = i + 1
   Loop
End Sub

Private Sub Form_Load()
MyRefresh
End Sub

Private Sub MSFlexGrid1_DblClick()
Appear = 1
    Dim mystr As String
    MSFlexGrid1.Col = 0
    mystr = MSFlexGrid1.Text
        
    If WageType = "time" Then
        frmTime_Piece_LiftInfo.txtNum = mystr
        frmTime_Piece_LiftInfo.txtMonth = CurMonth
        fuzhi1
        frmTime_Piece_LiftInfo.Show
    ElseIf WageType = "piece" Then
        frmTime_Piece_LiftInfo.txtNum = mystr
        frmTime_Piece_LiftInfo.txtMonth = CurMonth
        fuzhi1
        frmTime_Piece_LiftInfo.Show
        frmTime_Piece_LiftInfo.Caption = "员工计件信息"
        frmTime_Piece_LiftInfo.Label11.Caption = "件"
    ElseIf WageType = "lift" Then
        frmTime_Piece_LiftInfo.txtNum = mystr
        frmTime_Piece_LiftInfo.txtMonth = CurMonth
        fuzhi1
        frmTime_Piece_LiftInfo.Show
        frmTime_Piece_LiftInfo.Caption = "员工提成信息"
        frmTime_Piece_LiftInfo.Label11.Caption = "%"
        frmTime_Piece_LiftInfo.Label3.Caption = "提成项目:"
        frmTime_Piece_LiftInfo.Label4.Caption = "业务量:"
        frmTime_Piece_LiftInfo.Label5.Caption = "提成率:"
        frmTime_Piece_LiftInfo.Label6.Caption = "提成金额:"
    ElseIf WageType = "reward" Then
        frmReward_PunishInfo.txtNum = mystr
        frmReward_PunishInfo.txtMonth = CurMonth
        fuzhi2
        frmReward_PunishInfo.Show
    ElseIf WageType = "punish" Then
        frmReward_PunishInfo.txtNum = mystr
        frmReward_PunishInfo.txtMonth = CurMonth
        fuzhi2
        frmReward_PunishInfo.Show
        frmReward_PunishInfo.Caption = "员工惩罚信息"
        frmReward_PunishInfo.Label3.Caption = "惩罚信息"
        frmReward_PunishInfo.Label4.Caption = "惩罚金额"
    End If
Unload Me
End Sub
Private Sub fuzhi1()
Dim mystr As String
    MSFlexGrid1.Col = 1
    mystr = MSFlexGrid1.Text
    frmTime_Piece_LiftInfo.txtName = mystr
End Sub
Private Sub fuzhi2()
Dim mystr As String
    MSFlexGrid1.Col = 1
    mystr = MSFlexGrid1.Text
    frmReward_PunishInfo.txtName = mystr
End Sub

⌨️ 快捷键说明

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