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

📄 addconsume.cs

📁 一个基本的酒店管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

using ShowInfoLibrary;
using ConnectDBLibrary;

using System.Data;

namespace UI
{
	/// <summary>
	/// AddConsume 的摘要说明。
	/// </summary>
	public class AddConsume : System.Windows.Forms.Form
	{
		
		private string rid;
		private int num;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txtcoding;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txtNum;
		private System.Windows.Forms.TabControl tabControl1;
		private System.Windows.Forms.TabPage tabPage1;
		private System.Windows.Forms.TabPage tabPage2;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ColumnHeader columnHeader2;
		private System.Windows.Forms.ColumnHeader columnHeader3;
		private System.Windows.Forms.ColumnHeader columnHeader4;
		private System.Windows.Forms.Label lblrid;
		private System.Windows.Forms.ListView listView3;
		private System.Windows.Forms.ColumnHeader columnHeader5;
		private System.Windows.Forms.ColumnHeader columnHeader6;
		private System.Windows.Forms.ColumnHeader columnHeader7;
		private System.Windows.Forms.ColumnHeader columnHeader8;
		private System.Windows.Forms.ColumnHeader columnHeader9;
		private System.Windows.Forms.ColumnHeader columnHeader10;
		private System.Windows.Forms.ColumnHeader columnHeader11;
		private System.Windows.Forms.ColumnHeader columnHeader12;
		private System.Windows.Forms.ColumnHeader columnHeader13;
		private System.Windows.Forms.TreeView tvwConList;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.ContextMenu cmmConsumeOper;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.ColumnHeader columnHeader14;
		private System.Windows.Forms.MenuItem mnudel;
		private System.Windows.Forms.MenuItem mnetran;
		private System.ComponentModel.IContainer components;

		public AddConsume(string rid)
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();
			this.rid=rid;
			
			
			
			

			//
			// 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(AddConsume));
			this.label1 = new System.Windows.Forms.Label();
			this.txtcoding = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.txtNum = new System.Windows.Forms.TextBox();
			this.tabControl1 = new System.Windows.Forms.TabControl();
			this.tabPage1 = new System.Windows.Forms.TabPage();
			this.listView1 = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
			this.tabPage2 = new System.Windows.Forms.TabPage();
			this.tvwConList = new System.Windows.Forms.TreeView();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.button1 = new System.Windows.Forms.Button();
			this.lblrid = new System.Windows.Forms.Label();
			this.button2 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.button4 = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.listView3 = new System.Windows.Forms.ListView();
			this.columnHeader14 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader10 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader11 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader13 = new System.Windows.Forms.ColumnHeader();
			this.cmmConsumeOper = new System.Windows.Forms.ContextMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.mnudel = new System.Windows.Forms.MenuItem();
			this.mnetran = new System.Windows.Forms.MenuItem();
			this.tabControl1.SuspendLayout();
			this.tabPage1.SuspendLayout();
			this.tabPage2.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(24, 40);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(112, 24);
			this.label1.TabIndex = 0;
			this.label1.Text = "编码/简拼(Q):";
			this.label1.Click += new System.EventHandler(this.label1_Click);
			// 
			// txtcoding
			// 
			this.txtcoding.Location = new System.Drawing.Point(112, 40);
			this.txtcoding.Name = "txtcoding";
			this.txtcoding.Size = new System.Drawing.Size(80, 21);
			this.txtcoding.TabIndex = 1;
			this.txtcoding.Text = "";
			this.txtcoding.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(24, 72);
			this.label2.Name = "label2";
			this.label2.TabIndex = 2;
			this.label2.Text = "消费数量[F2]:";
			// 
			// txtNum
			// 
			this.txtNum.Location = new System.Drawing.Point(112, 72);
			this.txtNum.Name = "txtNum";
			this.txtNum.Size = new System.Drawing.Size(80, 21);
			this.txtNum.TabIndex = 3;
			this.txtNum.Text = "";
			// 
			// tabControl1
			// 
			this.tabControl1.Controls.Add(this.tabPage1);
			this.tabControl1.Controls.Add(this.tabPage2);
			this.tabControl1.Location = new System.Drawing.Point(8, 120);
			this.tabControl1.Name = "tabControl1";
			this.tabControl1.SelectedIndex = 0;
			this.tabControl1.Size = new System.Drawing.Size(304, 368);
			this.tabControl1.TabIndex = 4;
			// 
			// tabPage1
			// 
			this.tabPage1.Controls.Add(this.listView1);
			this.tabPage1.Location = new System.Drawing.Point(4, 21);
			this.tabPage1.Name = "tabPage1";
			this.tabPage1.Size = new System.Drawing.Size(296, 343);
			this.tabPage1.TabIndex = 0;
			this.tabPage1.Text = "消费项目(清单)";
			// 
			// listView1
			// 
			this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.columnHeader1,
																						this.columnHeader2,
																						this.columnHeader3,
																						this.columnHeader4});
			this.listView1.FullRowSelect = true;
			this.listView1.GridLines = true;
			this.listView1.Location = new System.Drawing.Point(0, 0);
			this.listView1.Name = "listView1";
			this.listView1.Size = new System.Drawing.Size(352, 328);
			this.listView1.TabIndex = 0;
			this.listView1.View = System.Windows.Forms.View.Details;
			this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
			this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged);
			// 
			// columnHeader1
			// 
			this.columnHeader1.Text = "项目编号";
			this.columnHeader1.Width = 70;
			// 
			// columnHeader2
			// 
			this.columnHeader2.Text = "项目名称";
			this.columnHeader2.Width = 90;
			// 
			// columnHeader3
			// 
			this.columnHeader3.Text = "单价";
			this.columnHeader3.Width = 62;
			// 
			// columnHeader4
			// 
			this.columnHeader4.Text = "当前库存";
			this.columnHeader4.Width = 72;
			// 
			// tabPage2
			// 
			this.tabPage2.Controls.Add(this.tvwConList);
			this.tabPage2.Location = new System.Drawing.Point(4, 21);
			this.tabPage2.Name = "tabPage2";
			this.tabPage2.Size = new System.Drawing.Size(296, 343);
			this.tabPage2.TabIndex = 1;
			this.tabPage2.Text = "消费项目(列表)";
			// 
			// tvwConList
			// 
			this.tvwConList.FullRowSelect = true;
			this.tvwConList.ImageList = this.imageList1;
			this.tvwConList.Location = new System.Drawing.Point(0, 0);
			this.tvwConList.Name = "tvwConList";
			this.tvwConList.SelectedImageIndex = 1;
			this.tvwConList.Size = new System.Drawing.Size(296, 336);
			this.tvwConList.TabIndex = 0;
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// button1
			// 
			this.button1.Location = new System.Drawing.Point(200, 72);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(72, 23);
			this.button1.TabIndex = 5;
			this.button1.Text = "添加[F3]";
			this.button1.Click += new System.EventHandler(this.button1_Click);
			// 
			// lblrid
			// 
			this.lblrid.ForeColor = System.Drawing.Color.Red;
			this.lblrid.Location = new System.Drawing.Point(200, 48);
			this.lblrid.Name = "lblrid";
			this.lblrid.Size = new System.Drawing.Size(112, 16);
			this.lblrid.TabIndex = 6;
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(384, 392);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(104, 23);
			this.button2.TabIndex = 7;
			this.button2.Text = "消费转单";
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(512, 392);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(112, 23);
			this.button3.TabIndex = 8;
			this.button3.Text = "消费退单";
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(384, 424);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(104, 23);
			this.button4.TabIndex = 9;
			this.button4.Text = "打印此消费";
			// 
			// button5
			// 
			this.button5.Location = new System.Drawing.Point(512, 424);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(112, 23);
			this.button5.TabIndex = 10;
			this.button5.Text = "关闭确定[F5]";
			this.button5.Click += new System.EventHandler(this.button5_Click);
			// 
			// listView3
			// 
			this.listView3.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
																						this.columnHeader14,
																						this.columnHeader5,
																						this.columnHeader6,
																						this.columnHeader7,
																						this.columnHeader8,
																						this.columnHeader9,
																						this.columnHeader10,
																						this.columnHeader11,
																						this.columnHeader12,
																						this.columnHeader13});
			this.listView3.ContextMenu = this.cmmConsumeOper;
			this.listView3.FullRowSelect = true;
			this.listView3.GridLines = true;
			this.listView3.Location = new System.Drawing.Point(352, 48);
			this.listView3.Name = "listView3";
			this.listView3.Size = new System.Drawing.Size(336, 336);
			this.listView3.TabIndex = 12;
			this.listView3.View = System.Windows.Forms.View.Details;
			// 
			// columnHeader14
			// 
			this.columnHeader14.Text = "ID";
			this.columnHeader14.Width = 0;
			// 
			// columnHeader5
			// 
			this.columnHeader5.Text = "房间号";
			this.columnHeader5.Width = 75;
			// 

⌨️ 快捷键说明

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