📄 registerform.h
字号:
//文件名:RegisterForm.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;
using namespace System::Data::SqlClient;
namespace 宾馆酒店管理系统 {
/// <summary>
/// RegisterForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class RegisterForm : public System::Windows::Forms::Form
{
public:
RegisterForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~RegisterForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::DataGridView^ 酒店可用房间DataGridView;
protected:
private: System::Windows::Forms::ComboBox^ 酒店房间类别ComboBox;
private: System::Windows::Forms::Button^ 保存Button;
private: System::Windows::Forms::ComboBox^ 客人性别ComboBox;
private: System::Windows::Forms::Button^ 打印Button;
private: System::Windows::Forms::TextBox^ 入住编号TextBox;
private: System::Windows::Forms::Button^ 新增Button;
private: System::Windows::Forms::PrintPreviewDialog^ printPreviewDialog1;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::ComboBox^ 住宿人数ComboBox;
private: System::Windows::Forms::ComboBox^ 证件名称ComboBox;
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::Label^ label1;
private: System::Drawing::Printing::PrintDocument^ printDocument1;
private: System::Windows::Forms::GroupBox^ groupBox2;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
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::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(RegisterForm::typeid));
this->酒店可用房间DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->酒店房间类别ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->保存Button = (gcnew System::Windows::Forms::Button());
this->客人性别ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->打印Button = (gcnew System::Windows::Forms::Button());
this->入住编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->新增Button = (gcnew System::Windows::Forms::Button());
this->printPreviewDialog1 = (gcnew System::Windows::Forms::PrintPreviewDialog());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->住宿人数ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->证件名称ComboBox = (gcnew System::Windows::Forms::ComboBox());
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->label1 = (gcnew System::Windows::Forms::Label());
this->printDocument1 = (gcnew System::Drawing::Printing::PrintDocument());
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
住宿人数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->酒店可用房间DataGridView))->BeginInit();
this->groupBox1->SuspendLayout();
this->groupBox2->SuspendLayout();
this->SuspendLayout();
//
// 住宿人数Label
//
住宿人数Label->AutoSize = true;
住宿人数Label->Location = System::Drawing::Point(9, 264);
住宿人数Label->Name = L"住宿人数Label";
住宿人数Label->Size = System::Drawing::Size(59, 12);
住宿人数Label->TabIndex = 59;
住宿人数Label->Text = L"住宿人数:";
//
// 证件名称Label
//
证件名称Label->AutoSize = true;
证件名称Label->Location = System::Drawing::Point(9, 183);
证件名称Label->Name = L"证件名称Label";
证件名称Label->Size = System::Drawing::Size(59, 12);
证件名称Label->TabIndex = 58;
证件名称Label->Text = L"证件名称:";
//
// 入住编号Label
//
入住编号Label->AutoSize = true;
入住编号Label->Location = System::Drawing::Point(9, 372);
入住编号Label->Name = L"入住编号Label";
入住编号Label->Size = System::Drawing::Size(59, 12);
入住编号Label->TabIndex = 35;
入住编号Label->Text = L"入住编号:";
//
// 房号Label
//
房号Label->AutoSize = true;
房号Label->Location = System::Drawing::Point(9, 21);
房号Label->Name = L"房号Label";
房号Label->Size = System::Drawing::Size(35, 12);
房号Label->TabIndex = 36;
房号Label->Text = L"房号:";
//
// 折扣价格Label
//
折扣价格Label->AutoSize = true;
折扣价格Label->Location = System::Drawing::Point(9, 48);
折扣价格Label->Name = L"折扣价格Label";
折扣价格Label->Size = System::Drawing::Size(59, 12);
折扣价格Label->TabIndex = 38;
折扣价格Label->Text = L"折扣价格:";
//
// 预收押金Label
//
预收押金Label->AutoSize = true;
预收押金Label->Location = System::Drawing::Point(9, 75);
预收押金Label->Name = L"预收押金Label";
预收押金Label->Size = System::Drawing::Size(59, 12);
预收押金Label->TabIndex = 40;
预收押金Label->Text = L"预收押金:";
//
// 入住日期Label
//
入住日期Label->AutoSize = true;
入住日期Label->Location = System::Drawing::Point(9, 103);
入住日期Label->Name = L"入住日期Label";
入住日期Label->Size = System::Drawing::Size(59, 12);
入住日期Label->TabIndex = 42;
入住日期Label->Text = L"入住日期:";
//
// 离开日期Label
//
离开日期Label->AutoSize = true;
离开日期Label->Location = System::Drawing::Point(9, 130);
离开日期Label->Name = L"离开日期Label";
离开日期Label->Size = System::Drawing::Size(59, 12);
离开日期Label->TabIndex = 44;
离开日期Label->Text = L"离开日期:";
//
// 客人姓名Label
//
客人姓名Label->AutoSize = true;
客人姓名Label->Location = System::Drawing::Point(9, 156);
客人姓名Label->Name = L"客人姓名Label";
客人姓名Label->Size = System::Drawing::Size(59, 12);
客人姓名Label->TabIndex = 46;
客人姓名Label->Text = L"客人姓名:";
//
// 证件号码Label
//
证件号码Label->AutoSize = true;
证件号码Label->Location = System::Drawing::Point(9, 210);
证件号码Label->Name = L"证件号码Label";
证件号码Label->Size = System::Drawing::Size(59, 12);
证件号码Label->TabIndex = 48;
证件号码Label->Text = L"证件号码:";
//
// 证件地址Label
//
证件地址Label->AutoSize = true;
证件地址Label->Location = System::Drawing::Point(9, 237);
证件地址Label->Name = L"证件地址Label";
证件地址Label->Size = System::Drawing::Size(59, 12);
证件地址Label->TabIndex = 50;
证件地址Label->Text = L"证件地址:";
//
// 客人性别Label
//
客人性别Label->AutoSize = true;
客人性别Label->Location = System::Drawing::Point(9, 291);
客人性别Label->Name = L"客人性别Label";
客人性别Label->Size = System::Drawing::Size(59, 12);
客人性别Label->TabIndex = 52;
客人性别Label->Text = L"客人性别:";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -