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

📄 ygxx.frm

📁 工资管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form ygxx 
   Caption         =   "员工信息"
   ClientHeight    =   4155
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5880
   LinkTopic       =   "Form1"
   ScaleHeight     =   4155
   ScaleWidth      =   5880
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "员工信息"
      Height          =   1935
      Left            =   0
      TabIndex        =   4
      Top             =   0
      Width           =   5655
      Begin VB.TextBox Text3 
         DataField       =   "姓名"
         DataSource      =   "Adodc1"
         Height          =   495
         Left            =   4440
         TabIndex        =   9
         Text            =   "Text3"
         Top             =   480
         Width           =   975
      End
      Begin VB.TextBox Text2 
         DataField       =   "部门号"
         DataSource      =   "Adodc1"
         Height          =   495
         Left            =   2640
         TabIndex        =   8
         Text            =   "Text2"
         Top             =   480
         Width           =   1095
      End
      Begin VB.TextBox Text1 
         DataField       =   "员工号"
         DataSource      =   "Adodc1"
         Height          =   495
         Left            =   960
         TabIndex        =   7
         Text            =   "Text1"
         Top             =   480
         Width           =   855
      End
      Begin VB.TextBox Text4 
         DataField       =   "性别"
         DataSource      =   "Adodc1"
         Height          =   495
         Left            =   960
         TabIndex        =   6
         Text            =   "Text4"
         Top             =   1200
         Width           =   855
      End
      Begin VB.TextBox Text5 
         DataField       =   "出生日期"
         DataSource      =   "Adodc1"
         Height          =   495
         Left            =   2640
         TabIndex        =   5
         Text            =   "Text5"
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "姓名"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   3960
         TabIndex        =   14
         Top             =   600
         Width           =   495
      End
      Begin VB.Label Label2 
         Caption         =   "部门号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   1920
         TabIndex        =   13
         Top             =   600
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   " 员工号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   600
         Width           =   855
      End
      Begin VB.Label Label4 
         Caption         =   "性别"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   11
         Top             =   1320
         Width           =   495
      End
      Begin VB.Label Label5 
         Caption         =   "出生日期"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   2040
         TabIndex        =   10
         Top             =   1200
         Width           =   495
      End
   End
   Begin VB.CommandButton Command5 
      Caption         =   "添加"
      Height          =   495
      Left            =   1440
      TabIndex        =   3
      Top             =   2280
      Width           =   615
   End
   Begin VB.CommandButton Command6 
      Caption         =   "删除"
      Height          =   495
      Left            =   2040
      TabIndex        =   2
      Top             =   2280
      Width           =   615
   End
   Begin VB.CommandButton Command7 
      Caption         =   "更新"
      Height          =   495
      Left            =   2640
      TabIndex        =   1
      Top             =   2280
      Width           =   615
   End
   Begin VB.CommandButton Command8 
      Caption         =   "关闭"
      Height          =   495
      Left            =   3240
      TabIndex        =   0
      Top             =   2280
      Width           =   615
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   735
      Left            =   0
      Top             =   3000
      Width           =   5775
      _ExtentX        =   10186
      _ExtentY        =   1296
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=工资管理系统"
      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
End
Attribute VB_Name = "ygxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command5_Click()
 Adodc1.Recordset.AddNew
 Text1.SetFocus
End Sub

Private Sub Command6_Click()
If MsgBox("确信要删除吗", vbYesNo, "提示") = vbYes Then
      Adodc1.Recordset.Delete
       Adodc1.Recordset.MoveNext
       If Adodc1.Recordset.EOF Then
          Adodc1.Recordset.MoveFirst
        End If
     End If
End Sub

Private Sub Command7_Click()
 Adodc1.Recordset.Update
End Sub

Private Sub Command8_Click()
Me.Hide

End Sub

⌨️ 快捷键说明

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