clientbookin.cs
来自「详细的宾馆管理实现 用Visual Studio 2005实现」· CS 代码 · 共 394 行 · 第 1/2 页
CS
394 行
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace HotelManage
{
/// <summary>
/// ClientBookIn 的摘要说明。
/// </summary>
public class ClientBookIn : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textRemark;
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.TextBox textRoomID;
private System.Windows.Forms.TextBox textClientID;
private System.Windows.Forms.TextBox textClientName;
private System.Windows.Forms.ComboBox comboSex;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Label label7;
private HotelManage.ClientBookInManage clientbookin;
private System.Windows.Forms.ComboBox comboNativePlace;
private System.Windows.Forms.GroupBox groupBox1;
private TextBox textBox1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public ClientBookIn(string roomID)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
this.textRoomID.Text=roomID;
this.clientbookin=new ClientBookInManage();
//
// 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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ClientBookIn));
this.textRoomID = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.textRemark = new System.Windows.Forms.TextBox();
this.textClientID = new System.Windows.Forms.TextBox();
this.textClientName = new System.Windows.Forms.TextBox();
this.comboSex = new System.Windows.Forms.ComboBox();
this.comboNativePlace = new System.Windows.Forms.ComboBox();
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.btnSave = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.btnReset = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// textRoomID
//
this.textRoomID.AcceptsTab = true;
this.textRoomID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textRoomID.Location = new System.Drawing.Point(96, 52);
this.textRoomID.Name = "textRoomID";
this.textRoomID.ReadOnly = true;
this.textRoomID.Size = new System.Drawing.Size(64, 21);
this.textRoomID.TabIndex = 0;
this.textRoomID.TextChanged += new System.EventHandler(this.textRoomID_TextChanged);
//
// label7
//
this.label7.BackColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(98, 84);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(60, 25);
this.label7.TabIndex = 27;
this.label7.Text = "入住日期";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// dateTimePicker1
//
this.dateTimePicker1.AllowDrop = true;
this.dateTimePicker1.Location = new System.Drawing.Point(72, 120);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(112, 21);
this.dateTimePicker1.TabIndex = 26;
//
// textRemark
//
this.textRemark.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textRemark.Location = new System.Drawing.Point(104, 160);
this.textRemark.Multiline = true;
this.textRemark.Name = "textRemark";
this.textRemark.Size = new System.Drawing.Size(384, 20);
this.textRemark.TabIndex = 25;
//
// textClientID
//
this.textClientID.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textClientID.Cursor = System.Windows.Forms.Cursors.No;
this.textClientID.Location = new System.Drawing.Point(80, 16);
this.textClientID.Name = "textClientID";
this.textClientID.Size = new System.Drawing.Size(112, 21);
this.textClientID.TabIndex = 24;
//
// textClientName
//
this.textClientName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.textClientName.Location = new System.Drawing.Point(80, 43);
this.textClientName.Name = "textClientName";
this.textClientName.Size = new System.Drawing.Size(112, 21);
this.textClientName.TabIndex = 23;
//
// comboSex
//
this.comboSex.Items.AddRange(new object[] {
"男",
"女"});
this.comboSex.Location = new System.Drawing.Point(80, 70);
this.comboSex.Name = "comboSex";
this.comboSex.Size = new System.Drawing.Size(112, 20);
this.comboSex.TabIndex = 22;
//
// comboNativePlace
//
this.comboNativePlace.Items.AddRange(new object[] {
"北京市",
"上海市",
"天津市",
"河北省",
"广东省",
"四川省",
"河南省"});
this.comboNativePlace.Location = new System.Drawing.Point(80, 96);
this.comboNativePlace.Name = "comboNativePlace";
this.comboNativePlace.Size = new System.Drawing.Size(112, 20);
this.comboNativePlace.TabIndex = 21;
//
// label5
//
this.label5.BackColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(32, 160);
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(8, 103);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(56, 25);
this.label4.TabIndex = 10;
this.label4.Text = "顾客籍贯";
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?