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

📄 managerfrom.frm

📁 企业人事管理系统主要功能有: ①人事档案管理:户口状况、政治面貌、生理状况、合同管理等; ②考勤加班出差管理; ③人事变动:新进员工登记、员工离职登记、人事变更记录; ④考核奖惩; ⑤员工培
💻 FRM
字号:
VERSION 5.00
Begin VB.Form ManagerFrom 
   Caption         =   "部门经理查询"
   ClientHeight    =   5820
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6810
   LinkTopic       =   "Form1"
   ScaleHeight     =   5820
   ScaleWidth      =   6810
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command6 
      Caption         =   "退出"
      Height          =   375 
      Left            =   5520
      TabIndex        =   26
      Top             =   5160
      Width           =   975
   End
   Begin VB.CommandButton Command4 
      Caption         =   "返回"
      CausesValidation=   0   'False
      Default         =   -1  'True
      Height          =   375
      Left            =   4440
      TabIndex        =   0
      Top             =   5160
      Width           =   975
   End
   Begin VB.CommandButton Command3 
      Caption         =   "经理培训"
      Height          =   375
      Left            =   3120
      TabIndex        =   1
      Top             =   4200
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "考核奖惩"
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   4200
      Width           =   975
   End
   Begin VB.CommandButton Command5 
      Caption         =   "管理员工"
      Height          =   375
      Left            =   5280
      TabIndex        =   23
      Top             =   4200
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "XXX,您好"
      Height          =   3375
      Left            =   240
      TabIndex        =   4
      Top             =   240
      Width           =   6255
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   13
         Top             =   360
         Width           =   2775
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   12
         Top             =   720
         Width           =   2775
      End
      Begin VB.TextBox Text3 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   11
         Top             =   1080
         Width           =   2775
      End
      Begin VB.TextBox Text4 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   10
         Top             =   1440
         Width           =   2775
      End
      Begin VB.TextBox Text5 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   9
         Top             =   1800
         Width           =   2775
      End
      Begin VB.TextBox Text6 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   8
         Top             =   2160
         Width           =   2775
      End
      Begin VB.TextBox Text7 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   7
         Top             =   2520
         Width           =   2775
      End
      Begin VB.TextBox Text8 
         Height          =   270
         Left            =   3240
         Locked          =   -1  'True
         TabIndex        =   6
         Top             =   2880
         Width           =   2775
      End
      Begin VB.TextBox Text9 
         Height          =   270
         Left            =   840
         Locked          =   -1  'True
         TabIndex        =   5
         Top             =   2640
         Width           =   1335
      End
      Begin VB.Image Image1 
         Height          =   2175
         Left            =   240
         Stretch         =   -1  'True
         Top             =   360
         Width           =   1935
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "姓名:"
         Height          =   180
         Left            =   2280
         TabIndex        =   22
         Top             =   360
         Width           =   450
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "性别:"
         Height          =   180
         Left            =   2280
         TabIndex        =   21
         Top             =   720
         Width           =   450
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "年龄:"
         Height          =   180
         Left            =   2280
         TabIndex        =   20
         Top             =   1080
         Width           =   450
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "户口状况:"
         Height          =   180
         Left            =   2280
         TabIndex        =   19
         Top             =   1440
         Width           =   810
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "政治面貌:"
         Height          =   180
         Left            =   2280
         TabIndex        =   18
         Top             =   1800
         Width           =   810
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "生理状况:"
         Height          =   180
         Left            =   2280
         TabIndex        =   17
         Top             =   2160
         Width           =   810
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "合同:"
         Height          =   180
         Left            =   2280
         TabIndex        =   16
         Top             =   2520
         Width           =   450
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "所管部门:"
         Height          =   180
         Left            =   2280
         TabIndex        =   15
         Top             =   2880
         Width           =   810
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "工号:"
         Height          =   180
         Left            =   240
         TabIndex        =   14
         Top             =   2640
         Width           =   450
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "考勤状况"
      Height          =   375
      Left            =   480
      TabIndex        =   3
      Top             =   4200
      Width           =   975
   End
   Begin VB.Frame Frame2 
      Caption         =   "查询自身资料:"
      Height          =   975
      Left            =   240
      TabIndex        =   24
      Top             =   3840
      Width           =   4095
   End
   Begin VB.Frame Frame3 
      Caption         =   "管理部门:"
      Height          =   975
      Left            =   5040
      TabIndex        =   25
      Top             =   3840
      Width           =   1455
   End
   Begin VB.Line Line1 
      BorderColor     =   &H80000010&
      X1              =   240
      X2              =   6480
      Y1              =   4920
      Y2              =   4920
   End
End
Attribute VB_Name = "ManagerFrom"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    AbsenceForm.Show
    AbsenceForm.SSTab1.Tab = 0
End Sub

Private Sub Command2_Click()
    AbsenceForm.Show
    AbsenceForm.SSTab1.Tab = 1
End Sub

Private Sub Command3_Click()
    AbsenceForm.Show
    AbsenceForm.SSTab1.Tab = 2
End Sub

Private Sub Command4_Click()    '返回
    LoginFrom.Show
    Unload Me
End Sub

Private Sub Command5_Click()
    AdministrationEForm.Show
End Sub

Private Sub Command6_Click()    '退出
    SureExit
End Sub

Private Sub Form_Load()
    '连接SQL数据库调入该员工资料
    Set Ado_Conn = New ADODB.Connection
    Set Ado_RS = New ADODB.Recordset
    str_CS = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=ManageSystem"
    str_RS = "select * from BaseTable where BID='" & Trim(ID) & "'"
    SqlConnect Ado_Conn, Ado_RS, str_CS, str_RS
    
    '载入资料
    If Ado_RS.EOF = False Then  '当表中有该工号
        If Ado_RS.Fields("BName").Value <> "" Then Text1.Text = Ado_RS.Fields("BName").Value            '姓名
        If Ado_RS.Fields("BSex").Value <> "" Then Text2.Text = Ado_RS.Fields("BSex").Value               '性别
        If Ado_RS.Fields("BAge").Value <> "" Then Text3.Text = Ado_RS.Fields("BAge").Value               '年龄
        If Ado_RS.Fields("BResidence").Value <> "" Then Text4.Text = Ado_RS.Fields("BResidence").Value   '户口状况
        If Ado_RS.Fields("BPolity").Value <> "" Then Text5.Text = Ado_RS.Fields("BPolity").Value       '政治面貌
        If Ado_RS.Fields("BHealthy").Value <> "" Then Text6.Text = Ado_RS.Fields("BHealthy").Value        '生理状况
        If Ado_RS.Fields("BAgreement").Value <> "" Then Text7.Text = Ado_RS.Fields("BAgreement").Value   '合同
        If Ado_RS.Fields("BDepartment").Value <> "" Then Text8.Text = Ado_RS.Fields("BDepartment").Value '所属部门
        If Ado_RS.Fields("BID").Value <> "" Then Text9.Text = Ado_RS.Fields("BID").Value          '工号
    End If
    '断开数据库
    SqlDisConnect Ado_RS
    
    '初始化界面
    Frame1.Caption = Text1.Text & "经理,您好:"
    PriForm = "ManagerFrom"
End Sub

Private Sub Image1_Click()

End Sub

⌨️ 快捷键说明

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