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

📄 buyfrm.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>
	/// buyFrm 的摘要说明。
	/// </summary>
	public class buyFrm : System.Windows.Forms.Form
	{
		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.TextBox textNum;
		private System.Windows.Forms.TextBox textNowNum;
		private System.Windows.Forms.TextBox textMaxNum;
		private System.Windows.Forms.TextBox textAccount;
		private System.Windows.Forms.TextBox textSupply;
		private System.Windows.Forms.TextBox textCost;
		private System.Windows.Forms.TextBox textMan;
		private System.Windows.Forms.TextBox textShow;
		private System.Windows.Forms.TextBox textDate;
		private System.Windows.Forms.Button creat_button;
		private System.Windows.Forms.Button esc_button;
		private System.Data.SqlClient.SqlDataAdapter buyAdapter;
		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 SqlConnection MyConn = new SqlConnection("server=.;Trusted_Connection=yes;user=sa;pwd=1;database=storage");
		private DataSet buySet=new DataSet();
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public buyFrm()
		{
			//
			// 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.label1 = new System.Windows.Forms.Label();
			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.textNum = new System.Windows.Forms.TextBox();
			this.textNowNum = new System.Windows.Forms.TextBox();
			this.textMaxNum = new System.Windows.Forms.TextBox();
			this.textAccount = new System.Windows.Forms.TextBox();
			this.textSupply = new System.Windows.Forms.TextBox();
			this.textCost = new System.Windows.Forms.TextBox();
			this.textMan = new System.Windows.Forms.TextBox();
			this.textShow = new System.Windows.Forms.TextBox();
			this.textDate = new System.Windows.Forms.TextBox();
			this.creat_button = new System.Windows.Forms.Button();
			this.esc_button = new System.Windows.Forms.Button();
			this.buyAdapter = 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.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(128, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(208, 24);
			this.label1.TabIndex = 0;
			this.label1.Text = "设 备 采 购 计 划 报 表:";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(16, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(80, 24);
			this.label2.TabIndex = 1;
			this.label2.Text = "设备号:";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(248, 56);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 24);
			this.label3.TabIndex = 2;
			this.label3.Text = "现有库存:";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(16, 96);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(80, 32);
			this.label4.TabIndex = 3;
			this.label4.Text = "最大库存:";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(248, 96);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(64, 24);
			this.label5.TabIndex = 4;
			this.label5.Text = "购买数量:";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(16, 128);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(80, 32);
			this.label6.TabIndex = 5;
			this.label6.Text = "供应商:";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(256, 128);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(64, 16);
			this.label7.TabIndex = 6;
			this.label7.Text = "价格:";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(16, 160);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(80, 32);
			this.label8.TabIndex = 7;
			this.label8.Text = "制表人:";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(256, 168);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(64, 16);
			this.label9.TabIndex = 8;
			this.label9.Text = "备注:";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(16, 208);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(64, 16);
			this.label10.TabIndex = 9;
			this.label10.Text = "报表时间:";
			// 
			// textNum
			// 
			this.textNum.Location = new System.Drawing.Point(104, 48);
			this.textNum.Name = "textNum";
			this.textNum.Size = new System.Drawing.Size(88, 21);
			this.textNum.TabIndex = 10;
			this.textNum.Text = "";
			// 
			// textNowNum
			// 
			this.textNowNum.Location = new System.Drawing.Point(336, 48);
			this.textNowNum.Name = "textNowNum";
			this.textNowNum.Size = new System.Drawing.Size(88, 21);
			this.textNowNum.TabIndex = 11;
			this.textNowNum.Text = "";
			// 
			// textMaxNum
			// 
			this.textMaxNum.Location = new System.Drawing.Point(104, 88);
			this.textMaxNum.Name = "textMaxNum";
			this.textMaxNum.Size = new System.Drawing.Size(88, 21);
			this.textMaxNum.TabIndex = 12;
			this.textMaxNum.Text = "";
			// 
			// textAccount
			// 
			this.textAccount.Location = new System.Drawing.Point(336, 88);
			this.textAccount.Name = "textAccount";
			this.textAccount.Size = new System.Drawing.Size(88, 21);
			this.textAccount.TabIndex = 13;

⌨️ 快捷键说明

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