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

📄 frmempedit.frm

📁 软件项目管理的基本功能
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmEmpEdit 
   Caption         =   "编辑员工信息"
   ClientHeight    =   2580
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3435
   LinkTopic       =   "Form1"
   ScaleHeight     =   2580
   ScaleWidth      =   3435
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtDate 
      Height          =   330
      Left            =   1200
      TabIndex        =   6
      Top             =   1320
      Width           =   1575
   End
   Begin VB.TextBox txtEmpName 
      Height          =   330
      Left            =   1200
      TabIndex        =   3
      Top             =   240
      Width           =   1575
   End
   Begin VB.TextBox txtTitle 
      Height          =   330
      Left            =   1200
      TabIndex        =   2
      Top             =   795
      Width           =   1575
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   450
      Left            =   480
      TabIndex        =   1
      Top             =   1950
      Width           =   1095
   End
   Begin VB.CommandButton Cmd_Cancel 
      Caption         =   "取 消"
      Height          =   450
      Left            =   2040
      TabIndex        =   0
      Top             =   1950
      Width           =   1095
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "加入日期"
      Height          =   180
      Left            =   240
      TabIndex        =   7
      Top             =   1395
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "员工姓名"
      Height          =   180
      Left            =   240
      TabIndex        =   5
      Top             =   315
      Width           =   720
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "职务名称"
      Height          =   180
      Left            =   240
      TabIndex        =   4
      Top             =   870
      Width           =   720
   End
End
Attribute VB_Name = "FrmEmpEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriEmpId As Long

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  If Trim(txtEmpName) = "" Then
    MsgBox "请输入成员姓名"
    txtEmpName.SetFocus
    Exit Sub
  End If
  If Trim(txtTitle) = "" Then
    MsgBox "请输入成员职务"
    txtTitle.SetFocus
    Exit Sub
  End If
  With MyEmp
    .EmpName = Trim(txtEmpName)
    .ETitle = Trim(txtTitle)
    .CreateDate = Trim(txtDate)
    If Modify Then
      .Update (OriEmpId)
      MsgBox "修改成功"
    Else
      .Insert
      MsgBox "添加成功"
    End If
  End With
  Unload Me
End Sub

⌨️ 快捷键说明

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