亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? roomstatus.cs

?? 賓館管理系統=
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.Reflection;


namespace 酒店管理系統
{
	/// <summary>
	/// RoomStatus 的摘要說明。
	/// </summary>
	public class RoomStatus : System.Windows.Forms.Form
	{
		private DataTable roomTable;//一個空的4行16列的表
		private DataTable statusTable=new DataTable();//保存客房信息
		private int formType=0;//確定窗體是用于顯示房態還是選擇房間,以及由哪個窗體調用選擇房間
		
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.DataGrid dataGrid1;
		private System.Windows.Forms.ImageList imageList1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox groupBox3;
		private System.Windows.Forms.Button btnRefresh;
		private System.Windows.Forms.RadioButton rb1;
		private System.Windows.Forms.RadioButton rb2;
		private System.Windows.Forms.RadioButton rb3;
		private System.Windows.Forms.RadioButton rb4;
		private System.Windows.Forms.RadioButton rb5;
		private System.Windows.Forms.RadioButton rb6;
		private System.Windows.Forms.Button btnModify;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox txt1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.ComboBox cmb1;
		private System.ComponentModel.IContainer components;

		public RoomStatus(int useType)
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
			formType=useType;//由構造函數參數確定是否為雙擊選擇房間而用
			//formType=0代表正常房態圖顯示,1表示由客房預定窗體調用,2表示由客房入住窗體調用

		}

