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

📄 frmroominfo.cs

📁 采用C#和SQL Server 2000开发 功能比较全面的酒店管理系统
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;using System.Data.SqlClient;namespace 酒店管理系统{	public class frmRoomInfo : 酒店管理系统.frmBase	{
		internal System.Windows.Forms.GroupBox GroupBox1;
		internal System.Windows.Forms.CheckBox ckbPin;
		internal System.Windows.Forms.ComboBox cbbFloorCode;
		internal System.Windows.Forms.Label Label11;
		internal System.Windows.Forms.ComboBox cbbTypeCode;
		internal System.Windows.Forms.Label Label10;
		internal System.Windows.Forms.TextBox txbRemark;
		internal System.Windows.Forms.Label Label9;
		internal System.Windows.Forms.TextBox txbState;
		internal System.Windows.Forms.Label Label8;
		internal System.Windows.Forms.TextBox txbDescribe;
		internal System.Windows.Forms.Label Label7;
		internal System.Windows.Forms.TextBox txbBed;
		internal System.Windows.Forms.Label Label6;
		internal System.Windows.Forms.TextBox txbNumber;
		internal System.Windows.Forms.Label Label5;
		internal System.Windows.Forms.TextBox txbRoomCode;
		internal System.Windows.Forms.Label Label4;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private 酒店管理系统.DataSet1 dataSet11;
		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.ComponentModel.IContainer components = null;		public frmRoomInfo()		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		/// <summary>		/// 清理所有正在使用的资源。		/// </summary>		protected override void Dispose( bool disposing )		{			if( disposing )			{				if (components != null) 				{					components.Dispose();				}			}			base.Dispose( disposing );		}		#region 设计器生成的代码		/// <summary>		/// 设计器支持所需的方法 - 不要使用代码编辑器修改		/// 此方法的内容。		/// </summary>		private void InitializeComponent()		{			this.GroupBox1 = new System.Windows.Forms.GroupBox();
			this.ckbPin = new System.Windows.Forms.CheckBox();
			this.dataSet11 = new 酒店管理系统.DataSet1();
			this.cbbFloorCode = new System.Windows.Forms.ComboBox();
			this.Label11 = new System.Windows.Forms.Label();
			this.cbbTypeCode = new System.Windows.Forms.ComboBox();
			this.Label10 = new System.Windows.Forms.Label();
			this.txbRemark = new System.Windows.Forms.TextBox();
			this.Label9 = new System.Windows.Forms.Label();
			this.txbState = new System.Windows.Forms.TextBox();
			this.Label8 = new System.Windows.Forms.Label();
			this.txbDescribe = new System.Windows.Forms.TextBox();
			this.Label7 = new System.Windows.Forms.Label();
			this.txbBed = new System.Windows.Forms.TextBox();
			this.Label6 = new System.Windows.Forms.Label();
			this.txbNumber = new System.Windows.Forms.TextBox();
			this.Label5 = new System.Windows.Forms.Label();
			this.txbRoomCode = new System.Windows.Forms.TextBox();
			this.Label4 = new System.Windows.Forms.Label();
			this.sqlDataAdapter1 = 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();
			((System.ComponentModel.ISupportInitialize)(this.dgdList)).BeginInit();
			this.GroupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
			this.SuspendLayout();
			// 
			// dgdList
			// 
			this.dgdList.Location = new System.Drawing.Point(0, 89);
			this.dgdList.Name = "dgdList";
			this.dgdList.Size = new System.Drawing.Size(508, 87);
			// 
			// GroupBox1
			// 
			this.GroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.GroupBox1.Controls.Add(this.ckbPin);
			this.GroupBox1.Controls.Add(this.cbbFloorCode);
			this.GroupBox1.Controls.Add(this.Label11);
			this.GroupBox1.Controls.Add(this.cbbTypeCode);
			this.GroupBox1.Controls.Add(this.Label10);
			this.GroupBox1.Controls.Add(this.txbRemark);
			this.GroupBox1.Controls.Add(this.Label9);
			this.GroupBox1.Controls.Add(this.txbState);
			this.GroupBox1.Controls.Add(this.Label8);
			this.GroupBox1.Controls.Add(this.txbDescribe);
			this.GroupBox1.Controls.Add(this.Label7);
			this.GroupBox1.Controls.Add(this.txbBed);
			this.GroupBox1.Controls.Add(this.Label6);
			this.GroupBox1.Controls.Add(this.txbNumber);
			this.GroupBox1.Controls.Add(this.Label5);
			this.GroupBox1.Controls.Add(this.txbRoomCode);
			this.GroupBox1.Controls.Add(this.Label4);
			this.GroupBox1.Location = new System.Drawing.Point(8, 176);
			this.GroupBox1.Name = "GroupBox1";
			this.GroupBox1.Size = new System.Drawing.Size(496, 144);
			this.GroupBox1.TabIndex = 7;
			this.GroupBox1.TabStop = false;
			// 
			// ckbPin
			// 
			this.ckbPin.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.是否可拼房"));
			this.ckbPin.Location = new System.Drawing.Point(247, 110);
			this.ckbPin.Name = "ckbPin";
			this.ckbPin.Size = new System.Drawing.Size(89, 22);
			this.ckbPin.TabIndex = 16;
			this.ckbPin.Text = "是否可拼房";
			// 
			// dataSet11
			// 
			this.dataSet11.DataSetName = "DataSet1";
			this.dataSet11.Locale = new System.Globalization.CultureInfo("zh-CN");
			// 
			// cbbFloorCode
			// 
			this.cbbFloorCode.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.楼层编号"));
			this.cbbFloorCode.Location = new System.Drawing.Point(173, 24);
			this.cbbFloorCode.Name = "cbbFloorCode";
			this.cbbFloorCode.Size = new System.Drawing.Size(54, 21);
			this.cbbFloorCode.TabIndex = 15;
			// 
			// Label11
			// 
			this.Label11.Location = new System.Drawing.Point(173, 9);
			this.Label11.Name = "Label11";
			this.Label11.Size = new System.Drawing.Size(47, 17);
			this.Label11.TabIndex = 14;
			this.Label11.Text = "楼层编号";
			// 
			// cbbTypeCode
			// 
			this.cbbTypeCode.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.类型编号"));
			this.cbbTypeCode.Location = new System.Drawing.Point(93, 24);
			this.cbbTypeCode.Name = "cbbTypeCode";
			this.cbbTypeCode.Size = new System.Drawing.Size(60, 21);
			this.cbbTypeCode.TabIndex = 13;
			// 
			// Label10
			// 
			this.Label10.Location = new System.Drawing.Point(93, 9);
			this.Label10.Name = "Label10";
			this.Label10.Size = new System.Drawing.Size(47, 17);
			this.Label10.TabIndex = 12;
			this.Label10.Text = "类型编号";
			// 
			// txbRemark
			// 
			this.txbRemark.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.备注"));
			this.txbRemark.Location = new System.Drawing.Point(13, 110);
			this.txbRemark.Name = "txbRemark";
			this.txbRemark.Size = new System.Drawing.Size(214, 20);
			this.txbRemark.TabIndex = 11;
			this.txbRemark.Text = "";
			// 
			// Label9
			// 
			this.Label9.Location = new System.Drawing.Point(12, 95);
			this.Label9.Name = "Label9";
			this.Label9.Size = new System.Drawing.Size(46, 16);
			this.Label9.TabIndex = 10;
			this.Label9.Text = "备注";
			// 
			// txbState
			// 
			this.txbState.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.状态"));
			this.txbState.Location = new System.Drawing.Point(247, 71);
			this.txbState.Name = "txbState";
			this.txbState.Size = new System.Drawing.Size(53, 20);
			this.txbState.TabIndex = 9;
			this.txbState.Text = "";
			// 
			// Label8
			// 
			this.Label8.Location = new System.Drawing.Point(247, 48);
			this.Label8.Name = "Label8";
			this.Label8.Size = new System.Drawing.Size(46, 17);
			this.Label8.TabIndex = 8;
			this.Label8.Text = "状态";
			// 
			// txbDescribe
			// 
			this.txbDescribe.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.客房描述"));
			this.txbDescribe.Location = new System.Drawing.Point(13, 71);
			this.txbDescribe.Name = "txbDescribe";
			this.txbDescribe.Size = new System.Drawing.Size(214, 20);
			this.txbDescribe.TabIndex = 7;
			this.txbDescribe.Text = "";
			// 
			// Label7
			// 
			this.Label7.Location = new System.Drawing.Point(12, 48);
			this.Label7.Name = "Label7";
			this.Label7.Size = new System.Drawing.Size(46, 17);
			this.Label7.TabIndex = 6;
			this.Label7.Text = "客房描述";
			// 
			// txbBed
			// 
			this.txbBed.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.床数"));
			this.txbBed.Location = new System.Drawing.Point(320, 24);
			this.txbBed.Name = "txbBed";
			this.txbBed.Size = new System.Drawing.Size(53, 20);
			this.txbBed.TabIndex = 5;
			this.txbBed.Text = "";
			// 
			// Label6
			// 
			this.Label6.Location = new System.Drawing.Point(320, 9);
			this.Label6.Name = "Label6";
			this.Label6.Size = new System.Drawing.Size(47, 17);
			this.Label6.TabIndex = 4;
			this.Label6.Text = "床数";
			// 
			// txbNumber
			// 
			this.txbNumber.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.额定人数"));
			this.txbNumber.Location = new System.Drawing.Point(247, 24);
			this.txbNumber.Name = "txbNumber";
			this.txbNumber.Size = new System.Drawing.Size(53, 20);
			this.txbNumber.TabIndex = 3;
			this.txbNumber.Text = "";
			// 
			// Label5
			// 
			this.Label5.Location = new System.Drawing.Point(247, 9);
			this.Label5.Name = "Label5";
			this.Label5.Size = new System.Drawing.Size(46, 17);
			this.Label5.TabIndex = 2;
			this.Label5.Text = "额定人数";
			// 
			// txbRoomCode
			// 
			this.txbRoomCode.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "客房信息.客房编号"));
			this.txbRoomCode.Location = new System.Drawing.Point(12, 24);
			this.txbRoomCode.Name = "txbRoomCode";
			this.txbRoomCode.Size = new System.Drawing.Size(61, 20);
			this.txbRoomCode.TabIndex = 1;
			this.txbRoomCode.Text = "";
			// 
			// Label4
			// 
			this.Label4.Location = new System.Drawing.Point(12, 9);
			this.Label4.Name = "Label4";
			this.Label4.Size = new System.Drawing.Size(46, 17);
			this.Label4.TabIndex = 0;
			this.Label4.Text = "客房编号";
			// 
			// sqlDataAdapter1
			// 
			this.sqlDataAdapter1.DeleteCommand = this.sqlDeleteCommand1;
			this.sqlDataAdapter1.InsertCommand = this.sqlInsertCommand1;
			this.sqlDataAdapter1.SelectCommand = this.sqlSelectCommand1;
			this.sqlDataAdapter1.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
																									  new System.Data.Common.DataTableMapping("Table", "客房信息", new System.Data.Common.DataColumnMapping[] {
																																																			  new System.Data.Common.DataColumnMapping("是否可拼房", "是否可拼房"),
																																																			  new System.Data.Common.DataColumnMapping("状态", "状态"),
																																																			  new System.Data.Common.DataColumnMapping("备注", "备注"),
																																																			  new System.Data.Common.DataColumnMapping("客房描述", "客房描述"),
																																																			  new System.Data.Common.DataColumnMapping("床数", "床数"),
																																																			  new System.Data.Common.DataColumnMapping("额定人数", "额定人数"),
																																																			  new System.Data.Common.DataColumnMapping("楼层编号", "楼层编号"),
																																																			  new System.Data.Common.DataColumnMapping("类型编号", "类型编号"),
																																																			  new System.Data.Common.DataColumnMapping("客房编号", "客房编号")})});

⌨️ 快捷键说明

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