?? punishmentmanage.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace 人力資源管理系統
{
/// <summary>
/// PunishmentManage 的摘要說明。
/// </summary>
public class PunishmentManage : 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.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 System.Windows.Forms.TextBox txt7;
private System.Windows.Forms.TextBox txt6;
private System.Windows.Forms.TextBox txt5;
private System.Windows.Forms.TextBox txt4;
private 人力資源管理系統.DataSet1 dataSet11;
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.ToolBar toolBar;
private System.Windows.Forms.ToolBarButton toolBarCancel;
private System.Windows.Forms.ToolBarButton toolBarQuit;
private System.Windows.Forms.ImageList imageList1;
private System.ComponentModel.IContainer components;
public PunishmentManage()
{
//
// 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(PunishmentManage));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txt7 = new System.Windows.Forms.TextBox();
this.dataSet11 = new 人力資源管理系統.DataSet1();
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.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.imageList1 = new System.Windows.Forms.ImageList(this.components);
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(0, 46);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(528, 250);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
//
// txt7
//
this.txt7.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.部門意見"));
this.txt7.Location = new System.Drawing.Point(312, 192);
this.txt7.Name = "txt7";
this.txt7.Size = new System.Drawing.Size(192, 21);
this.txt7.TabIndex = 6;
this.txt7.Text = "";
//
// dataSet11
//
this.dataSet11.DataSetName = "DataSet1";
this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
//
// txt6
//
this.txt6.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.懲罰原因"));
this.txt6.Location = new System.Drawing.Point(40, 192);
this.txt6.Name = "txt6";
this.txt6.Size = new System.Drawing.Size(232, 21);
this.txt6.TabIndex = 5;
this.txt6.Text = "";
//
// txt1
//
this.txt1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.職員編號"));
this.txt1.Location = new System.Drawing.Point(40, 72);
this.txt1.Name = "txt1";
this.txt1.Size = new System.Drawing.Size(88, 21);
this.txt1.TabIndex = 0;
this.txt1.Text = "";
//
// txt2
//
this.txt2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.懲罰類型"));
this.txt2.Location = new System.Drawing.Point(144, 72);
this.txt2.Name = "txt2";
this.txt2.Size = new System.Drawing.Size(356, 21);
this.txt2.TabIndex = 1;
this.txt2.Text = "";
//
// txt5
//
this.txt5.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.是否計入工資"));
this.txt5.Location = new System.Drawing.Point(400, 136);
this.txt5.Name = "txt5";
this.txt5.Size = new System.Drawing.Size(104, 21);
this.txt5.TabIndex = 4;
this.txt5.Text = "";
//
// txt3
//
this.txt3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.懲罰金額"));
this.txt3.Location = new System.Drawing.Point(40, 136);
this.txt3.Name = "txt3";
this.txt3.Size = new System.Drawing.Size(136, 21);
this.txt3.TabIndex = 2;
this.txt3.Text = "";
//
// txt4
//
this.txt4.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "職員懲罰表.懲罰日期"));
this.txt4.Location = new System.Drawing.Point(192, 136);
this.txt4.Name = "txt4";
this.txt4.Size = new System.Drawing.Size(192, 21);
this.txt4.TabIndex = 3;
this.txt4.Text = "";
//
// label3
//
this.label3.Location = new System.Drawing.Point(400, 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(40, 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(312, 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(144, 48);
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(192, 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(40, 48);
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(40, 112);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(64, 16);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -