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

📄 roomform.cs

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

using HotelsManage.BusinessLevel;
namespace HotelsManage.UILevel
{
	/// <summary>
	/// RoomForm 的摘要说明。
	/// </summary>
	public class RoomForm : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Panel panel1;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.ComboBox cmbPeopleNum;
		private System.Windows.Forms.ComboBox cmbBedNum;
		private System.Windows.Forms.ComboBox cmbRoomPosition;
		private System.Windows.Forms.TextBox txtRemark;
		private System.Windows.Forms.ComboBox cmbRoomType;
		private System.Windows.Forms.TextBox txtRoomID;
		private System.Windows.Forms.Panel panel2;
		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.ColumnHeader columnHeader5;
		private System.Windows.Forms.ColumnHeader columnHeader6;
		private System.Windows.Forms.Panel panel3;
		private System.Windows.Forms.Label label7;
		private System.Windows.Forms.TextBox txtSearch;
		private System.Windows.Forms.Button btnStart;
		private System.Windows.Forms.Button btnClose;
		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;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		/// 
		bool result=false;
		private System.ComponentModel.Container components = null;

		public RoomForm()
		{
			//
			// 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(RoomForm));
			this.panel1 = new System.Windows.Forms.Panel();
			this.cmbPeopleNum = new System.Windows.Forms.ComboBox();
			this.cmbBedNum = new System.Windows.Forms.ComboBox();
			this.cmbRoomPosition = new System.Windows.Forms.ComboBox();
			this.txtRemark = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.cmbRoomType = new System.Windows.Forms.ComboBox();
			this.label6 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txtRoomID = new System.Windows.Forms.TextBox();
			this.panel2 = new System.Windows.Forms.Panel();
			this.panel3 = new System.Windows.Forms.Panel();
			this.txtSearch = new System.Windows.Forms.TextBox();
			this.label7 = new System.Windows.Forms.Label();
			this.btnStart = new System.Windows.Forms.Button();
			this.btnClose = 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.columnHeader2 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
			this.columnHeader6 = 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.BackColor = System.Drawing.SystemColors.Window;
			this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panel1.Controls.Add(this.cmbPeopleNum);
			this.panel1.Controls.Add(this.cmbBedNum);
			this.panel1.Controls.Add(this.cmbRoomPosition);
			this.panel1.Controls.Add(this.txtRemark);
			this.panel1.Controls.Add(this.label5);
			this.panel1.Controls.Add(this.label4);
			this.panel1.Controls.Add(this.label3);
			this.panel1.Controls.Add(this.cmbRoomType);
			this.panel1.Controls.Add(this.label6);
			this.panel1.Controls.Add(this.label2);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Controls.Add(this.txtRoomID);
			this.panel1.ForeColor = System.Drawing.SystemColors.Desktop;
			this.panel1.Location = new System.Drawing.Point(8, 8);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(488, 128);
			this.panel1.TabIndex = 3;
			// 
			// cmbPeopleNum
			// 
			this.cmbPeopleNum.AllowDrop = true;
			this.cmbPeopleNum.BackColor = System.Drawing.Color.White;
			this.cmbPeopleNum.ForeColor = System.Drawing.SystemColors.Desktop;
			this.cmbPeopleNum.IntegralHeight = false;
			this.cmbPeopleNum.Items.AddRange(new object[] {
															  "1",
															  "2",
															  "3",
															  "4"});
			this.cmbPeopleNum.Location = new System.Drawing.Point(64, 52);
			this.cmbPeopleNum.Name = "cmbPeopleNum";
			this.cmbPeopleNum.Size = new System.Drawing.Size(76, 20);
			this.cmbPeopleNum.Sorted = true;
			this.cmbPeopleNum.TabIndex = 17;
			// 
			// cmbBedNum
			// 
			this.cmbBedNum.AllowDrop = true;
			this.cmbBedNum.BackColor = System.Drawing.Color.White;
			this.cmbBedNum.ForeColor = System.Drawing.SystemColors.Desktop;
			this.cmbBedNum.IntegralHeight = false;
			this.cmbBedNum.Items.AddRange(new object[] {
														   "1",
														   "2",
														   "3",
														   "4"});
			this.cmbBedNum.Location = new System.Drawing.Point(208, 52);
			this.cmbBedNum.Name = "cmbBedNum";
			this.cmbBedNum.Size = new System.Drawing.Size(88, 20);
			this.cmbBedNum.Sorted = true;
			this.cmbBedNum.TabIndex = 16;
			// 
			// cmbRoomPosition
			// 
			this.cmbRoomPosition.AllowDrop = true;
			this.cmbRoomPosition.BackColor = System.Drawing.Color.White;
			this.cmbRoomPosition.ForeColor = System.Drawing.SystemColors.Desktop;
			this.cmbRoomPosition.IntegralHeight = false;
			this.cmbRoomPosition.Items.AddRange(new object[] {
																 "二层",
																 "三层",
																 "四层",
																 "一层"});
			this.cmbRoomPosition.Location = new System.Drawing.Point(356, 12);
			this.cmbRoomPosition.Name = "cmbRoomPosition";
			this.cmbRoomPosition.Size = new System.Drawing.Size(84, 20);
			this.cmbRoomPosition.Sorted = true;
			this.cmbRoomPosition.TabIndex = 15;
			// 
			// txtRemark
			// 
			this.txtRemark.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtRemark.Location = new System.Drawing.Point(64, 84);
			this.txtRemark.Multiline = true;
			this.txtRemark.Name = "txtRemark";
			this.txtRemark.Size = new System.Drawing.Size(364, 20);
			this.txtRemark.TabIndex = 14;
			this.txtRemark.Text = "";
			// 
			// label5
			// 
			this.label5.BackColor = System.Drawing.Color.White;
			this.label5.Location = new System.Drawing.Point(12, 84);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(56, 25);
			this.label5.TabIndex = 11;
			this.label5.Text = "备注";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label4
			// 
			this.label4.BackColor = System.Drawing.Color.White;
			this.label4.Location = new System.Drawing.Point(144, 48);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(56, 25);
			this.label4.TabIndex = 10;
			this.label4.Text = "额定床数";
			this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label3
			// 
			this.label3.BackColor = System.Drawing.Color.White;
			this.label3.Location = new System.Drawing.Point(4, 48);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(60, 25);
			this.label3.TabIndex = 9;
			this.label3.Text = "额定人数";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// cmbRoomType
			// 
			this.cmbRoomType.AllowDrop = true;
			this.cmbRoomType.BackColor = System.Drawing.Color.White;
			this.cmbRoomType.ForeColor = System.Drawing.SystemColors.Desktop;
			this.cmbRoomType.IntegralHeight = false;
			this.cmbRoomType.Items.AddRange(new object[] {
															 "标准间",
															 "双人间",
															 "四人间"});
			this.cmbRoomType.Location = new System.Drawing.Point(208, 12);
			this.cmbRoomType.Name = "cmbRoomType";
			this.cmbRoomType.Size = new System.Drawing.Size(88, 20);
			this.cmbRoomType.Sorted = true;
			this.cmbRoomType.TabIndex = 7;
			// 
			// label6
			// 
			this.label6.BackColor = System.Drawing.Color.White;
			this.label6.Location = new System.Drawing.Point(300, 12);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(60, 25);
			this.label6.TabIndex = 6;
			this.label6.Text = "房间楼层";
			this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label2
			// 
			this.label2.BackColor = System.Drawing.Color.White;
			this.label2.Location = new System.Drawing.Point(140, 8);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(64, 25);
			this.label2.TabIndex = 2;
			this.label2.Text = "房间类型";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.White;
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(60, 25);
			this.label1.TabIndex = 1;
			this.label1.Text = "房间号";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// txtRoomID
			// 
			this.txtRoomID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtRoomID.Enabled = false;
			this.txtRoomID.Location = new System.Drawing.Point(68, 12);
			this.txtRoomID.MaxLength = 4;
			this.txtRoomID.Name = "txtRoomID";
			this.txtRoomID.Size = new System.Drawing.Size(68, 21);
			this.txtRoomID.TabIndex = 0;
			this.txtRoomID.Text = "";
			// 
			// panel2
			// 
			this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panel2.Controls.Add(this.panel3);
			this.panel2.Controls.Add(this.btnClose);
			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(520, 0);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(96, 446);
			this.panel2.TabIndex = 4;
			// 
			// panel3
			// 
			this.panel3.Controls.Add(this.txtSearch);
			this.panel3.Controls.Add(this.label7);
			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, 120);
			this.panel3.TabIndex = 9;
			this.panel3.Visible = false;
			// 
			// txtSearch
			// 
			this.txtSearch.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.txtSearch.Location = new System.Drawing.Point(4, 45);
			this.txtSearch.MaxLength = 4;
			this.txtSearch.Multiline = true;
			this.txtSearch.Name = "txtSearch";
			this.txtSearch.Size = new System.Drawing.Size(88, 21);
			this.txtSearch.TabIndex = 11;
			this.txtSearch.Text = "";
			// 
			// label7
			// 
			this.label7.ForeColor = System.Drawing.SystemColors.Desktop;
			this.label7.Location = new System.Drawing.Point(20, 13);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(72, 23);

⌨️ 快捷键说明

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