?? hotelleave.cs
字號:
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 HotelLeave : 醫院管理系統.ParentForm {
private System.Windows.Forms.DataGrid dataGrid2;
private System.Data.SqlClient.SqlConnection sqlConnection1;
private 酒店管理系統.DataSet1 dataSet11;
private System.Data.SqlClient.SqlDataAdapter da2;
private System.Data.SqlClient.SqlCommand sqlSelectCommand2;
private System.Windows.Forms.TextBox txt4;
private System.Windows.Forms.ComboBox cmb1;
private System.Data.DataView dataView1;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Windows.Forms.Button btnCal;
private System.Windows.Forms.Button btnLeave;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5; private System.ComponentModel.IContainer components = null; public HotelLeave() { // 該調用是 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.dataGrid2 = new System.Windows.Forms.DataGrid();
this.dataView1 = new System.Data.DataView();
this.dataSet11 = new 酒店管理系統.DataSet1();
this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
this.da2 = new System.Data.SqlClient.SqlDataAdapter();
this.sqlSelectCommand2 = new System.Data.SqlClient.SqlCommand();
this.btnCal = new System.Windows.Forms.Button();
this.btnLeave = new System.Windows.Forms.Button();
this.txt4 = new System.Windows.Forms.TextBox();
this.cmb1 = new System.Windows.Forms.ComboBox();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Name = "groupBox1";
//
// txt2
//
this.txt2.Name = "txt2";
//
// label1
//
this.label1.Name = "label1";
this.label1.Text = "客房編號";
//
// btnSearch
//
this.btnSearch.Name = "btnSearch";
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// txt1
//
this.txt1.Name = "txt1";
//
// label2
//
this.label2.Name = "label2";
this.label2.Text = "入住單號";
//
// txt3
//
this.txt3.Name = "txt3";
this.txt3.Visible = false;
//
// label3
//
this.label3.Name = "label3";
this.label3.Visible = false;
//
// toolBar1
//
this.toolBar1.Name = "toolBar1";
this.toolBar1.Size = new System.Drawing.Size(728, 41);
//
// tBtnNew
//
this.tBtnNew.Visible = false;
//
// tBtnEdit
//
this.tBtnEdit.Visible = false;
//
// tBtnDelete
//
this.tBtnDelete.Visible = false;
//
// tBtnSubmit
//
this.tBtnSubmit.Visible = false;
//
// tBtnCancel
//
this.tBtnCancel.Visible = false;
//
// dataGrid1
//
this.dataGrid1.DataMember = "入住單";
this.dataGrid1.DataSource = this.dataSet11;
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(728, 160);
this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.label4);
this.groupBox2.Controls.Add(this.cmb1);
this.groupBox2.Controls.Add(this.txt4);
this.groupBox2.Controls.Add(this.btnCal);
this.groupBox2.Controls.Add(this.btnLeave);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Location = new System.Drawing.Point(0, 408);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(728, 88);
//
// da1
//
this.da1.DeleteCommand = null;
this.da1.InsertCommand = null;
this.da1.SelectCommand = this.sqlSelectCommand1;
this.da1.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("是否加床", "是否加床"),
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("vip", "vip"),
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("入住人數", "入住人數")})});
this.da1.UpdateCommand = null;
//
// dataGrid2
//
this.dataGrid2.CaptionVisible = false;
this.dataGrid2.DataMember = "";
this.dataGrid2.DataSource = this.dataView1;
this.dataGrid2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid2.Location = new System.Drawing.Point(0, 256);
this.dataGrid2.Name = "dataGrid2";
this.dataGrid2.ReadOnly = true;
this.dataGrid2.Size = new System.Drawing.Size(728, 152);
this.dataGrid2.TabIndex = 32;
//
// dataView1
//
this.dataView1.Table = this.dataSet11.帳單明細;
//
// dataSet11
//
this.dataSet11.DataSetName = "DataSet1";
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -