📄 roomsearchfrom.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using HotelsManage.BusinessLevel;
namespace HotelsManage.UILevel
{
/// <summary>
/// RoomSearchFrom 的摘要说明。
/// </summary>
public class RoomSearchFrom : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
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.Panel panel2;
private System.Windows.Forms.Button btnNotFull;
private System.Windows.Forms.Button btnEmptyRoom;
private System.Windows.Forms.Button btnBookIn;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnExit;
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.ComboBox cmbFactPeopleNum;
private System.Windows.Forms.ComboBox cmbPeopleNum;
private System.Windows.Forms.ComboBox cmbRoomPosition;
private System.Windows.Forms.ComboBox cmbRoomType;
private System.Windows.Forms.TextBox txtRemark;
private System.Windows.Forms.TextBox txtRoomID;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public RoomSearchFrom()
{
//
// 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(RoomSearchFrom));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.cmbFactPeopleNum = new System.Windows.Forms.ComboBox();
this.cmbPeopleNum = new System.Windows.Forms.ComboBox();
this.cmbRoomPosition = new System.Windows.Forms.ComboBox();
this.cmbRoomType = 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.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.btnNotFull = new System.Windows.Forms.Button();
this.btnEmptyRoom = new System.Windows.Forms.Button();
this.btnBookIn = new System.Windows.Forms.Button();
this.btnSearch = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.btnExit = 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.groupBox1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.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.groupBox1.Controls.Add(this.cmbFactPeopleNum);
this.groupBox1.Controls.Add(this.cmbPeopleNum);
this.groupBox1.Controls.Add(this.cmbRoomPosition);
this.groupBox1.Controls.Add(this.cmbRoomType);
this.groupBox1.Controls.Add(this.txtRemark);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.txtRoomID);
this.groupBox1.ForeColor = System.Drawing.SystemColors.Desktop;
this.groupBox1.Location = new System.Drawing.Point(8, 8);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(448, 128);
this.groupBox1.TabIndex = 21;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "输入查询条件";
//
// cmbFactPeopleNum
//
this.cmbFactPeopleNum.Items.AddRange(new object[] {
"0",
"1",
"2",
"3",
"4"});
this.cmbFactPeopleNum.Location = new System.Drawing.Point(200, 56);
this.cmbFactPeopleNum.Name = "cmbFactPeopleNum";
this.cmbFactPeopleNum.Size = new System.Drawing.Size(88, 20);
this.cmbFactPeopleNum.TabIndex = 23;
//
// cmbPeopleNum
//
this.cmbPeopleNum.Items.AddRange(new object[] {
"1",
"2",
"3",
"4"});
this.cmbPeopleNum.Location = new System.Drawing.Point(72, 56);
this.cmbPeopleNum.Name = "cmbPeopleNum";
this.cmbPeopleNum.Size = new System.Drawing.Size(72, 20);
this.cmbPeopleNum.TabIndex = 22;
//
// cmbRoomPosition
//
this.cmbRoomPosition.Items.AddRange(new object[] {
"一层",
"二层",
"三层",
"四层",
"五层"});
this.cmbRoomPosition.Location = new System.Drawing.Point(352, 24);
this.cmbRoomPosition.Name = "cmbRoomPosition";
this.cmbRoomPosition.Size = new System.Drawing.Size(72, 20);
this.cmbRoomPosition.TabIndex = 21;
//
// cmbRoomType
//
this.cmbRoomType.Items.AddRange(new object[] {
"标准间",
"双人间",
"四人间",
"豪华间"});
this.cmbRoomType.Location = new System.Drawing.Point(200, 24);
this.cmbRoomType.Name = "cmbRoomType";
this.cmbRoomType.Size = new System.Drawing.Size(88, 20);
this.cmbRoomType.TabIndex = 20;
//
// txtRemark
//
this.txtRemark.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtRemark.Location = new System.Drawing.Point(72, 88);
this.txtRemark.Multiline = true;
this.txtRemark.Name = "txtRemark";
this.txtRemark.Size = new System.Drawing.Size(352, 20);
this.txtRemark.TabIndex = 18;
this.txtRemark.Text = "";
//
// label5
//
this.label5.BackColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(16, 88);
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, 56);
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(16, 56);
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;
//
// label6
//
this.label6.BackColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(296, 24);
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(144, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 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(16, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(48, 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.Location = new System.Drawing.Point(72, 24);
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.BackColor = System.Drawing.SystemColors.Window;
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Controls.Add(this.btnNotFull);
this.panel2.Controls.Add(this.btnEmptyRoom);
this.panel2.Controls.Add(this.btnBookIn);
this.panel2.Controls.Add(this.btnSearch);
this.panel2.Controls.Add(this.btnCancel);
this.panel2.Controls.Add(this.btnExit);
this.panel2.Dock = System.Windows.Forms.DockStyle.Right;
this.panel2.ForeColor = System.Drawing.SystemColors.Desktop;
this.panel2.Location = new System.Drawing.Point(480, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(88, 438);
this.panel2.TabIndex = 22;
//
// btnNotFull
//
this.btnNotFull.BackColor = System.Drawing.SystemColors.Window;
this.btnNotFull.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnNotFull.ForeColor = System.Drawing.SystemColors.Desktop;
this.btnNotFull.Image = ((System.Drawing.Image)(resources.GetObject("btnNotFull.Image")));
this.btnNotFull.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnNotFull.Location = new System.Drawing.Point(16, 128);
this.btnNotFull.Name = "btnNotFull";
this.btnNotFull.Size = new System.Drawing.Size(56, 24);
this.btnNotFull.TabIndex = 23;
this.btnNotFull.Text = "未满";
this.btnNotFull.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnNotFull.Click += new System.EventHandler(this.btnNotFull_Click);
//
// btnEmptyRoom
//
this.btnEmptyRoom.BackColor = System.Drawing.SystemColors.Window;
this.btnEmptyRoom.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnEmptyRoom.ForeColor = System.Drawing.SystemColors.Desktop;
this.btnEmptyRoom.Image = ((System.Drawing.Image)(resources.GetObject("btnEmptyRoom.Image")));
this.btnEmptyRoom.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnEmptyRoom.Location = new System.Drawing.Point(16, 88);
this.btnEmptyRoom.Name = "btnEmptyRoom";
this.btnEmptyRoom.Size = new System.Drawing.Size(56, 24);
this.btnEmptyRoom.TabIndex = 22;
this.btnEmptyRoom.Text = "空房";
this.btnEmptyRoom.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnEmptyRoom.Click += new System.EventHandler(this.btnEmptyRoom_Click);
//
// btnBookIn
//
this.btnBookIn.BackColor = System.Drawing.SystemColors.Window;
this.btnBookIn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -