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

📄 form1.cs

📁 人事管理系统 截面设计 简单 源码质量高 不要注册就可以下载
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.IO;

namespace AdminDangAn
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox TxtName;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ComboBox cmbsex;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.Label label8;
		private System.Windows.Forms.Label label9;
		private System.Windows.Forms.Label label10;
		private System.Windows.Forms.TextBox BirTxt;
		private System.Windows.Forms.TextBox MinzuTxt;
		private System.Windows.Forms.TextBox JgTxt;
		private System.Windows.Forms.TextBox FileName;
		private System.Windows.Forms.Button btn_liulan;
		private System.Windows.Forms.Button btn_onload;
		private System.Windows.Forms.Button btn_amend;
		private System.Windows.Forms.Button btn_delete;
		private System.Windows.Forms.Button btn_add;
		private System.Windows.Forms.TextBox DmpTxt;
		private System.Windows.Forms.TextBox ZwTxt;
		private System.Windows.Forms.TextBox JzSjTxt;
		private System.Windows.Forms.Button btn_search;
		private System.Windows.Forms.Label label11;
		private System.Windows.Forms.ComboBox cmbzjmm;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		private System.Windows.Forms.OpenFileDialog openFileDialog1;
		private SqlConnection conn=new SqlConnection("server=.;database=Sun;uid=sa;pwd=");
		private System.Windows.Forms.TextBox XlTxt;
		private System.Windows.Forms.Label label12;
		private System.Windows.Forms.ComboBox cmbnumber;
		private System.Windows.Forms.DataGrid dataGrid1;
		private string path="";//存储上传图片路径

		public Form1()
		{
			//
			// 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.label1 = new System.Windows.Forms.Label();
			this.TxtName = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.cmbsex = new System.Windows.Forms.ComboBox();
			this.BirTxt = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.MinzuTxt = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.JgTxt = new System.Windows.Forms.TextBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.FileName = new System.Windows.Forms.TextBox();
			this.btn_liulan = new System.Windows.Forms.Button();
			this.btn_onload = new System.Windows.Forms.Button();
			this.btn_amend = new System.Windows.Forms.Button();
			this.btn_delete = new System.Windows.Forms.Button();
			this.btn_add = new System.Windows.Forms.Button();
			this.DmpTxt = new System.Windows.Forms.TextBox();
			this.label8 = new System.Windows.Forms.Label();
			this.ZwTxt = new System.Windows.Forms.TextBox();
			this.label9 = new System.Windows.Forms.Label();
			this.JzSjTxt = new System.Windows.Forms.TextBox();
			this.label10 = new System.Windows.Forms.Label();
			this.btn_search = new System.Windows.Forms.Button();
			this.XlTxt = new System.Windows.Forms.TextBox();
			this.label11 = new System.Windows.Forms.Label();
			this.cmbzjmm = new System.Windows.Forms.ComboBox();
			this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
			this.label12 = new System.Windows.Forms.Label();
			this.cmbnumber = new System.Windows.Forms.ComboBox();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(24, 56);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "姓名:";
			// 
			// TxtName
			// 
			this.TxtName.Location = new System.Drawing.Point(64, 48);
			this.TxtName.Name = "TxtName";
			this.TxtName.Size = new System.Drawing.Size(72, 21);
			this.TxtName.TabIndex = 2;
			this.TxtName.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 88);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(48, 16);
			this.label2.TabIndex = 3;
			this.label2.Text = "性别:";
			// 
			// cmbsex
			// 
			this.cmbsex.Items.AddRange(new object[] {
														"男",
														"女"});
			this.cmbsex.Location = new System.Drawing.Point(64, 80);
			this.cmbsex.Name = "cmbsex";
			this.cmbsex.Size = new System.Drawing.Size(80, 20);
			this.cmbsex.TabIndex = 4;
			// 
			// BirTxt
			// 
			this.BirTxt.Location = new System.Drawing.Point(232, 48);
			this.BirTxt.Name = "BirTxt";
			this.BirTxt.TabIndex = 5;
			this.BirTxt.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(168, 56);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(72, 16);
			this.label3.TabIndex = 6;
			this.label3.Text = "出生年月:";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(168, 88);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(72, 16);
			this.label4.TabIndex = 8;
			this.label4.Text = "政治面貌:";
			// 
			// MinzuTxt
			// 
			this.MinzuTxt.Location = new System.Drawing.Point(400, 48);
			this.MinzuTxt.Name = "MinzuTxt";
			this.MinzuTxt.Size = new System.Drawing.Size(72, 21);
			this.MinzuTxt.TabIndex = 10;
			this.MinzuTxt.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(360, 56);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(48, 16);
			this.label5.TabIndex = 9;
			this.label5.Text = "民族:";
			// 
			// JgTxt
			// 
			this.JgTxt.Location = new System.Drawing.Point(400, 80);
			this.JgTxt.Name = "JgTxt";
			this.JgTxt.Size = new System.Drawing.Size(72, 21);
			this.JgTxt.TabIndex = 12;
			this.JgTxt.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(360, 88);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(48, 16);
			this.label6.TabIndex = 11;
			this.label6.Text = "籍贯:";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(24, 160);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(48, 16);
			this.label7.TabIndex = 13;
			this.label7.Text = "照片:";
			// 
			// FileName
			// 
			this.FileName.Location = new System.Drawing.Point(64, 152);
			this.FileName.Name = "FileName";
			this.FileName.Size = new System.Drawing.Size(160, 21);
			this.FileName.TabIndex = 14;
			this.FileName.Text = "";
			// 
			// btn_liulan
			// 
			this.btn_liulan.Location = new System.Drawing.Point(232, 152);
			this.btn_liulan.Name = "btn_liulan";
			this.btn_liulan.Size = new System.Drawing.Size(48, 23);
			this.btn_liulan.TabIndex = 15;
			this.btn_liulan.Text = "浏览";
			this.btn_liulan.Click += new System.EventHandler(this.btn_liulan_Click);
			// 
			// btn_onload
			// 
			this.btn_onload.Location = new System.Drawing.Point(288, 152);
			this.btn_onload.Name = "btn_onload";
			this.btn_onload.Size = new System.Drawing.Size(48, 23);
			this.btn_onload.TabIndex = 16;
			this.btn_onload.Text = "上传";
			this.btn_onload.Click += new System.EventHandler(this.btn_onload_Click);
			// 
			// btn_amend
			// 
			this.btn_amend.Location = new System.Drawing.Point(344, 16);
			this.btn_amend.Name = "btn_amend";
			this.btn_amend.Size = new System.Drawing.Size(40, 23);
			this.btn_amend.TabIndex = 21;
			this.btn_amend.Text = "修改";
			this.btn_amend.Click += new System.EventHandler(this.btn_amend_Click);
			// 
			// btn_delete
			// 
			this.btn_delete.Location = new System.Drawing.Point(288, 16);
			this.btn_delete.Name = "btn_delete";
			this.btn_delete.Size = new System.Drawing.Size(40, 23);
			this.btn_delete.TabIndex = 20;
			this.btn_delete.Text = "删除";
			this.btn_delete.Click += new System.EventHandler(this.btn_delete_Click);
			// 
			// btn_add
			// 
			this.btn_add.Location = new System.Drawing.Point(232, 16);
			this.btn_add.Name = "btn_add";
			this.btn_add.Size = new System.Drawing.Size(40, 23);
			this.btn_add.TabIndex = 19;
			this.btn_add.Text = "添加";
			this.btn_add.Click += new System.EventHandler(this.btn_add_Click);
			// 
			// DmpTxt
			// 
			this.DmpTxt.Location = new System.Drawing.Point(64, 112);
			this.DmpTxt.Name = "DmpTxt";
			this.DmpTxt.Size = new System.Drawing.Size(72, 21);
			this.DmpTxt.TabIndex = 23;
			this.DmpTxt.Text = "";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(24, 120);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(48, 16);
			this.label8.TabIndex = 22;
			this.label8.Text = "部门:";
			// 
			// ZwTxt
			// 
			this.ZwTxt.Location = new System.Drawing.Point(192, 112);
			this.ZwTxt.Name = "ZwTxt";
			this.ZwTxt.Size = new System.Drawing.Size(72, 21);
			this.ZwTxt.TabIndex = 25;
			this.ZwTxt.Text = "";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(152, 120);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(48, 16);

⌨️ 快捷键说明

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