📄 queryguestform.h
字号:
//文件名:QueryGuestForm.h
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace 宾馆酒店管理系统 {
/// <summary>
/// QueryGuestForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class QueryGuestForm : public System::Windows::Forms::Form
{
public:
QueryGuestForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~QueryGuestForm()
{
if (components)
{
delete components;
}
}
private: My::MyHotelDataSet^ MyHotelDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 客房入住单BindingSource;
private: My::MyHotelDataSetTableAdapters::客房入住单TableAdapter^ 客房入住单TableAdapter;
private: System::Windows::Forms::BindingNavigator^ 客房入住单BindingNavigator;
private: System::Windows::Forms::ToolStripLabel^ bindingNavigatorCountItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveFirstItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMovePreviousItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator;
private: System::Windows::Forms::ToolStripTextBox^ bindingNavigatorPositionItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator1;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveNextItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveLastItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::ToolStripButton^ 客房入住单BindingNavigatorSaveItem;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn7;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridView^ 客房入住单DataGridView;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn8;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn9;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn10;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn11;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn12;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn13;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn14;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn15;
private: System::Windows::Forms::TextBox^ 入住编号TextBox;
private: System::Windows::Forms::TextBox^ 房号TextBox;
private: System::Windows::Forms::TextBox^ 折扣价格TextBox;
private: System::Windows::Forms::TextBox^ 预收押金TextBox;
private: System::Windows::Forms::DateTimePicker^ 入住日期DateTimePicker;
private: System::Windows::Forms::DateTimePicker^ 离开日期DateTimePicker;
private: System::Windows::Forms::TextBox^ 客人姓名TextBox;
private: System::Windows::Forms::TextBox^ 证件名称TextBox;
private: System::Windows::Forms::TextBox^ 证件号码TextBox;
private: System::Windows::Forms::TextBox^ 证件地址TextBox;
private: System::Windows::Forms::TextBox^ 住宿人数TextBox;
private: System::Windows::Forms::TextBox^ 客人性别TextBox;
private: System::Windows::Forms::TextBox^ 联系电话TextBox;
private: System::Windows::Forms::TextBox^ 操作人员TextBox;
private: System::Windows::Forms::TextBox^ 说明TextBox;
private: System::Windows::Forms::ToolStripLabel^ 客人姓名ToolStripLabel;
private: System::Windows::Forms::ToolStripTextBox^ 客人姓名ToolStripTextBox;
private: System::Windows::Forms::ToolStripButton^ 查询入住旅客信息ToolStripButton;
private: System::ComponentModel::IContainer^ components;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(QueryGuestForm::typeid));
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle2 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::Label^ 入住编号Label;
System::Windows::Forms::Label^ 房号Label;
System::Windows::Forms::Label^ 折扣价格Label;
System::Windows::Forms::Label^ 预收押金Label;
System::Windows::Forms::Label^ 入住日期Label;
System::Windows::Forms::Label^ 离开日期Label;
System::Windows::Forms::Label^ 客人姓名Label;
System::Windows::Forms::Label^ 证件名称Label;
System::Windows::Forms::Label^ 证件号码Label;
System::Windows::Forms::Label^ 证件地址Label;
System::Windows::Forms::Label^ 住宿人数Label;
System::Windows::Forms::Label^ 客人性别Label;
System::Windows::Forms::Label^ 联系电话Label;
System::Windows::Forms::Label^ 操作人员Label;
System::Windows::Forms::Label^ 说明Label;
this->客房入住单BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
this->客房入住单BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->MyHotelDataSet = (gcnew My::MyHotelDataSet());
this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->客房入住单BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->客房入住单TableAdapter = (gcnew My::MyHotelDataSetTableAdapters::客房入住单TableAdapter());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn7 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->客房入住单DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn8 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn9 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn10 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn11 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn12 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn13 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn14 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn15 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->入住编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->房号TextBox = (gcnew System::Windows::Forms::TextBox());
this->折扣价格TextBox = (gcnew System::Windows::Forms::TextBox());
this->预收押金TextBox = (gcnew System::Windows::Forms::TextBox());
this->入住日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->离开日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->客人姓名TextBox = (gcnew System::Windows::Forms::TextBox());
this->证件名称TextBox = (gcnew System::Windows::Forms::TextBox());
this->证件号码TextBox = (gcnew System::Windows::Forms::TextBox());
this->证件地址TextBox = (gcnew System::Windows::Forms::TextBox());
this->住宿人数TextBox = (gcnew System::Windows::Forms::TextBox());
this->客人性别TextBox = (gcnew System::Windows::Forms::TextBox());
this->联系电话TextBox = (gcnew System::Windows::Forms::TextBox());
this->操作人员TextBox = (gcnew System::Windows::Forms::TextBox());
this->说明TextBox = (gcnew System::Windows::Forms::TextBox());
this->客人姓名ToolStripLabel = (gcnew System::Windows::Forms::ToolStripLabel());
this->客人姓名ToolStripTextBox = (gcnew System::Windows::Forms::ToolStripTextBox());
this->查询入住旅客信息ToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
入住编号Label = (gcnew System::Windows::Forms::Label());
房号Label = (gcnew System::Windows::Forms::Label());
折扣价格Label = (gcnew System::Windows::Forms::Label());
预收押金Label = (gcnew System::Windows::Forms::Label());
入住日期Label = (gcnew System::Windows::Forms::Label());
离开日期Label = (gcnew System::Windows::Forms::Label());
客人姓名Label = (gcnew System::Windows::Forms::Label());
证件名称Label = (gcnew System::Windows::Forms::Label());
证件号码Label = (gcnew System::Windows::Forms::Label());
证件地址Label = (gcnew System::Windows::Forms::Label());
住宿人数Label = (gcnew System::Windows::Forms::Label());
客人性别Label = (gcnew System::Windows::Forms::Label());
联系电话Label = (gcnew System::Windows::Forms::Label());
操作人员Label = (gcnew System::Windows::Forms::Label());
说明Label = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->客房入住单BindingNavigator))->BeginInit();
this->客房入住单BindingNavigator->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->客房入住单BindingSource))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->MyHotelDataSet))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->客房入住单DataGridView))->BeginInit();
this->SuspendLayout();
//
// 客房入住单BindingNavigator
//
this->客房入住单BindingNavigator->AddNewItem = nullptr;
this->客房入住单BindingNavigator->BindingSource = this->客房入住单BindingSource;
this->客房入住单BindingNavigator->CountItem = this->bindingNavigatorCountItem;
this->客房入住单BindingNavigator->DeleteItem = nullptr;
this->客房入住单BindingNavigator->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(13) {this->bindingNavigatorMoveFirstItem,
this->bindingNavigatorMovePreviousItem, this->bindingNavigatorSeparator, this->bindingNavigatorPositionItem, this->bindingNavigatorCountItem,
this->bindingNavigatorSeparator1, this->bindingNavigatorMoveNextItem, this->bindingNavigatorMoveLastItem, this->bindingNavigatorSeparator2,
this->客房入住单BindingNavigatorSaveItem, this->客人姓名ToolStripLabel, this->客人姓名ToolStripTextBox, this->查询入住旅客信息ToolStripButton});
this->客房入住单BindingNavigator->Location = System::Drawing::Point(0, 0);
this->客房入住单BindingNavigator->MoveFirstItem = this->bindingNavigatorMoveFirstItem;
this->客房入住单BindingNavigator->MoveLastItem = this->bindingNavigatorMoveLastItem;
this->客房入住单BindingNavigator->MoveNextItem = this->bindingNavigatorMoveNextItem;
this->客房入住单BindingNavigator->MovePreviousItem = this->bindingNavigatorMovePreviousItem;
this->客房入住单BindingNavigator->Name = L"客房入住单BindingNavigator";
this->客房入住单BindingNavigator->PositionItem = this->bindingNavigatorPositionItem;
this->客房入住单BindingNavigator->Size = System::Drawing::Size(542, 25);
this->客房入住单BindingNavigator->TabIndex = 0;
this->客房入住单BindingNavigator->Text = L"bindingNavigator1";
//
// 客房入住单BindingSource
//
this->客房入住单BindingSource->DataMember = L"客房入住单";
this->客房入住单BindingSource->DataSource = this->MyHotelDataSet;
//
// MyHotelDataSet
//
this->MyHotelDataSet->DataSetName = L"MyHotelDataSet";
this->MyHotelDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
//
// bindingNavigatorCountItem
//
this->bindingNavigatorCountItem->Name = L"bindingNavigatorCountItem";
this->bindingNavigatorCountItem->Size = System::Drawing::Size(35, 22);
this->bindingNavigatorCountItem->Text = L"/ {0}";
this->bindingNavigatorCountItem->ToolTipText = L"总项数";
//
// bindingNavigatorMoveFirstItem
//
this->bindingNavigatorMoveFirstItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveFirstItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveFirstItem.Image")));
this->bindingNavigatorMoveFirstItem->Name = L"bindingNavigatorMoveFirstItem";
this->bindingNavigatorMoveFirstItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveFirstItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveFirstItem->Text = L"移到第一条记录";
//
// bindingNavigatorMovePreviousItem
//
this->bindingNavigatorMovePreviousItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMovePreviousItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMovePreviousItem.Image")));
this->bindingNavigatorMovePreviousItem->Name = L"bindingNavigatorMovePreviousItem";
this->bindingNavigatorMovePreviousItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMovePreviousItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMovePreviousItem->Text = L"移到上一条记录";
//
// bindingNavigatorSeparator
//
this->bindingNavigatorSeparator->Name = L"bindingNavigatorSeparator";
this->bindingNavigatorSeparator->Size = System::Drawing::Size(6, 25);
//
// bindingNavigatorPositionItem
//
this->bindingNavigatorPositionItem->AccessibleName = L"位置";
this->bindingNavigatorPositionItem->AutoSize = false;
this->bindingNavigatorPositionItem->Name = L"bindingNavigatorPositionItem";
this->bindingNavigatorPositionItem->Size = System::Drawing::Size(50, 21);
this->bindingNavigatorPositionItem->Text = L"0";
this->bindingNavigatorPositionItem->ToolTipText = L"当前位置";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -