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

📄 faclitynum.cs

📁 仓库管理系统源代码 c#+sql2000
💻 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;

namespace WindowsApplication4
{
	/// <summary>
	/// FaclityNum 的摘要说明。
	/// </summary>
	public class FaclityNum : System.Windows.Forms.Form
	{
		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.TextBox textNum;
		private System.Windows.Forms.Button add_button;
		private System.Windows.Forms.Button del_button;
		private System.Windows.Forms.Button send_button;
		private System.Windows.Forms.Button cancel_button;
		private System.Data.SqlClient.SqlDataAdapter FacNumAdapter;
		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 DataTable FacNumInfo=new DataTable();
		private DataRow numRow;
		 
		private CurrencyManager FNReport;
		private SqlTransaction FacNumTran;
		private SqlConnection MyConn = new SqlConnection("server=.;Trusted_Connection=yes;user=sa;pwd=1;database=storage");
		private System.Windows.Forms.TextBox textName;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FaclityNum()
		{
			//
			// 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.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.cancel_button = new System.Windows.Forms.Button();
			this.send_button = new System.Windows.Forms.Button();
			this.del_button = new System.Windows.Forms.Button();
			this.add_button = new System.Windows.Forms.Button();
			this.textName = new System.Windows.Forms.TextBox();
			this.textNum = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.FacNumAdapter = 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();
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// dataGrid1
			// 
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(16, 16);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.Size = new System.Drawing.Size(208, 288);
			this.dataGrid1.TabIndex = 0;
			this.dataGrid1.Click += new System.EventHandler(this.dataGrid1_Select);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.cancel_button);
			this.groupBox1.Controls.Add(this.send_button);
			this.groupBox1.Controls.Add(this.del_button);
			this.groupBox1.Controls.Add(this.add_button);
			this.groupBox1.Controls.Add(this.textName);
			this.groupBox1.Controls.Add(this.textNum);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Location = new System.Drawing.Point(240, 16);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(208, 288);
			this.groupBox1.TabIndex = 1;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "明细";
			// 
			// cancel_button
			// 
			this.cancel_button.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.cancel_button.Location = new System.Drawing.Point(24, 224);
			this.cancel_button.Name = "cancel_button";
			this.cancel_button.Size = new System.Drawing.Size(152, 24);
			this.cancel_button.TabIndex = 7;
			this.cancel_button.Text = "取消";
			this.cancel_button.Click += new System.EventHandler(this.cancel_button_Click);
			// 
			// send_button
			// 
			this.send_button.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.send_button.Location = new System.Drawing.Point(24, 168);
			this.send_button.Name = "send_button";
			this.send_button.Size = new System.Drawing.Size(152, 24);
			this.send_button.TabIndex = 6;
			this.send_button.Text = "提交";
			this.send_button.Click += new System.EventHandler(this.send_button_Click);
			// 
			// del_button
			// 
			this.del_button.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.del_button.Location = new System.Drawing.Point(112, 120);
			this.del_button.Name = "del_button";
			this.del_button.Size = new System.Drawing.Size(72, 24);
			this.del_button.TabIndex = 5;
			this.del_button.Text = "删除";
			this.del_button.Click += new System.EventHandler(this.del_button_Click);
			// 
			// add_button
			// 
			this.add_button.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.add_button.Location = new System.Drawing.Point(24, 120);
			this.add_button.Name = "add_button";
			this.add_button.Size = new System.Drawing.Size(72, 24);
			this.add_button.TabIndex = 4;
			this.add_button.Text = "新增";
			this.add_button.Click += new System.EventHandler(this.add_button_Click);
			// 
			// textName
			// 
			this.textName.Location = new System.Drawing.Point(72, 72);
			this.textName.Name = "textName";
			this.textName.Size = new System.Drawing.Size(96, 21);
			this.textName.TabIndex = 3;
			this.textName.Text = "";
			// 
			// textNum
			// 
			this.textNum.Location = new System.Drawing.Point(72, 24);
			this.textNum.Name = "textNum";
			this.textNum.Size = new System.Drawing.Size(96, 21);
			this.textNum.TabIndex = 2;
			this.textNum.Text = "";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 72);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 32);
			this.label2.TabIndex = 1;
			this.label2.Text = "设备名:";
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 24);
			this.label1.TabIndex = 0;

⌨️ 快捷键说明

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