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

📄 frmdepmanage.vb

📁 使用的人力资源管理系统
💻 VB
📖 第 1 页 / 共 2 页
字号:
Public Class frmDepManage
    Inherits System.Windows.Forms.Form
    Private dvList As DataView
    '编码位数
    Private iBits As Integer = 12
#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写 dispose 以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意: 以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents trvList As System.Windows.Forms.TreeView
    Friend WithEvents Splitter As System.Windows.Forms.Splitter
    Friend WithEvents panelRight As System.Windows.Forms.Panel
    Friend WithEvents lblName As System.Windows.Forms.Label
    Friend WithEvents txbName As System.Windows.Forms.TextBox
    Friend WithEvents lblLevelCode As System.Windows.Forms.Label
    Friend WithEvents lblLastCode As System.Windows.Forms.Label
    Friend WithEvents btnModify As System.Windows.Forms.Button
    Friend WithEvents btnAddBas As System.Windows.Forms.Button
    Friend WithEvents btnAddEql As System.Windows.Forms.Button
    Friend WithEvents btnAddSub As System.Windows.Forms.Button
    Friend WithEvents btnSave As System.Windows.Forms.Button
    Friend WithEvents btnDel As System.Windows.Forms.Button
    Friend WithEvents txbDepCode As System.Windows.Forms.TextBox
    Friend WithEvents txbLKindCode As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.trvList = New System.Windows.Forms.TreeView
        Me.Splitter = New System.Windows.Forms.Splitter
        Me.panelRight = New System.Windows.Forms.Panel
        Me.btnDel = New System.Windows.Forms.Button
        Me.btnAddSub = New System.Windows.Forms.Button
        Me.btnAddEql = New System.Windows.Forms.Button
        Me.btnAddBas = New System.Windows.Forms.Button
        Me.btnModify = New System.Windows.Forms.Button
        Me.txbDepCode = New System.Windows.Forms.TextBox
        Me.txbLKindCode = New System.Windows.Forms.TextBox
        Me.lblLastCode = New System.Windows.Forms.Label
        Me.lblLevelCode = New System.Windows.Forms.Label
        Me.txbName = New System.Windows.Forms.TextBox
        Me.lblName = New System.Windows.Forms.Label
        Me.btnSave = New System.Windows.Forms.Button
        Me.panelRight.SuspendLayout()
        Me.SuspendLayout()
        '
        'trvList
        '
        Me.trvList.BorderStyle = System.Windows.Forms.BorderStyle.None
        Me.trvList.Dock = System.Windows.Forms.DockStyle.Left
        Me.trvList.ImageIndex = -1
        Me.trvList.Location = New System.Drawing.Point(0, 0)
        Me.trvList.Name = "trvList"
        Me.trvList.SelectedImageIndex = -1
        Me.trvList.Size = New System.Drawing.Size(296, 365)
        Me.trvList.TabIndex = 0
        '
        'Splitter
        '
        Me.Splitter.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.Splitter.Location = New System.Drawing.Point(296, 0)
        Me.Splitter.MinExtra = 100
        Me.Splitter.MinSize = 75
        Me.Splitter.Name = "Splitter"
        Me.Splitter.Size = New System.Drawing.Size(8, 365)
        Me.Splitter.TabIndex = 1
        Me.Splitter.TabStop = False
        '
        'panelRight
        '
        Me.panelRight.Controls.Add(Me.btnDel)
        Me.panelRight.Controls.Add(Me.btnAddSub)
        Me.panelRight.Controls.Add(Me.btnAddEql)
        Me.panelRight.Controls.Add(Me.btnAddBas)
        Me.panelRight.Controls.Add(Me.btnModify)
        Me.panelRight.Controls.Add(Me.txbDepCode)
        Me.panelRight.Controls.Add(Me.txbLKindCode)
        Me.panelRight.Controls.Add(Me.lblLastCode)
        Me.panelRight.Controls.Add(Me.lblLevelCode)
        Me.panelRight.Controls.Add(Me.txbName)
        Me.panelRight.Controls.Add(Me.lblName)
        Me.panelRight.Controls.Add(Me.btnSave)
        Me.panelRight.Dock = System.Windows.Forms.DockStyle.Fill
        Me.panelRight.Location = New System.Drawing.Point(304, 0)
        Me.panelRight.Name = "panelRight"
        Me.panelRight.Size = New System.Drawing.Size(240, 365)
        Me.panelRight.TabIndex = 2
        '
        'btnDel
        '
        Me.btnDel.Location = New System.Drawing.Point(64, 294)
        Me.btnDel.Name = "btnDel"
        Me.btnDel.Size = New System.Drawing.Size(96, 23)
        Me.btnDel.TabIndex = 10
        Me.btnDel.Text = "删除"
        '
        'btnAddSub
        '
        Me.btnAddSub.Location = New System.Drawing.Point(64, 218)
        Me.btnAddSub.Name = "btnAddSub"
        Me.btnAddSub.Size = New System.Drawing.Size(96, 23)
        Me.btnAddSub.TabIndex = 9
        Me.btnAddSub.Text = "增加为子级别"
        '
        'btnAddEql
        '
        Me.btnAddEql.Location = New System.Drawing.Point(64, 180)
        Me.btnAddEql.Name = "btnAddEql"
        Me.btnAddEql.Size = New System.Drawing.Size(96, 23)
        Me.btnAddEql.TabIndex = 8
        Me.btnAddEql.Text = "增加为本级别"
        '
        'btnAddBas
        '
        Me.btnAddBas.Location = New System.Drawing.Point(64, 142)
        Me.btnAddBas.Name = "btnAddBas"
        Me.btnAddBas.Size = New System.Drawing.Size(96, 23)
        Me.btnAddBas.TabIndex = 7
        Me.btnAddBas.Text = "增加为第一级别"
        '
        'btnModify
        '
        Me.btnModify.Location = New System.Drawing.Point(64, 104)
        Me.btnModify.Name = "btnModify"
        Me.btnModify.Size = New System.Drawing.Size(96, 23)
        Me.btnModify.TabIndex = 6
        Me.btnModify.Text = "修改"
        '
        'txbDepCode
        '
        Me.txbDepCode.Location = New System.Drawing.Point(90, 62)
        Me.txbDepCode.Name = "txbDepCode"
        Me.txbDepCode.ReadOnly = True
        Me.txbDepCode.TabIndex = 5
        Me.txbDepCode.Text = ""
        '
        'txbLKindCode
        '
        Me.txbLKindCode.Location = New System.Drawing.Point(90, 35)
        Me.txbLKindCode.Name = "txbLKindCode"
        Me.txbLKindCode.TabIndex = 4
        Me.txbLKindCode.Text = ""
        '
        'lblLastCode
        '
        Me.lblLastCode.Location = New System.Drawing.Point(16, 67)
        Me.lblLastCode.Name = "lblLastCode"
        Me.lblLastCode.Size = New System.Drawing.Size(68, 16)
        Me.lblLastCode.TabIndex = 3
        Me.lblLastCode.Text = "机构合成编码"
        '
        'lblLevelCode
        '
        Me.lblLevelCode.Location = New System.Drawing.Point(28, 40)
        Me.lblLevelCode.Name = "lblLevelCode"
        Me.lblLevelCode.Size = New System.Drawing.Size(61, 16)
        Me.lblLevelCode.TabIndex = 2
        Me.lblLevelCode.Text = "本级别编码"
        '
        'txbName
        '
        Me.txbName.Location = New System.Drawing.Point(90, 8)
        Me.txbName.Name = "txbName"
        Me.txbName.TabIndex = 1
        Me.txbName.Text = ""
        '
        'lblName
        '
        Me.lblName.Location = New System.Drawing.Point(28, 17)
        Me.lblName.Name = "lblName"
        Me.lblName.Size = New System.Drawing.Size(56, 16)
        Me.lblName.TabIndex = 0
        Me.lblName.Text = "机构名称"
        '
        'btnSave
        '
        Me.btnSave.Location = New System.Drawing.Point(64, 256)
        Me.btnSave.Name = "btnSave"
        Me.btnSave.Size = New System.Drawing.Size(96, 23)
        Me.btnSave.TabIndex = 7
        Me.btnSave.Text = "保存修改"
        '
        'frmDepManage
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
        Me.ClientSize = New System.Drawing.Size(544, 365)
        Me.Controls.Add(Me.panelRight)
        Me.Controls.Add(Me.Splitter)
        Me.Controls.Add(Me.trvList)
        Me.Name = "frmDepManage"
        Me.Text = "机构设置及编码"
        Me.panelRight.ResumeLayout(False)
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private Sub frmDepManage_Load(ByVal sender As Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load
        Dim db As DataBase = New DataBase
        Dim strSQL As String
        strSQL = "select * from 组织机构编码表 order by absIndex"
        dvList = db.RunSelectSQL(strSQL)
        db.Dispose()
        '初始化TreeView控件的各个节点
        InitTree(trvList.Nodes, "-1")

⌨️ 快捷键说明

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