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

📄 frmmain.frm

📁 该信息管理系统可以在Windows 2000 Server平台上运行
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form FrmMain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "人事管理系统"
   ClientHeight    =   5625
   ClientLeft      =   150
   ClientTop       =   720
   ClientWidth     =   7935
   Icon            =   "Frmmain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5625
   ScaleWidth      =   7935
   StartUpPosition =   3  '窗口缺省
   Begin VB.Data DataB 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   495
      Left            =   5760
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   2280
      Visible         =   0   'False
      Width           =   1065
   End
   Begin VB.Data DataA 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   495
      Left            =   5760
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   1680
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.ListBox LsDepart 
      Appearance      =   0  'Flat
      Height          =   1290
      Left            =   4560
      TabIndex        =   6
      Top             =   2760
      Visible         =   0   'False
      Width           =   855
   End
   Begin VB.ListBox LsDegree 
      Appearance      =   0  'Flat
      Height          =   1290
      Left            =   3720
      TabIndex        =   5
      Top             =   2760
      Visible         =   0   'False
      Width           =   855
   End
   Begin VB.ListBox Lssex 
      Appearance      =   0  'Flat
      Height          =   390
      ItemData        =   "Frmmain.frx":030A
      Left            =   3000
      List            =   "Frmmain.frx":0314
      TabIndex        =   4
      Top             =   3240
      Visible         =   0   'False
      Width           =   615
   End
   Begin MSDBGrid.DBGrid DBGA 
      Bindings        =   "Frmmain.frx":0320
      Height          =   3735
      Left            =   0
      OleObjectBlob   =   "Frmmain.frx":0334
      TabIndex        =   3
      Top             =   1080
      Width           =   7935
   End
   Begin MSComctlLib.Toolbar Toolbar2 
      Align           =   1  'Align Top
      Height          =   555
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   7935
      _ExtentX        =   13996
      _ExtentY        =   979
      ButtonWidth     =   1984
      ButtonHeight    =   820
      Appearance      =   1
      ImageList       =   "ImageLista"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   4
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   2
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   4
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   525
      Left            =   0
      TabIndex        =   0
      Top             =   555
      Width           =   7935
      _ExtentX        =   13996
      _ExtentY        =   926
      ButtonWidth     =   1984
      ButtonHeight    =   820
      ImageList       =   "ImageLista"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   4
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   5
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   6
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   7
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            ImageIndex      =   8
         EndProperty
      EndProperty
      Begin MSComctlLib.ImageList ImageLista 
         Left            =   5640
         Top             =   0
         _ExtentX        =   1005
         _ExtentY        =   1005
         BackColor       =   -2147483643
         ImageWidth      =   68
         ImageHeight     =   25
         MaskColor       =   12632256
         _Version        =   393216
         BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
            NumListImages   =   8
            BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":0D04
               Key             =   ""
            EndProperty
            BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":1AA0
               Key             =   ""
            EndProperty
            BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":283C
               Key             =   ""
            EndProperty
            BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":35D8
               Key             =   ""
            EndProperty
            BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":4374
               Key             =   ""
            EndProperty
            BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":5110
               Key             =   ""
            EndProperty
            BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":5EAC
               Key             =   ""
            EndProperty
            BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "Frmmain.frx":6C48
               Key             =   ""
            EndProperty
         EndProperty
      End
   End
   Begin VB.Label Lab 
      Caption         =   "Label1"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   0
      TabIndex        =   2
      Top             =   4920
      Width           =   7935
   End
   Begin VB.Menu Mo 
      Caption         =   "系统设置"
      Index           =   0
      Begin VB.Menu Moption 
         Caption         =   "系统设置"
         Index           =   0
      End
      Begin VB.Menu Moption 
         Caption         =   "退出"
         Index           =   1
      End
   End
   Begin VB.Menu Mt 
      Caption         =   "表单"
      Begin VB.Menu Mtab 
         Caption         =   "职员表单"
         Checked         =   -1  'True
         Index           =   0
      End
      Begin VB.Menu Mtab 
         Caption         =   "请假表单"
         Index           =   1
      End
      Begin VB.Menu Mtab 
         Caption         =   "工资表单"
         Index           =   2
      End
   End
   Begin VB.Menu Mh 
      Caption         =   "帮助"
      Begin VB.Menu Mhelp 
         Caption         =   "帮助"
      End
      Begin VB.Menu MAbout 
         Caption         =   "关于"
      End
   End
   Begin VB.Menu Mp 
      Caption         =   "Pop"
      Visible         =   0   'False
      Begin VB.Menu Mpop 
         Caption         =   "编辑记录"
         Index           =   1
      End
      Begin VB.Menu Mpop 
         Caption         =   "删除记录"
         Index           =   2
      End
      Begin VB.Menu Mpop 
         Caption         =   "搜寻记录"
         Index           =   3
      End
   End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public cuTabCh As Boolean
Public cutable As String
Public cuAp As Integer '当前指针位置
Dim i As Integer
Public Pwin As String

Public Sub showemployee()
        DataA.RecordSource = "select * from employee"
        DataA.Refresh
        DBGA.Columns("性别").Button = True
        DBGA.Columns("学历").Button = True
        DBGA.Columns("部门").Button = True
        For i = 0 To 2
            Mtab(i).Checked = False
        Next i
        Mtab(0).Checked = True
              
        cutable = "employee"
        cuTabCh = True
          
End Sub

Public Sub showleave()
        DataA.RecordSource = "select * from leave"
        DataA.Refresh
        For i = 0 To 2
            Mtab(i).Checked = False
        Next i
        Mtab(1).Checked = True
               
        cutable = "leave"
        cuTabCh = True
         
End Sub

Public Sub showsalary()
        DataA.RecordSource = "select * from salary"
        DataA.Refresh
        For i = 0 To 2
            Mtab(i).Checked = False
        Next i
        Mtab(2).Checked = True
              

⌨️ 快捷键说明

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