📄 addform.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO;
using System.Text;
using System.Data;
using System.Data.OleDb;
namespace PM
{
/// <summary>
/// AddForm 的摘要说明。
/// </summary>
public class AddForm : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox No_txt;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox Name_txt;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox Race_cb;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox Sex_cb;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ComboBox Party_cb;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox Marrige_cb;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox Number_txt;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.ComboBox Place_cb;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.TextBox Phone_txt;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.DateTimePicker Birth_dtp;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.TextBox Adress_txt;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.ComboBox Edu_cb;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.ComboBox Degree_cb;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.ComboBox Pro_cb;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.DateTimePicker LeaveSchool_dtp;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.TextBox School_txt;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.ComboBox EmpType_cb;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.DateTimePicker EmpTime_dtp;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.ComboBox App_cb;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.ComboBox Source_cb;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.ComboBox Title_cb;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.ComboBox Job_cb;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.ComboBox Section_cb;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.TextBox Wa_txt;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.TextBox Med_txt;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.TextBox EenMen_txt;
private System.Windows.Forms.Label label33;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox RaceId_txt;
private System.Windows.Forms.TextBox SectionId_txt;
private System.Windows.Forms.TextBox JobId_txt;
private System.Windows.Forms.TextBox TitleId_txt;
private System.ComponentModel.IContainer components;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.ToolTip toolTip1;
private OpenFileDialog openfile = new OpenFileDialog();
public AddForm()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
openfile.Filter = "图像文件 (*.BMP;*.JPG;*.GIF;*.bmp;*.jpg;*.gif)|*.BMP;*.JPG;*.GIF;*.bmp;*.jpg;*.gif|所有文件 (*.*)|*.*";
//
// 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.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(AddForm));
this.No_txt = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.Name_txt = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.Race_cb = new System.Windows.Forms.ComboBox();
this.label4 = new System.Windows.Forms.Label();
this.Sex_cb = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.Party_cb = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.Marrige_cb = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.Number_txt = new System.Windows.Forms.TextBox();
this.label11 = new System.Windows.Forms.Label();
this.Place_cb = new System.Windows.Forms.ComboBox();
this.label10 = new System.Windows.Forms.Label();
this.Phone_txt = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.Birth_dtp = new System.Windows.Forms.DateTimePicker();
this.label13 = new System.Windows.Forms.Label();
this.Adress_txt = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
this.Edu_cb = new System.Windows.Forms.ComboBox();
this.label15 = new System.Windows.Forms.Label();
this.Degree_cb = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.Pro_cb = new System.Windows.Forms.ComboBox();
this.label18 = new System.Windows.Forms.Label();
this.LeaveSchool_dtp = new System.Windows.Forms.DateTimePicker();
this.label19 = new System.Windows.Forms.Label();
this.School_txt = new System.Windows.Forms.TextBox();
this.label20 = new System.Windows.Forms.Label();
this.EmpType_cb = new System.Windows.Forms.ComboBox();
this.label22 = new System.Windows.Forms.Label();
this.EmpTime_dtp = new System.Windows.Forms.DateTimePicker();
this.label23 = new System.Windows.Forms.Label();
this.App_cb = new System.Windows.Forms.ComboBox();
this.label25 = new System.Windows.Forms.Label();
this.Source_cb = new System.Windows.Forms.ComboBox();
this.label26 = new System.Windows.Forms.Label();
this.Title_cb = new System.Windows.Forms.ComboBox();
this.label27 = new System.Windows.Forms.Label();
this.Job_cb = new System.Windows.Forms.ComboBox();
this.label28 = new System.Windows.Forms.Label();
this.Section_cb = new System.Windows.Forms.ComboBox();
this.label29 = new System.Windows.Forms.Label();
this.Wa_txt = new System.Windows.Forms.TextBox();
this.label30 = new System.Windows.Forms.Label();
this.Med_txt = new System.Windows.Forms.TextBox();
this.label31 = new System.Windows.Forms.Label();
this.EenMen_txt = new System.Windows.Forms.TextBox();
this.label33 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.RaceId_txt = new System.Windows.Forms.TextBox();
this.SectionId_txt = new System.Windows.Forms.TextBox();
this.JobId_txt = new System.Windows.Forms.TextBox();
this.TitleId_txt = new System.Windows.Forms.TextBox();
this.button3 = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// No_txt
//
this.No_txt.Location = new System.Drawing.Point(72, 16);
this.No_txt.Name = "No_txt";
this.No_txt.TabIndex = 3;
this.No_txt.Text = "";
//
// label1
//
this.label1.Location = new System.Drawing.Point(16, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 16);
this.label1.TabIndex = 2;
this.label1.Text = "员工编号";
//
// Name_txt
//
this.Name_txt.Location = new System.Drawing.Point(248, 16);
this.Name_txt.Name = "Name_txt";
this.Name_txt.TabIndex = 5;
this.Name_txt.Text = "";
//
// label2
//
this.label2.Location = new System.Drawing.Point(192, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 16);
this.label2.TabIndex = 4;
this.label2.Text = "员工姓名";
//
// Race_cb
//
this.Race_cb.Location = new System.Drawing.Point(488, 16);
this.Race_cb.Name = "Race_cb";
this.Race_cb.Size = new System.Drawing.Size(50, 20);
this.Race_cb.TabIndex = 11;
this.Race_cb.SelectedIndexChanged += new System.EventHandler(this.Race_cb_SelectedIndexChanged);
//
// label4
//
this.label4.Location = new System.Drawing.Point(456, 24);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(32, 16);
this.label4.TabIndex = 10;
this.label4.Text = "民族";
//
// Sex_cb
//
this.Sex_cb.Items.AddRange(new object[] {
"男",
"女"});
this.Sex_cb.Location = new System.Drawing.Point(400, 16);
this.Sex_cb.Name = "Sex_cb";
this.Sex_cb.Size = new System.Drawing.Size(50, 20);
this.Sex_cb.TabIndex = 9;
//
// label3
//
this.label3.Location = new System.Drawing.Point(368, 24);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(32, 16);
this.label3.TabIndex = 8;
this.label3.Text = "性别";
//
// Party_cb
//
this.Party_cb.Items.AddRange(new object[] {
"群众",
"团员",
"党员",
"其他"});
this.Party_cb.Location = new System.Drawing.Point(672, 16);
this.Party_cb.Name = "Party_cb";
this.Party_cb.Size = new System.Drawing.Size(50, 20);
this.Party_cb.TabIndex = 15;
//
// label6
//
this.label6.Location = new System.Drawing.Point(632, 24);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(32, 16);
this.label6.TabIndex = 14;
this.label6.Text = "党派";
//
// Marrige_cb
//
this.Marrige_cb.Items.AddRange(new object[] {
"未婚",
"已婚"});
this.Marrige_cb.Location = new System.Drawing.Point(576, 16);
this.Marrige_cb.Name = "Marrige_cb";
this.Marrige_cb.Size = new System.Drawing.Size(50, 20);
this.Marrige_cb.TabIndex = 13;
//
// label5
//
this.label5.Location = new System.Drawing.Point(544, 24);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(32, 16);
this.label5.TabIndex = 12;
this.label5.Text = "婚否";
//
// Number_txt
//
this.Number_txt.Location = new System.Drawing.Point(248, 48);
this.Number_txt.Name = "Number_txt";
this.Number_txt.Size = new System.Drawing.Size(120, 21);
this.Number_txt.TabIndex = 21;
this.Number_txt.Text = "452401198411100023";
//
// label11
//
this.label11.Location = new System.Drawing.Point(192, 56);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(56, 16);
this.label11.TabIndex = 20;
this.label11.Text = "身份证号";
//
// Place_cb
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -