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

📄 hortationmanage.cs

📁 Visual C#.NET数据库开发经典案例解析,这里有1到3的案例
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace 人力资源管理系统
{
	/// <summary>
	/// HortationManage 的摘要说明。
	/// </summary>
	public class HortationManage : System.Windows.Forms.Form
	{
		private CurrencyManager cmManage;

		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.TextBox txt1;
		private System.Windows.Forms.TextBox txt2;
		private System.Windows.Forms.TextBox txt3;
		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 label18;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
		private System.Windows.Forms.TextBox txt7;
		private System.Windows.Forms.TextBox txt6;
		private System.Windows.Forms.TextBox txt5;
		private System.Windows.Forms.TextBox txt4;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.ToolBar toolBar;
		private System.Windows.Forms.ToolBarButton toolBarFirst;
		private System.Windows.Forms.ToolBarButton toolBarPre;
		private System.Windows.Forms.ToolBarButton toolBarNext;
		private System.Windows.Forms.ToolBarButton toolBarLast;
		private System.Windows.Forms.ToolBarButton tbarBtnNew;
		private System.Windows.Forms.ToolBarButton tbarBtnDelete;
		private System.Windows.Forms.ToolBarButton toolBarSubmit;
		private System.Windows.Forms.ToolBarButton toolBarCancel;
		private System.Windows.Forms.ToolBarButton toolBarQuit;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private 人力资源管理系统.DataSet1 dataSet11;
		private System.ComponentModel.IContainer components;

		public HortationManage()
		{
			//
			// 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.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HortationManage));
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.txt7 = new System.Windows.Forms.TextBox();
			this.txt6 = new System.Windows.Forms.TextBox();
			this.txt1 = new System.Windows.Forms.TextBox();
			this.txt2 = new System.Windows.Forms.TextBox();
			this.txt5 = new System.Windows.Forms.TextBox();
			this.txt3 = new System.Windows.Forms.TextBox();
			this.txt4 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.label7 = new System.Windows.Forms.Label();
			this.label8 = new System.Windows.Forms.Label();
			this.label18 = new System.Windows.Forms.Label();
			this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.toolBar = new System.Windows.Forms.ToolBar();
			this.toolBarFirst = new System.Windows.Forms.ToolBarButton();
			this.toolBarPre = new System.Windows.Forms.ToolBarButton();
			this.toolBarNext = new System.Windows.Forms.ToolBarButton();
			this.toolBarLast = new System.Windows.Forms.ToolBarButton();
			this.tbarBtnNew = new System.Windows.Forms.ToolBarButton();
			this.tbarBtnDelete = new System.Windows.Forms.ToolBarButton();
			this.toolBarSubmit = new System.Windows.Forms.ToolBarButton();
			this.toolBarCancel = new System.Windows.Forms.ToolBarButton();
			this.toolBarQuit = new System.Windows.Forms.ToolBarButton();
			this.dataSet11 = new 人力资源管理系统.DataSet1();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.groupBox1.Controls.Add(this.txt7);
			this.groupBox1.Controls.Add(this.txt6);
			this.groupBox1.Controls.Add(this.txt1);
			this.groupBox1.Controls.Add(this.txt2);
			this.groupBox1.Controls.Add(this.txt5);
			this.groupBox1.Controls.Add(this.txt3);
			this.groupBox1.Controls.Add(this.txt4);
			this.groupBox1.Controls.Add(this.label3);
			this.groupBox1.Controls.Add(this.label4);
			this.groupBox1.Controls.Add(this.label5);
			this.groupBox1.Controls.Add(this.label6);
			this.groupBox1.Controls.Add(this.label7);
			this.groupBox1.Controls.Add(this.label8);
			this.groupBox1.Controls.Add(this.label18);
			this.groupBox1.Location = new System.Drawing.Point(4, 47);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(632, 249);
			this.groupBox1.TabIndex = 3;
			this.groupBox1.TabStop = false;
			// 
			// txt7
			// 
			this.txt7.Location = new System.Drawing.Point(336, 192);
			this.txt7.Name = "txt7";
			this.txt7.Size = new System.Drawing.Size(216, 21);
			this.txt7.TabIndex = 6;
			this.txt7.Text = "";
			// 
			// txt6
			// 
			this.txt6.Location = new System.Drawing.Point(72, 192);
			this.txt6.Name = "txt6";
			this.txt6.Size = new System.Drawing.Size(240, 21);
			this.txt6.TabIndex = 5;
			this.txt6.Text = "";
			// 
			// txt1
			// 
			this.txt1.Location = new System.Drawing.Point(72, 64);
			this.txt1.Name = "txt1";
			this.txt1.Size = new System.Drawing.Size(128, 21);
			this.txt1.TabIndex = 0;
			this.txt1.Text = "";
			// 
			// txt2
			// 
			this.txt2.Location = new System.Drawing.Point(232, 64);
			this.txt2.Name = "txt2";
			this.txt2.Size = new System.Drawing.Size(320, 21);
			this.txt2.TabIndex = 1;
			this.txt2.Text = "";
			// 
			// txt5
			// 
			this.txt5.Location = new System.Drawing.Point(416, 136);
			this.txt5.Name = "txt5";
			this.txt5.Size = new System.Drawing.Size(136, 21);
			this.txt5.TabIndex = 4;
			this.txt5.Text = "";
			// 
			// txt3
			// 
			this.txt3.Location = new System.Drawing.Point(72, 136);
			this.txt3.Name = "txt3";
			this.txt3.Size = new System.Drawing.Size(128, 21);
			this.txt3.TabIndex = 2;
			this.txt3.Text = "";
			// 
			// txt4
			// 
			this.txt4.Location = new System.Drawing.Point(232, 136);
			this.txt4.Name = "txt4";
			this.txt4.Size = new System.Drawing.Size(152, 21);
			this.txt4.TabIndex = 3;
			this.txt4.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(416, 112);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(88, 16);
			this.label3.TabIndex = 19;
			this.label3.Text = "是否记入工资";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(72, 168);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(64, 16);
			this.label4.TabIndex = 19;
			this.label4.Text = "奖励原因";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(336, 168);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(64, 16);
			this.label5.TabIndex = 19;
			this.label5.Text = "部门意见";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(232, 40);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(64, 16);
			this.label6.TabIndex = 19;
			this.label6.Text = "奖励类型";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(232, 112);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(64, 16);
			this.label7.TabIndex = 19;
			this.label7.Text = "奖励日期";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(72, 40);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(64, 16);
			this.label8.TabIndex = 19;
			this.label8.Text = "职员编号";
			// 
			// label18
			// 
			this.label18.Location = new System.Drawing.Point(72, 112);
			this.label18.Name = "label18";
			this.label18.Size = new System.Drawing.Size(64, 16);
			this.label18.TabIndex = 19;
			this.label18.Text = "奖励金额";
			// 
			// sqlDataAdapter1
			// 
			this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
			this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
			this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;

⌨️ 快捷键说明

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