		/// <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(RoomStatus));
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.dataGrid1 = new System.Windows.Forms.DataGrid();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.cmb1 = new System.Windows.Forms.ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.txt1 = new System.Windows.Forms.TextBox();
			this.groupBox3 = new System.Windows.Forms.GroupBox();
			this.rb1 = new System.Windows.Forms.RadioButton();
			this.rb2 = new System.Windows.Forms.RadioButton();
			this.rb3 = new System.Windows.Forms.RadioButton();
			this.rb4 = new System.Windows.Forms.RadioButton();
			this.rb5 = new System.Windows.Forms.RadioButton();
			this.rb6 = new System.Windows.Forms.RadioButton();
			this.btnRefresh = new System.Windows.Forms.Button();
			this.btnModify = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.groupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
			this.groupBox2.SuspendLayout();
			this.groupBox3.SuspendLayout();
			this.SuspendLayout();
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.dataGrid1);
			this.groupBox1.Location = new System.Drawing.Point(144, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(576, 400);
			this.groupBox1.TabIndex = 0;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "房態顯示";
			// 
			// dataGrid1
			// 
			this.dataGrid1.CaptionVisible = false;
			this.dataGrid1.ColumnHeadersVisible = false;
			this.dataGrid1.DataMember = "";
			this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dataGrid1.Location = new System.Drawing.Point(8, 24);
			this.dataGrid1.Name = "dataGrid1";
			this.dataGrid1.PreferredColumnWidth = 32;
			this.dataGrid1.PreferredRowHeight = 32;
			this.dataGrid1.ReadOnly = true;
			this.dataGrid1.RowHeadersVisible = false;
			this.dataGrid1.RowHeaderWidth = 32;
			this.dataGrid1.Size = new System.Drawing.Size(560, 368);
			this.dataGrid1.TabIndex = 0;
			this.dataGrid1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dataGrid1_MouseUp);
			// 
			// imageList1
			// 
			this.imageList1.ImageSize = new System.Drawing.Size(32, 32);
			this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
			this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.cmb1);
			this.groupBox2.Controls.Add(this.label1);
			this.groupBox2.Controls.Add(this.txt1);
			this.groupBox2.Controls.Add(this.groupBox3);
			this.groupBox2.Controls.Add(this.btnRefresh);
			this.groupBox2.Controls.Add(this.btnModify);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Location = new System.Drawing.Point(0, 8);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(144, 400);
			this.groupBox2.TabIndex = 1;
			this.groupBox2.TabStop = false;
			this.groupBox2.Text = "控制區";
			// 
			// cmb1
			// 
			this.cmb1.Location = new System.Drawing.Point(40, 72);
			this.cmb1.Name = "cmb1";
			this.cmb1.Size = new System.Drawing.Size(96, 20);
			this.cmb1.TabIndex = 7;
			this.cmb1.SelectionChangeCommitted += new System.EventHandler(this.cmb1_SelectionChangeCommitted);
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(8, 50);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(31, 14);
			this.label1.TabIndex = 6;
			this.label1.Text = "房號";
			// 
			// txt1
			// 
			this.txt1.Location = new System.Drawing.Point(40, 48);
			this.txt1.Name = "txt1";
			this.txt1.ReadOnly = true;
			this.txt1.Size = new System.Drawing.Size(96, 21);
			this.txt1.TabIndex = 5;
			this.txt1.Text = "";
			this.txt1.DoubleClick += new System.EventHandler(this.txt1_DoubleClick);
			// 
			// groupBox3
			// 
			this.groupBox3.Controls.Add(this.rb1);
			this.groupBox3.Controls.Add(this.rb2);
			this.groupBox3.Controls.Add(this.rb3);
			this.groupBox3.Controls.Add(this.rb4);
			this.groupBox3.Controls.Add(this.rb5);
			this.groupBox3.Controls.Add(this.rb6);
			this.groupBox3.Location = new System.Drawing.Point(8, 96);
			this.groupBox3.Name = "groupBox3";
			this.groupBox3.Size = new System.Drawing.Size(128, 272);
			this.groupBox3.TabIndex = 4;
			this.groupBox3.TabStop = false;
			this.groupBox3.Text = "房態選擇";
			// 
			// rb1
			// 
			this.rb1.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rb1.ImageIndex = 2;
			this.rb1.ImageList = this.imageList1;
			this.rb1.Location = new System.Drawing.Point(24, 24);
			this.rb1.Name = "rb1";
			this.rb1.Size = new System.Drawing.Size(84, 32);
			this.rb1.TabIndex = 3;
			this.rb1.Text = "空房";
			// 
			// rb2
			// 
			this.rb2.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rb2.ImageIndex = 4;
			this.rb2.ImageList = this.imageList1;
			this.rb2.Location = new System.Drawing.Point(24, 64);
			this.rb2.Name = "rb2";
			this.rb2.Size = new System.Drawing.Size(84, 32);
			this.rb2.TabIndex = 3;
			this.rb2.Text = "住房";
			// 
			// rb3
			// 
			this.rb3.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rb3.ImageIndex = 5;
			this.rb3.ImageList = this.imageList1;
			this.rb3.Location = new System.Drawing.Point(24, 104);
			this.rb3.Name = "rb3";
			this.rb3.Size = new System.Drawing.Size(84, 32);
			this.rb3.TabIndex = 3;
			this.rb3.Text = "自用";
			// 
			// rb4
			// 
			this.rb4.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rb4.ImageIndex = 3;
			this.rb4.ImageList = this.imageList1;
			this.rb4.Location = new System.Drawing.Point(24, 144);
			this.rb4.Name = "rb4";
			this.rb4.Size = new System.Drawing.Size(84, 32);
			this.rb4.TabIndex = 3;
			this.rb4.Text = "維修";
			// 
			// rb5
			// 
			this.rb5.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rb5.ImageIndex = 0;
			this.rb5.ImageList = this.imageList1;
			this.rb5.Location = new System.Drawing.Point(24, 184);
			this.rb5.Name = "rb5";
			this.rb5.Size = new System.Drawing.Size(84, 32);
			this.rb5.TabIndex = 3;
			this.rb5.Text = "將到";
			// 
			// rb6
			// 
			this.rb6.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
			this.rb6.ImageIndex = 1;
			this.rb6.ImageList = this.imageList1;
			this.rb6.Location = new System.Drawing.Point(24, 224);
			this.rb6.Name = "rb6";
			this.rb6.Size = new System.Drawing.Size(84, 32);
			this.rb6.TabIndex = 3;
			this.rb6.Text = "將離";
			// 
			// btnRefresh
			// 
			this.btnRefresh.Location = new System.Drawing.Point(24, 16);
			this.btnRefresh.Name = "btnRefresh";
			this.btnRefresh.Size = new System.Drawing.Size(96, 23);
			this.btnRefresh.TabIndex = 3;
			this.btnRefresh.Text = "刷新房態信息";
			this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
			// 
			// btnModify
			// 
			this.btnModify.Location = new System.Drawing.Point(24, 372);
			this.btnModify.Name = "btnModify";
			this.btnModify.Size = new System.Drawing.Size(88, 23);
			this.btnModify.TabIndex = 3;
			this.btnModify.Text = "更改房間狀態";
			this.btnModify.Click += new System.EventHandler(this.btnModify_Click);
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 75);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(31, 14);
			this.label2.TabIndex = 6;
			this.label2.Text = "類型";
			// 
			// RoomStatus
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(720, 413);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.Name = "RoomStatus";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "房態管理";
			this.Load += new System.EventHandler(this.RoomStatus_Load);
			this.Activated += new System.EventHandler(this.RoomStatus_Activated);
			this.groupBox1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
			this.groupBox2.ResumeLayout(false);
			this.groupBox3.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		//---------窗體初始化時的處理-------
		private void RoomStatus_Load(object sender, System.EventArgs e)
		{
			if(this.formType!=0)
			{
				groupBox1.Text+=" 雙擊左邊的【房號】文本框選擇房間";
			}
			dataGrid1.Paint+=new PaintEventHandler(dataGrid1_Paint);
			this.DataGridStateControl();
			this.AutoSizeGrid();
			this.RefreshStatus("select * from 客房信息");//讀入所有類型房間的數據
			//讀入所有客房的類型
			cmb1.Items.Clear();
			cmb1.Items.Add("全部");
			string strConn="workstation id=localhost;Integrated Security=SSPI;Database=hotelbook;";
			SqlConnection cn=new SqlConnection(strConn);
			cn.Open();
			SqlCommand cmd=cn.CreateCommand();
			cmd.CommandText="select distinct 類型名稱 from 客房類型";
			SqlDataReader dr=cmd.ExecuteReader();
			while(dr.Read())
			{
				cmb1.Items.Add(dr.GetValue(0).ToString().Trim());
			}	
			//焦點集中到【房號】文本框上
			txt1.Focus();
		}
		
		
		//----------設置dataGrid中的行寬度--------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人自拍在线| 久久久久国产精品麻豆ai换脸| 99在线精品视频| 国产精品综合av一区二区国产馆| 蜜臀av性久久久久蜜臀av麻豆| 天天操天天干天天综合网| 亚洲成av人影院在线观看网| 午夜精品一区二区三区电影天堂 | 美女一区二区在线观看| 奇米影视在线99精品| 麻豆视频观看网址久久| 狠狠色丁香婷综合久久| 黄网站免费久久| 成人精品国产一区二区4080| gogo大胆日本视频一区| 色天天综合色天天久久| 欧美日韩中文精品| 欧美一区二区在线免费播放| 日韩免费一区二区三区在线播放| 欧美不卡激情三级在线观看| 久久精品视频免费| 日韩毛片视频在线看| 亚洲午夜精品一区二区三区他趣| 日韩高清在线不卡| 国产原创一区二区| av中文字幕不卡| 欧美日韩专区在线| 精品剧情在线观看| 日本一二三不卡| 夜夜爽夜夜爽精品视频| 日韩av电影免费观看高清完整版 | 九九久久精品视频| 成人午夜在线免费| 欧美性色黄大片| 日韩免费在线观看| 自拍偷拍欧美激情| 日韩高清在线一区| 成人av免费在线播放| 欧美在线你懂的| xnxx国产精品| 亚洲黄色片在线观看| 麻豆精品新av中文字幕| eeuss鲁片一区二区三区在线看| 欧美色综合久久| 国产亚洲短视频| 婷婷久久综合九色综合绿巨人| 国产传媒一区在线| 欧美视频三区在线播放| 国产亚洲视频系列| 亚洲一区二区三区自拍| 国产成人在线视频免费播放| 欧美日韩精品是欧美日韩精品| 久久久精品日韩欧美| 亚洲一区二区精品久久av| 国产伦精品一区二区三区免费| 在线观看视频一区| 国产亚洲精久久久久久| 日本成人在线一区| 91美女片黄在线观看| 亚洲精品一区二区三区99| 一区二区三区高清不卡| 国产精品18久久久久久久久 | 日本一区二区三区高清不卡| 日韩高清在线一区| 色婷婷综合久久久久中文 | 激情综合色播五月| 欧美日韩免费一区二区三区视频| 欧美国产精品久久| 精品综合免费视频观看| 欧美日韩高清影院| 亚洲精品第一国产综合野| 成人精品在线视频观看| 欧美大片拔萝卜| 五月婷婷欧美视频| 一本色道久久综合亚洲aⅴ蜜桃| 久久综合狠狠综合| 日本中文一区二区三区| 欧美亚洲免费在线一区| 自拍偷拍国产亚洲| 国产宾馆实践打屁股91| 26uuu国产在线精品一区二区| 日韩电影免费在线| 欧美伦理影视网| 亚洲一区二区精品视频| 91久久精品日日躁夜夜躁欧美| 国产成人在线免费| 久久这里都是精品| 久久国产剧场电影| 欧美一二三四在线| 日精品一区二区| 在线播放欧美女士性生活| 亚洲一区二区三区不卡国产欧美| 97久久久精品综合88久久| 国产精品久久久久久久第一福利 | 99久精品国产| 亚洲天堂久久久久久久| 成人福利视频在线看| 中文在线资源观看网站视频免费不卡| 久久电影网站中文字幕| 精品国免费一区二区三区| 麻豆成人综合网| 精品国产乱码久久久久久闺蜜| 毛片av一区二区三区| 精品国产乱码久久| 老司机午夜精品99久久| 精品国产伦理网| 国产精品一区二区你懂的| 国产日产精品一区| 成人精品视频一区| 专区另类欧美日韩| 欧美特级限制片免费在线观看| 亚洲成人免费av| 欧美一区二区二区| 精品一区二区精品| 国产偷v国产偷v亚洲高清| 成人免费黄色大片| 亚洲精选在线视频| 欧美理论片在线| 久久99精品一区二区三区三区| 久久久国产精品不卡| caoporm超碰国产精品| 一区二区三区在线免费视频| 欧美精品久久天天躁| 精品一区二区三区的国产在线播放 | 欧美最新大片在线看| 无吗不卡中文字幕| 亚洲精品一区二区三区精华液| 成人激情免费电影网址| 亚洲最大色网站| 日韩免费福利电影在线观看| 国产福利一区在线观看| 亚洲六月丁香色婷婷综合久久| 欧美日韩国产色站一区二区三区| 毛片av中文字幕一区二区| 亚洲国产电影在线观看| 欧美日韩在线直播| 激情文学综合丁香| 亚洲精选在线视频| 欧美大片顶级少妇| 色综合一个色综合亚洲| 蜜臀久久久99精品久久久久久| 欧美激情综合五月色丁香| 欧美亚洲一区二区三区四区| 精品在线一区二区| 亚洲免费观看高清完整版在线| 亚洲高清三级视频| 精品精品国产高清a毛片牛牛| 成人免费毛片app| 日韩二区三区四区| 国产精品久久久久久久蜜臀| 欧美高清你懂得| 99久久精品免费看| 日本不卡不码高清免费观看| 综合久久给合久久狠狠狠97色| 91精品国产综合久久精品麻豆| 成人高清视频在线| 日韩电影在线免费观看| 亚洲品质自拍视频网站| 久久一二三国产| 欧美系列日韩一区| 粉嫩av一区二区三区| 日韩成人av影视| 一区二区三区成人| 国产午夜亚洲精品午夜鲁丝片 | 亚洲欧洲在线观看av| 日韩欧美一区在线观看| 91久久一区二区| 国产成人精品免费视频网站| 日韩电影在线看| 亚洲一区在线观看免费 | 亚洲三级电影网站| 久久这里只有精品6| 欧美日韩精品欧美日韩精品一| 成人免费看黄yyy456| 国产一区二区三区蝌蚪| 蜜臀va亚洲va欧美va天堂| 亚洲一区国产视频| 亚洲免费在线视频| 国产精品污www在线观看| 精品欧美乱码久久久久久1区2区 | 亚洲男女一区二区三区| 国产农村妇女毛片精品久久麻豆| 精品免费国产二区三区| 欧美一区二区在线视频| 欧美乱熟臀69xxxxxx| 色婷婷av一区二区三区软件 | 国产无人区一区二区三区| 91精品欧美一区二区三区综合在 | 国产精品少妇自拍| 国产亚洲欧洲一区高清在线观看| 精品裸体舞一区二区三区| 91精品国产综合久久香蕉的特点 | 欧美色大人视频| 91麻豆免费视频| 色综合久久久久网| 91一区在线观看| av一区二区三区黑人| youjizz久久| 99精品视频在线观看免费| av中文字幕不卡|