?? incometax.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace 人力資源管理系統
{
/// <summary>
/// IncomeTax 的摘要說明。
/// </summary>
public class IncomeTax : System.Windows.Forms.Form
{
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton tbarBtnSave;
private System.Windows.Forms.ToolBarButton tbarBtnDelete;
private System.Windows.Forms.ImageList imageList1;
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
private System.Windows.Forms.DataGridTableStyle dataGridTableStyle1;
private System.Windows.Forms.DataGridTextBoxColumn 編號;
private System.Windows.Forms.DataGridTextBoxColumn 級數;
private System.Windows.Forms.DataGridTextBoxColumn 不計稅工資;
private System.Windows.Forms.DataGridTextBoxColumn 工資下限;
private System.Windows.Forms.DataGridTextBoxColumn 工資上限;
private System.Windows.Forms.DataGridTextBoxColumn 個人所得稅率;
private System.Windows.Forms.DataGridTextBoxColumn 速算扣除數;
private System.Windows.Forms.DataGridTextBoxColumn 備注;
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 IncomeTax()
{
//
// 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(IncomeTax));
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.dataSet11 = new 人力資源管理系統.DataSet1();
this.dataGridTableStyle1 = new System.Windows.Forms.DataGridTableStyle();
this.編號 = new System.Windows.Forms.DataGridTextBoxColumn();
this.級數 = new System.Windows.Forms.DataGridTextBoxColumn();
this.不計稅工資 = new System.Windows.Forms.DataGridTextBoxColumn();
this.工資下限 = new System.Windows.Forms.DataGridTextBoxColumn();
this.工資上限 = new System.Windows.Forms.DataGridTextBoxColumn();
this.個人所得稅率 = new System.Windows.Forms.DataGridTextBoxColumn();
this.速算扣除數 = new System.Windows.Forms.DataGridTextBoxColumn();
this.備注 = new System.Windows.Forms.DataGridTextBoxColumn();
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.tbarBtnSave = new System.Windows.Forms.ToolBarButton();
this.tbarBtnDelete = 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.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();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
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.DataSource = this.dataSet11;
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(592, 378);
this.dataGrid1.TabIndex = 1;
this.dataGrid1.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
this.dataGridTableStyle1});
//
// dataSet11
//
this.dataSet11.DataSetName = "DataSet1";
this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
//
// dataGridTableStyle1
//
this.dataGridTableStyle1.AllowSorting = false;
this.dataGridTableStyle1.AlternatingBackColor = System.Drawing.Color.LightGray;
this.dataGridTableStyle1.DataGrid = this.dataGrid1;
this.dataGridTableStyle1.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
this.編號,
this.級數,
this.不計稅工資,
this.工資下限,
this.工資上限,
this.個人所得稅率,
this.速算扣除數,
this.備注});
this.dataGridTableStyle1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGridTableStyle1.MappingName = "個人所得稅表";
//
// 編號
//
this.編號.Format = "";
this.編號.FormatInfo = null;
this.編號.HeaderText = "編號";
this.編號.MappingName = "編號";
this.編號.NullText = "";
this.編號.Width = 35;
//
// 級數
//
this.級數.Format = "";
this.級數.FormatInfo = null;
this.級數.HeaderText = "級數";
this.級數.MappingName = "級數";
this.級數.NullText = "";
this.級數.Width = 35;
//
// 不計稅工資
//
this.不計稅工資.Format = "";
this.不計稅工資.FormatInfo = null;
this.不計稅工資.HeaderText = "不計稅工資";
this.不計稅工資.MappingName = "不計稅工資";
this.不計稅工資.NullText = "";
this.不計稅工資.Width = 75;
//
// 工資下限
//
this.工資下限.Format = "";
this.工資下限.FormatInfo = null;
this.工資下限.HeaderText = "工資下限";
this.工資下限.MappingName = "工資下限";
this.工資下限.NullText = "";
this.工資下限.Width = 75;
//
// 工資上限
//
this.工資上限.Format = "";
this.工資上限.FormatInfo = null;
this.工資上限.HeaderText = "工資上限";
this.工資上限.MappingName = "工資上限";
this.工資上限.NullText = "";
this.工資上限.Width = 75;
//
// 個人所得稅率
//
this.個人所得稅率.Format = "";
this.個人所得稅率.FormatInfo = null;
this.個人所得稅率.HeaderText = "個人所得稅率";
this.個人所得稅率.MappingName = "個人所得稅率";
this.個人所得稅率.NullText = "";
this.個人所得稅率.Width = 75;
//
// 速算扣除數
//
this.速算扣除數.Format = "";
this.速算扣除數.FormatInfo = null;
this.速算扣除數.HeaderText = "速算扣除數";
this.速算扣除數.MappingName = "速算扣除數";
this.速算扣除數.NullText = "";
this.速算扣除數.Width = 75;
//
// 備注
//
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -