📄 frmpersonedit.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using Jinrm.Data;
//using Jinrm.GZ;
namespace GzglClient.Froms
{
/// <summary>
/// frmPersonEdit 的摘要说明。
/// </summary>
public class frmPersonEdit : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabControl tc_Person;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.TabPage tabPage5;
private System.Windows.Forms.TabPage tabPage6;
private System.Windows.Forms.TabPage tabPage7;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ColumnHeader columnHeader5;
private System.Windows.Forms.ColumnHeader columnHeader6;
private System.Windows.Forms.ColumnHeader columnHeader7;
private System.Windows.Forms.ColumnHeader columnHeader8;
private System.Windows.Forms.ColumnHeader columnHeader9;
private System.Windows.Forms.ColumnHeader columnHeader10;
private System.Windows.Forms.ColumnHeader columnHeader11;
private System.Windows.Forms.ColumnHeader columnHeader12;
private System.Windows.Forms.ColumnHeader columnHeader13;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.TextBox textBox12;
private System.Windows.Forms.ListView XLItemList;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.TextBox Sex;
private System.Windows.Forms.TextBox OrgName;
private System.Windows.Forms.TextBox BZXZ;
private System.Windows.Forms.TextBox BZJG;
private System.Windows.Forms.TextBox SF;
private System.Windows.Forms.TextBox GZSJ;
private System.Windows.Forms.TextBox KCGL;
private System.Windows.Forms.TextBox YJXL;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox Birth;
private System.Windows.Forms.Label IDCard111;
private System.Windows.Forms.TextBox IDCard;
private System.Windows.Forms.TextBox Name1;
private string strIDCard = "";
private string strPersonId = "";
private System.Windows.Forms.ColumnHeader columnHeader14;
private System.Windows.Forms.ColumnHeader columnHeader15;
private System.Windows.Forms.ColumnHeader columnHeader16;
private System.Windows.Forms.ColumnHeader columnHeader17;
private System.Windows.Forms.ColumnHeader columnHeader18;
private System.Windows.Forms.ColumnHeader columnHeader19;
private System.Windows.Forms.ColumnHeader columnHeader20;
private System.Windows.Forms.ColumnHeader columnHeader21;
private System.Windows.Forms.ColumnHeader columnHeader22;
private System.Windows.Forms.ColumnHeader columnHeader23;
private System.Windows.Forms.ColumnHeader columnHeader24;
private System.Windows.Forms.ListView RZItemList;
private System.Windows.Forms.ListView KHItemList;
private System.Windows.Forms.ColumnHeader columnHeader25;
private System.Windows.Forms.ColumnHeader columnHeader26;
private System.Windows.Forms.ColumnHeader columnHeader27;
private System.Windows.Forms.ColumnHeader columnHeader29;
private System.Windows.Forms.ColumnHeader columnHeader30;
private System.Windows.Forms.ListView JXItemList;
private System.Windows.Forms.ColumnHeader columnHeader31;
private System.Windows.Forms.ListView GZItemList;
private System.Windows.Forms.ColumnHeader columnHeader32;
private System.Windows.Forms.ColumnHeader columnHeader33;
private System.Windows.Forms.ColumnHeader columnHeader34;
private System.Windows.Forms.ColumnHeader columnHeader35;
private System.Windows.Forms.ColumnHeader columnHeader36;
private System.Windows.Forms.ColumnHeader columnHeader37;
private System.Windows.Forms.ColumnHeader columnHeader38;
private System.Windows.Forms.ColumnHeader columnHeader39;
private System.Windows.Forms.ColumnHeader columnHeader40;
private System.Windows.Forms.ColumnHeader columnHeader41;
private DoAccess conn = new DoAccess();
public frmPersonEdit(string _IDCard)
{
strIDCard = _IDCard;
strPersonId = conn.GetValueFromName("PersonId","Person","IDCard = '"+ strIDCard +"' ");
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.tc_Person = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.btnClose = new System.Windows.Forms.Button();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.label8 = new System.Windows.Forms.Label();
this.textBox5 = new System.Windows.Forms.TextBox();
this.textBox6 = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.textBox12 = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.Name1 = new System.Windows.Forms.TextBox();
this.IDCard = new System.Windows.Forms.TextBox();
this.IDCard111 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.Birth = new System.Windows.Forms.TextBox();
this.OrgName = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.BZXZ = new System.Windows.Forms.TextBox();
this.BZJG = new System.Windows.Forms.TextBox();
this.label9 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.SF = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.KCGL = new System.Windows.Forms.TextBox();
this.Sex = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label();
this.GZSJ = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.YJXL = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.tabPage6 = new System.Windows.Forms.TabPage();
this.GZItemList = new System.Windows.Forms.ListView();
this.columnHeader29 = new System.Windows.Forms.ColumnHeader();
this.columnHeader30 = new System.Windows.Forms.ColumnHeader();
this.columnHeader32 = new System.Windows.Forms.ColumnHeader();
this.columnHeader33 = new System.Windows.Forms.ColumnHeader();
this.columnHeader34 = new System.Windows.Forms.ColumnHeader();
this.columnHeader35 = new System.Windows.Forms.ColumnHeader();
this.columnHeader36 = new System.Windows.Forms.ColumnHeader();
this.columnHeader37 = new System.Windows.Forms.ColumnHeader();
this.columnHeader38 = new System.Windows.Forms.ColumnHeader();
this.columnHeader39 = new System.Windows.Forms.ColumnHeader();
this.columnHeader40 = new System.Windows.Forms.ColumnHeader();
this.columnHeader41 = new System.Windows.Forms.ColumnHeader();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.RZItemList = new System.Windows.Forms.ListView();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
this.columnHeader19 = new System.Windows.Forms.ColumnHeader();
this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
this.columnHeader20 = new System.Windows.Forms.ColumnHeader();
this.columnHeader21 = new System.Windows.Forms.ColumnHeader();
this.columnHeader22 = new System.Windows.Forms.ColumnHeader();
this.columnHeader23 = new System.Windows.Forms.ColumnHeader();
this.columnHeader24 = new System.Windows.Forms.ColumnHeader();
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
this.columnHeader10 = new System.Windows.Forms.ColumnHeader();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.XLItemList = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader14 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.columnHeader15 = new System.Windows.Forms.ColumnHeader();
this.columnHeader16 = new System.Windows.Forms.ColumnHeader();
this.columnHeader17 = new System.Windows.Forms.ColumnHeader();
this.columnHeader18 = new System.Windows.Forms.ColumnHeader();
this.tabPage5 = new System.Windows.Forms.TabPage();
this.JXItemList = new System.Windows.Forms.ListView();
this.columnHeader25 = new System.Windows.Forms.ColumnHeader();
this.columnHeader26 = new System.Windows.Forms.ColumnHeader();
this.columnHeader27 = new System.Windows.Forms.ColumnHeader();
this.columnHeader31 = new System.Windows.Forms.ColumnHeader();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.KHItemList = new System.Windows.Forms.ListView();
this.columnHeader11 = new System.Windows.Forms.ColumnHeader();
this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
this.columnHeader13 = new System.Windows.Forms.ColumnHeader();
this.tabPage7 = new System.Windows.Forms.TabPage();
this.tc_Person.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tabPage6.SuspendLayout();
this.tabPage3.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage5.SuspendLayout();
this.tabPage4.SuspendLayout();
this.SuspendLayout();
//
// tc_Person
//
this.tc_Person.Controls.Add(this.tabPage1);
this.tc_Person.Controls.Add(this.tabPage6);
this.tc_Person.Controls.Add(this.tabPage3);
this.tc_Person.Controls.Add(this.tabPage2);
this.tc_Person.Controls.Add(this.tabPage5);
this.tc_Person.Controls.Add(this.tabPage4);
this.tc_Person.Controls.Add(this.tabPage7);
this.tc_Person.Dock = System.Windows.Forms.DockStyle.Fill;
this.tc_Person.Location = new System.Drawing.Point(0, 0);
this.tc_Person.Name = "tc_Person";
this.tc_Person.SelectedIndex = 0;
this.tc_Person.Size = new System.Drawing.Size(642, 423);
this.tc_Person.TabIndex = 0;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.btnClose);
this.tabPage1.Controls.Add(this.groupBox2);
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Location = new System.Drawing.Point(4, 21);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(634, 398);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "基本信息";
this.tabPage1.Click += new System.EventHandler(this.tabPage1_Click);
//
// btnClose
//
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnClose.Location = new System.Drawing.Point(528, 368);
this.btnClose.Name = "btnClose";
this.btnClose.TabIndex = 42;
this.btnClose.Text = "关闭";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.textBox5);
this.groupBox2.Controls.Add(this.textBox6);
this.groupBox2.Controls.Add(this.label11);
this.groupBox2.Controls.Add(this.label17);
this.groupBox2.Controls.Add(this.textBox12);
this.groupBox2.Location = new System.Drawing.Point(16, 224);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(600, 136);
this.groupBox2.TabIndex = 41;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "当前工资信息";
//
// label8
//
this.label8.Location = new System.Drawing.Point(32, 48);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(66, 23);
this.label8.TabIndex = 44;
this.label8.Text = "岗位工资:";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// textBox5
//
this.textBox5.BackColor = System.Drawing.Color.LightYellow;
this.textBox5.Location = new System.Drawing.Point(104, 48);
this.textBox5.MaxLength = 100;
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(180, 21);
this.textBox5.TabIndex = 45;
this.textBox5.Text = "";
//
// textBox6
//
this.textBox6.BackColor = System.Drawing.Color.LightYellow;
this.textBox6.Location = new System.Drawing.Point(376, 48);
this.textBox6.MaxLength = 100;
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(180, 21);
this.textBox6.TabIndex = 46;
this.textBox6.Text = "";
//
// label11
//
this.label11.Location = new System.Drawing.Point(304, 48);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(66, 23);
this.label11.TabIndex = 47;
this.label11.Text = "职务工资:";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label17
//
this.label17.Location = new System.Drawing.Point(32, 24);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(66, 23);
this.label17.TabIndex = 40;
this.label17.Text = "工资总额:";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// textBox12
//
this.textBox12.BackColor = System.Drawing.Color.LightYellow;
this.textBox12.Location = new System.Drawing.Point(104, 24);
this.textBox12.MaxLength = 100;
this.textBox12.Name = "textBox12";
this.textBox12.Size = new System.Drawing.Size(180, 21);
this.textBox12.TabIndex = 41;
this.textBox12.Text = "";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.Name1);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -