📄 amendstafferinfo.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>
/// AmendStafferInfo 的摘要说明。
/// </summary>
public class AmendStafferInfo : System.Windows.Forms.Form
{
private DataTable tempTable = new DataTable();
private CurrencyManager cmAmend;
private string strSQL = "";
private SqlConnection tempConnection = new SqlConnection("workstation id=localhost;database=hrmbook;Connect Timeout=30;Trusted_Connection=yes") ;
private SqlDataAdapter da;
private DataTable tblDataSource = new DataTable();
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
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.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.TextBox txt1;
private System.Windows.Forms.TextBox txt2;
private System.Windows.Forms.TextBox txt3;
private System.Windows.Forms.ComboBox cmb1;
private System.Windows.Forms.ComboBox cmb3;
private System.Windows.Forms.ComboBox cmb2;
private System.Windows.Forms.ComboBox cmb4;
private System.Windows.Forms.TextBox txt6;
private System.Windows.Forms.TextBox txt5;
private System.Windows.Forms.TextBox txt8;
private System.Windows.Forms.TextBox txt4;
private System.Windows.Forms.TextBox txt7;
private System.Windows.Forms.TextBox txt10;
private System.Windows.Forms.TextBox txt9;
private System.Windows.Forms.TextBox txt12;
private System.Windows.Forms.TextBox txt11;
private System.Windows.Forms.TextBox txt15;
private System.Windows.Forms.TextBox txt13;
private System.Windows.Forms.TextBox txt16;
private System.Windows.Forms.TextBox txt14;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton tbarBtnDelete;
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
private System.Windows.Forms.ToolBarButton tbarBtnNew;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.ToolBarButton toolBarPre;
private System.Windows.Forms.ToolBarButton toolBarNext;
private System.Windows.Forms.ToolBarButton toolBarSubmit;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.TextBox txt17;
private System.Windows.Forms.ToolBarButton toolBarFirst;
private System.Windows.Forms.ToolBarButton toolBarLast;
private System.Windows.Forms.ToolBarButton toolBarQuit;
private System.Windows.Forms.ToolBarButton toolBarCancel;
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 sqlConnection2;
private System.ComponentModel.IContainer components;
public AmendStafferInfo()
{
//
// 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(AmendStafferInfo));
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txt17 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.cmb1 = new System.Windows.Forms.ComboBox();
this.txt12 = new System.Windows.Forms.TextBox();
this.txt6 = new System.Windows.Forms.TextBox();
this.txt11 = new System.Windows.Forms.TextBox();
this.txt15 = new System.Windows.Forms.TextBox();
this.txt13 = new System.Windows.Forms.TextBox();
this.txt16 = new System.Windows.Forms.TextBox();
this.txt5 = new System.Windows.Forms.TextBox();
this.txt10 = new System.Windows.Forms.TextBox();
this.txt14 = new System.Windows.Forms.TextBox();
this.txt1 = new System.Windows.Forms.TextBox();
this.txt2 = new System.Windows.Forms.TextBox();
this.txt9 = new System.Windows.Forms.TextBox();
this.txt8 = new System.Windows.Forms.TextBox();
this.txt4 = new System.Windows.Forms.TextBox();
this.txt3 = new System.Windows.Forms.TextBox();
this.txt7 = new System.Windows.Forms.TextBox();
this.cmb3 = new System.Windows.Forms.ComboBox();
this.cmb2 = new System.Windows.Forms.ComboBox();
this.cmb4 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
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.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.toolBar1 = 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.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection2 = 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();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// dataGrid1
//
this.dataGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGrid1.CaptionVisible = false;
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(0, 40);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(642, 152);
this.dataGrid1.TabIndex = 21;
this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged);
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.txt17);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.cmb1);
this.groupBox1.Controls.Add(this.txt12);
this.groupBox1.Controls.Add(this.txt6);
this.groupBox1.Controls.Add(this.txt11);
this.groupBox1.Controls.Add(this.txt15);
this.groupBox1.Controls.Add(this.txt13);
this.groupBox1.Controls.Add(this.txt16);
this.groupBox1.Controls.Add(this.txt5);
this.groupBox1.Controls.Add(this.txt10);
this.groupBox1.Controls.Add(this.txt14);
this.groupBox1.Controls.Add(this.txt1);
this.groupBox1.Controls.Add(this.txt2);
this.groupBox1.Controls.Add(this.txt9);
this.groupBox1.Controls.Add(this.txt8);
this.groupBox1.Controls.Add(this.txt4);
this.groupBox1.Controls.Add(this.txt3);
this.groupBox1.Controls.Add(this.txt7);
this.groupBox1.Controls.Add(this.cmb3);
this.groupBox1.Controls.Add(this.cmb2);
this.groupBox1.Controls.Add(this.cmb4);
this.groupBox1.Controls.Add(this.label2);
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.label9);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Controls.Add(this.label13);
this.groupBox1.Controls.Add(this.label14);
this.groupBox1.Controls.Add(this.label15);
this.groupBox1.Controls.Add(this.label16);
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.label18);
this.groupBox1.Controls.Add(this.label19);
this.groupBox1.Controls.Add(this.label21);
this.groupBox1.Controls.Add(this.label20);
this.groupBox1.Location = new System.Drawing.Point(0, 192);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(642, 272);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
//
// txt17
//
this.txt17.Enabled = false;
this.txt17.Location = new System.Drawing.Point(464, 216);
this.txt17.Name = "txt17";
this.txt17.ReadOnly = true;
this.txt17.Size = new System.Drawing.Size(160, 21);
this.txt17.TabIndex = 20;
this.txt17.Text = "";
//
// label1
//
this.label1.Location = new System.Drawing.Point(528, 136);
this.label1.Name = "label1";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -