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

📄 frmexpedit.vb

📁 vb2005人事管理系统源码
💻 VB
字号:

Class FrmExpEdit
    Inherits System.Windows.Forms.Form
    Public Modify As Boolean '插入=false,修改=true
    Public VarEmpId As Integer
    Public OriId As Short

    Private Sub Cmd_Cancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cmd_Cancel.Click
        Me.Close()
    End Sub

    Private Sub Cmd_OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Cmd_OK.Click
        If Len(Trim(txtSchool_Org.Text)) = 0 Then
            MsgBox("请输入学校/单位")
            txtSchool_Org.Focus()
            txtSchool_Org.SelectionStart = 0
            txtSchool_Org.SelectionLength = Len(txtSchool_Org.Text)
            Exit Sub
        End If

        With MyExp
            .Start_Date = Trim(Combo_Start_Date.Text)
            .End_Date = Trim(Combo_End_Date.Text)
            .School_Org = Trim(txtSchool_Org.Text)
            .Title = Trim(txtTitle.Text)
            If Modify = False Then
                .Insert((VarEmpId))
            Else
                .Update(VarEmpId, OriId)
            End If
        End With
        Me.Close()
    End Sub

  
End Class

⌨️ 快捷键说明

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