📄 frmdepmanage.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace 人力资源管理系统
{
/// <summary>
/// frmDepManage 的摘要说明。
/// </summary>
public class frmDepManage : System.Windows.Forms.Form
{
internal System.Windows.Forms.Panel panelRight;
internal System.Windows.Forms.Button btnDel;
internal System.Windows.Forms.Button btnAddSub;
internal System.Windows.Forms.Button btnAddEql;
internal System.Windows.Forms.Button btnAddBas;
internal System.Windows.Forms.Button btnModify;
internal System.Windows.Forms.TextBox txbDepCode;
internal System.Windows.Forms.TextBox txbLKindCode;
internal System.Windows.Forms.Label lblLastCode;
internal System.Windows.Forms.Label lblLevelCode;
internal System.Windows.Forms.TextBox txbName;
internal System.Windows.Forms.Label lblName;
internal System.Windows.Forms.Button btnSave;
internal System.Windows.Forms.TreeView trvList;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
// added parameter
private DataView dvList;
private int iBits = 12;
public frmDepManage()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panelRight = new System.Windows.Forms.Panel();
this.btnDel = new System.Windows.Forms.Button();
this.btnAddSub = new System.Windows.Forms.Button();
this.btnAddEql = new System.Windows.Forms.Button();
this.btnAddBas = new System.Windows.Forms.Button();
this.btnModify = new System.Windows.Forms.Button();
this.txbDepCode = new System.Windows.Forms.TextBox();
this.txbLKindCode = new System.Windows.Forms.TextBox();
this.lblLastCode = new System.Windows.Forms.Label();
this.lblLevelCode = new System.Windows.Forms.Label();
this.txbName = new System.Windows.Forms.TextBox();
this.lblName = new System.Windows.Forms.Label();
this.btnSave = new System.Windows.Forms.Button();
this.trvList = new System.Windows.Forms.TreeView();
this.panelRight.SuspendLayout();
this.SuspendLayout();
//
// panelRight
//
this.panelRight.Controls.Add(this.btnDel);
this.panelRight.Controls.Add(this.btnAddSub);
this.panelRight.Controls.Add(this.btnAddEql);
this.panelRight.Controls.Add(this.btnAddBas);
this.panelRight.Controls.Add(this.btnModify);
this.panelRight.Controls.Add(this.txbDepCode);
this.panelRight.Controls.Add(this.txbLKindCode);
this.panelRight.Controls.Add(this.lblLastCode);
this.panelRight.Controls.Add(this.lblLevelCode);
this.panelRight.Controls.Add(this.txbName);
this.panelRight.Controls.Add(this.lblName);
this.panelRight.Controls.Add(this.btnSave);
this.panelRight.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelRight.Location = new System.Drawing.Point(296, 0);
this.panelRight.Name = "panelRight";
this.panelRight.Size = new System.Drawing.Size(232, 349);
this.panelRight.TabIndex = 4;
//
// btnDel
//
this.btnDel.Location = new System.Drawing.Point(64, 294);
this.btnDel.Name = "btnDel";
this.btnDel.Size = new System.Drawing.Size(96, 23);
this.btnDel.TabIndex = 10;
this.btnDel.Text = "删除";
this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
//
// btnAddSub
//
this.btnAddSub.Location = new System.Drawing.Point(64, 218);
this.btnAddSub.Name = "btnAddSub";
this.btnAddSub.Size = new System.Drawing.Size(96, 23);
this.btnAddSub.TabIndex = 9;
this.btnAddSub.Text = "增加为子级别";
this.btnAddSub.Click += new System.EventHandler(this.btnAddSub_Click);
//
// btnAddEql
//
this.btnAddEql.Location = new System.Drawing.Point(64, 180);
this.btnAddEql.Name = "btnAddEql";
this.btnAddEql.Size = new System.Drawing.Size(96, 23);
this.btnAddEql.TabIndex = 8;
this.btnAddEql.Text = "增加为本级别";
this.btnAddEql.Click += new System.EventHandler(this.btnAddEql_Click);
//
// btnAddBas
//
this.btnAddBas.Location = new System.Drawing.Point(64, 142);
this.btnAddBas.Name = "btnAddBas";
this.btnAddBas.Size = new System.Drawing.Size(96, 23);
this.btnAddBas.TabIndex = 7;
this.btnAddBas.Text = "增加为第一级别";
this.btnAddBas.Click += new System.EventHandler(this.btnAddBas_Click);
//
// btnModify
//
this.btnModify.Location = new System.Drawing.Point(64, 104);
this.btnModify.Name = "btnModify";
this.btnModify.Size = new System.Drawing.Size(96, 23);
this.btnModify.TabIndex = 6;
this.btnModify.Text = "修改";
this.btnModify.Click += new System.EventHandler(this.btnModify_Click);
//
// txbDepCode
//
this.txbDepCode.Location = new System.Drawing.Point(90, 62);
this.txbDepCode.Name = "txbDepCode";
this.txbDepCode.ReadOnly = true;
this.txbDepCode.TabIndex = 5;
this.txbDepCode.Text = "";
//
// txbLKindCode
//
this.txbLKindCode.Location = new System.Drawing.Point(90, 35);
this.txbLKindCode.Name = "txbLKindCode";
this.txbLKindCode.TabIndex = 4;
this.txbLKindCode.Text = "";
//
// lblLastCode
//
this.lblLastCode.Location = new System.Drawing.Point(16, 67);
this.lblLastCode.Name = "lblLastCode";
this.lblLastCode.Size = new System.Drawing.Size(68, 16);
this.lblLastCode.TabIndex = 3;
this.lblLastCode.Text = "机构合成编码";
//
// lblLevelCode
//
this.lblLevelCode.Location = new System.Drawing.Point(28, 40);
this.lblLevelCode.Name = "lblLevelCode";
this.lblLevelCode.Size = new System.Drawing.Size(61, 16);
this.lblLevelCode.TabIndex = 2;
this.lblLevelCode.Text = "本级别编码";
//
// txbName
//
this.txbName.Location = new System.Drawing.Point(90, 8);
this.txbName.Name = "txbName";
this.txbName.TabIndex = 1;
this.txbName.Text = "";
//
// lblName
//
this.lblName.Location = new System.Drawing.Point(28, 17);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(56, 16);
this.lblName.TabIndex = 0;
this.lblName.Text = "机构名称";
//
// btnSave
//
this.btnSave.Location = new System.Drawing.Point(64, 256);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(96, 23);
this.btnSave.TabIndex = 7;
this.btnSave.Text = "保存修改";
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// trvList
//
this.trvList.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.trvList.Dock = System.Windows.Forms.DockStyle.Left;
this.trvList.ImageIndex = -1;
this.trvList.Location = new System.Drawing.Point(0, 0);
this.trvList.Name = "trvList";
this.trvList.SelectedImageIndex = -1;
this.trvList.Size = new System.Drawing.Size(296, 349);
this.trvList.TabIndex = 3;
//
// frmDepManage
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(528, 349);
this.Controls.Add(this.panelRight);
this.Controls.Add(this.trvList);
this.Name = "frmDepManage";
this.Text = "机构设置及编码";
this.Load += new System.EventHandler(this.frmDepManage_Load);
this.panelRight.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
// Added Fuction
private void InitTree( TreeNodeCollection nodes, string sParentIndex )
{
try
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -