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

📄 roomtypeform.cs

📁 酒店管理系统是个不错的 系统 自己做的毕业设计 里面功能齐全
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

//using System.Data.SqlClient;

using HotelsManage.BusinessLevel;
namespace HotelsManage.UILevel
{
	/// <summary>
	/// RoomTypeForm 的摘要说明。
	/// </summary>
	public class RoomTypeForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.CheckBox checkTelephone;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.CheckBox checkToilet;
		private System.Windows.Forms.CheckBox checkTV;
		private System.Windows.Forms.CheckBox checkAirCondition;
		private System.Windows.Forms.TextBox txtPrice;
		private System.Windows.Forms.TextBox txtTypename;
		private System.Windows.Forms.TextBox txtBedPosition;
		private System.Windows.Forms.TextBox txtArea;
		private System.Windows.Forms.Panel panel2;
		private System.Windows.Forms.ListView listView1;
		private System.Windows.Forms.ColumnHeader columnHeader1;
		private System.Windows.Forms.ColumnHeader columnHeader3;
		private System.Windows.Forms.ColumnHeader columnHeader2;
		private System.Windows.Forms.ColumnHeader columnHeader4;
		private System.Windows.Forms.ColumnHeader columnHeader7;
		private System.Windows.Forms.ColumnHeader columnHeader6;
		private System.Windows.Forms.ColumnHeader columnHeader5;
		private System.Windows.Forms.ColumnHeader columnHeader8;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		///
//	     int position;
	    bool blnew=false;
		private System.Windows.Forms.Button btnExit;
		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.Button btnSearch;
		private System.Windows.Forms.Button btnDelete;
		private System.Windows.Forms.Button btnNew;
		private System.Windows.Forms.Panel panel3;
		private System.Windows.Forms.TextBox txtRoomNum;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button btnStart;
       
      
        RoomType Rt;
		private System.ComponentModel.Container components = null;

		public RoomTypeForm()
		{
			//
			// 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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RoomTypeForm));
			System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("");
			this.panel1 = new System.Windows.Forms.Panel();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.checkTelephone = new System.Windows.Forms.CheckBox();
			this.label2 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.txtPrice = new System.Windows.Forms.TextBox();
			this.txtTypename = new System.Windows.Forms.TextBox();
			this.checkToilet = new System.Windows.Forms.CheckBox();
			this.checkTV = new System.Windows.Forms.CheckBox();
			this.txtBedPosition = new System.Windows.Forms.TextBox();
			this.txtArea = new System.Windows.Forms.TextBox();
			this.checkAirCondition = new System.Windows.Forms.CheckBox();
			this.panel2 = new System.Windows.Forms.Panel();
			this.panel3 = new System.Windows.Forms.Panel();
			this.txtRoomNum = new System.Windows.Forms.TextBox();
			this.label1 = new System.Windows.Forms.Label();
			this.btnStart = new System.Windows.Forms.Button();
			this.btnExit = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.btnSearch = new System.Windows.Forms.Button();
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnNew = new System.Windows.Forms.Button();
			this.listView1 = new System.Windows.Forms.ListView();
			this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
			this.panel1.SuspendLayout();
			this.panel2.SuspendLayout();
			this.panel3.SuspendLayout();
			this.SuspendLayout();
			// 
			// panel1
			// 
			this.panel1.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.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panel1.Controls.Add(this.label4);
			this.panel1.Controls.Add(this.label3);
			this.panel1.Controls.Add(this.checkTelephone);
			this.panel1.Controls.Add(this.label2);
			this.panel1.Controls.Add(this.label5);
			this.panel1.Controls.Add(this.txtPrice);
			this.panel1.Controls.Add(this.txtTypename);
			this.panel1.Controls.Add(this.checkToilet);
			this.panel1.Controls.Add(this.checkTV);
			this.panel1.Controls.Add(this.txtBedPosition);
			this.panel1.Controls.Add(this.txtArea);
			this.panel1.Controls.Add(this.checkAirCondition);
			this.panel1.ForeColor = System.Drawing.SystemColors.Desktop;
			this.panel1.Location = new System.Drawing.Point(24, 16);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(456, 96);
			this.panel1.TabIndex = 17;
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(8, 40);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(32, 23);
			this.label4.TabIndex = 6;
			this.label4.Text = "床位";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(120, 16);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(32, 23);
			this.label3.TabIndex = 5;
			this.label3.Text = "面积";
			// 
			// checkTelephone
			// 
			this.checkTelephone.Location = new System.Drawing.Point(280, 48);
			this.checkTelephone.Name = "checkTelephone";
			this.checkTelephone.Size = new System.Drawing.Size(64, 24);
			this.checkTelephone.TabIndex = 15;
			this.checkTelephone.Text = "电话";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 8);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(32, 23);
			this.label2.TabIndex = 4;
			this.label2.Text = "名称";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(120, 40);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(32, 23);
			this.label5.TabIndex = 14;
			this.label5.Text = "价钱";
			// 
			// txtPrice
			// 
			this.txtPrice.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtPrice.Location = new System.Drawing.Point(168, 40);
			this.txtPrice.Name = "txtPrice";
			this.txtPrice.Size = new System.Drawing.Size(72, 21);
			this.txtPrice.TabIndex = 13;
			this.txtPrice.Text = "";
			// 
			// txtTypename
			// 
			this.txtTypename.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtTypename.Enabled = false;
			this.txtTypename.Location = new System.Drawing.Point(40, 8);
			this.txtTypename.Name = "txtTypename";
			this.txtTypename.Size = new System.Drawing.Size(72, 21);
			this.txtTypename.TabIndex = 2;
			this.txtTypename.Text = "";
			// 
			// checkToilet
			// 
			this.checkToilet.Location = new System.Drawing.Point(360, 48);
			this.checkToilet.Name = "checkToilet";
			this.checkToilet.Size = new System.Drawing.Size(64, 24);
			this.checkToilet.TabIndex = 12;
			this.checkToilet.Text = "卫生间";
			// 
			// checkTV
			// 
			this.checkTV.Location = new System.Drawing.Point(280, 8);
			this.checkTV.Name = "checkTV";
			this.checkTV.Size = new System.Drawing.Size(64, 24);
			this.checkTV.TabIndex = 11;
			this.checkTV.Text = "电视";
			// 
			// txtBedPosition
			// 
			this.txtBedPosition.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtBedPosition.Location = new System.Drawing.Point(40, 40);
			this.txtBedPosition.Name = "txtBedPosition";
			this.txtBedPosition.Size = new System.Drawing.Size(72, 21);
			this.txtBedPosition.TabIndex = 10;
			this.txtBedPosition.Text = "";
			// 
			// txtArea
			// 
			this.txtArea.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtArea.Location = new System.Drawing.Point(168, 8);
			this.txtArea.Name = "txtArea";
			this.txtArea.Size = new System.Drawing.Size(72, 21);
			this.txtArea.TabIndex = 9;
			this.txtArea.Text = "";
			// 
			// checkAirCondition
			// 
			this.checkAirCondition.Location = new System.Drawing.Point(360, 8);
			this.checkAirCondition.Name = "checkAirCondition";
			this.checkAirCondition.Size = new System.Drawing.Size(64, 24);
			this.checkAirCondition.TabIndex = 1;
			this.checkAirCondition.Text = "空调";
			// 
			// panel2
			// 
			this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panel2.Controls.Add(this.panel3);
			this.panel2.Controls.Add(this.btnExit);
			this.panel2.Controls.Add(this.btnSave);
			this.panel2.Controls.Add(this.btnCancel);
			this.panel2.Controls.Add(this.btnSearch);
			this.panel2.Controls.Add(this.btnDelete);
			this.panel2.Controls.Add(this.btnNew);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
			this.panel2.Location = new System.Drawing.Point(496, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(96, 446);
			this.panel2.TabIndex = 18;
			// 
			// panel3
			// 
			this.panel3.Controls.Add(this.txtRoomNum);
			this.panel3.Controls.Add(this.label1);
			this.panel3.Controls.Add(this.btnStart);
			this.panel3.Location = new System.Drawing.Point(0, 112);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(96, 128);
			this.panel3.TabIndex = 7;
			this.panel3.Visible = false;
			// 
			// txtRoomNum
			// 
			this.txtRoomNum.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtRoomNum.Location = new System.Drawing.Point(4, 49);
			this.txtRoomNum.Name = "txtRoomNum";
			this.txtRoomNum.Size = new System.Drawing.Size(88, 21);
			this.txtRoomNum.TabIndex = 11;
			this.txtRoomNum.Text = "";
			// 
			// label1
			// 
			this.label1.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label1.Location = new System.Drawing.Point(20, 17);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 23);
			this.label1.TabIndex = 10;
			this.label1.Text = "输入房间号";
			// 
			// btnStart
			// 
			this.btnStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnStart.ForeColor = System.Drawing.SystemColors.Desktop;
			this.btnStart.Image = ((System.Drawing.Image)(resources.GetObject("btnStart.Image")));
			this.btnStart.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnStart.Location = new System.Drawing.Point(20, 89);
			this.btnStart.Name = "btnStart";
			this.btnStart.Size = new System.Drawing.Size(56, 23);
			this.btnStart.TabIndex = 9;
			this.btnStart.Text = "开始";
			this.btnStart.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
			// 
			// btnExit
			// 
			this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnExit.ForeColor = System.Drawing.SystemColors.Desktop;
			this.btnExit.Image = ((System.Drawing.Image)(resources.GetObject("btnExit.Image")));
			this.btnExit.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnExit.Location = new System.Drawing.Point(16, 392);
			this.btnExit.Name = "btnExit";
			this.btnExit.Size = new System.Drawing.Size(56, 23);
			this.btnExit.TabIndex = 6;
			this.btnExit.Text = "退出";
			this.btnExit.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
			// 
			// btnSave
			// 
			this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnSave.ForeColor = System.Drawing.SystemColors.Desktop;
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnSave.Location = new System.Drawing.Point(16, 288);
			this.btnSave.Name = "btnSave";
			this.btnSave.Size = new System.Drawing.Size(56, 23);
			this.btnSave.TabIndex = 5;
			this.btnSave.Text = "保存";
			this.btnSave.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnCancel
			// 
			this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.btnCancel.ForeColor = System.Drawing.SystemColors.Desktop;
			this.btnCancel.Image = ((System.Drawing.Image)(resources.GetObject("btnCancel.Image")));
			this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnCancel.Location = new System.Drawing.Point(16, 248);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(56, 23);
			this.btnCancel.TabIndex = 4;
			this.btnCancel.Text = "取消";

⌨️ 快捷键说明

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