📄 bookform.h
字号:
操作人员Label->Text = L"操作人员:";
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(4, 20);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(89, 12);
this->label1->TabIndex = 0;
this->label1->Text = L"酒店房间类别:";
//
// printDocument1
//
this->printDocument1->PrintPage += gcnew System::Drawing::Printing::PrintPageEventHandler(this, &BookForm::printDocument1_PrintPage);
//
// 酒店房间类别ComboBox
//
this->酒店房间类别ComboBox->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->酒店房间类别ComboBox->FormattingEnabled = true;
this->酒店房间类别ComboBox->Location = System::Drawing::Point(93, 15);
this->酒店房间类别ComboBox->Name = L"酒店房间类别ComboBox";
this->酒店房间类别ComboBox->Size = System::Drawing::Size(185, 20);
this->酒店房间类别ComboBox->TabIndex = 1;
this->酒店房间类别ComboBox->SelectedIndexChanged += gcnew System::EventHandler(this, &BookForm::酒店房间类别ComboBox_SelectedIndexChanged);
//
// groupBox2
//
this->groupBox2->Controls->Add(this->酒店可用房间DataGridView);
this->groupBox2->Controls->Add(this->酒店房间类别ComboBox);
this->groupBox2->Controls->Add(this->label1);
this->groupBox2->Location = System::Drawing::Point(4, 3);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(284, 407);
this->groupBox2->TabIndex = 11;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"酒店客房信息";
//
// 酒店可用房间DataGridView
//
this->酒店可用房间DataGridView->BackgroundColor = System::Drawing::SystemColors::MenuHighlight;
this->酒店可用房间DataGridView->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
this->酒店可用房间DataGridView->Location = System::Drawing::Point(5, 40);
this->酒店可用房间DataGridView->Name = L"酒店可用房间DataGridView";
this->酒店可用房间DataGridView->ReadOnly = true;
this->酒店可用房间DataGridView->RowHeadersVisible = false;
dataGridViewCellStyle1->BackColor = System::Drawing::Color::Green;
dataGridViewCellStyle1->ForeColor = System::Drawing::Color::Yellow;
this->酒店可用房间DataGridView->RowsDefaultCellStyle = dataGridViewCellStyle1;
this->酒店可用房间DataGridView->RowTemplate->Height = 23;
this->酒店可用房间DataGridView->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
this->酒店可用房间DataGridView->Size = System::Drawing::Size(273, 361);
this->酒店可用房间DataGridView->TabIndex = 2;
this->酒店可用房间DataGridView->Click += gcnew System::EventHandler(this, &BookForm::酒店可用房间DataGridView_Click);
//
// 保存Button
//
this->保存Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"保存Button.Image")));
this->保存Button->Location = System::Drawing::Point(459, 380);
this->保存Button->Name = L"保存Button";
this->保存Button->Size = System::Drawing::Size(75, 25);
this->保存Button->TabIndex = 14;
this->保存Button->Text = L"保存";
this->保存Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
this->保存Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
this->保存Button->UseVisualStyleBackColor = true;
this->保存Button->Click += gcnew System::EventHandler(this, &BookForm::保存Button_Click);
//
// 客人性别ComboBox
//
this->客人性别ComboBox->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->客人性别ComboBox->FormattingEnabled = true;
this->客人性别ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(2) {L"男", L"女"});
this->客人性别ComboBox->Location = System::Drawing::Point(73, 227);
this->客人性别ComboBox->Name = L"客人性别ComboBox";
this->客人性别ComboBox->Size = System::Drawing::Size(159, 20);
this->客人性别ComboBox->TabIndex = 63;
//
// groupBox1
//
this->groupBox1->Controls->Add(this->客人性别ComboBox);
this->groupBox1->Controls->Add(this->预约编号TextBox);
this->groupBox1->Controls->Add(住宿人数Label);
this->groupBox1->Controls->Add(this->住宿人数ComboBox);
this->groupBox1->Controls->Add(入住编号Label);
this->groupBox1->Controls->Add(房号Label);
this->groupBox1->Controls->Add(this->房号TextBox);
this->groupBox1->Controls->Add(预收押金Label);
this->groupBox1->Controls->Add(this->预收押金TextBox);
this->groupBox1->Controls->Add(入住日期Label);
this->groupBox1->Controls->Add(this->入住日期DateTimePicker);
this->groupBox1->Controls->Add(离开日期Label);
this->groupBox1->Controls->Add(this->离开日期DateTimePicker);
this->groupBox1->Controls->Add(客人姓名Label);
this->groupBox1->Controls->Add(this->客人姓名TextBox);
this->groupBox1->Controls->Add(客人性别Label);
this->groupBox1->Controls->Add(联系电话Label);
this->groupBox1->Controls->Add(this->联系电话TextBox);
this->groupBox1->Controls->Add(操作人员Label);
this->groupBox1->Controls->Add(this->操作人员TextBox);
this->groupBox1->Location = System::Drawing::Point(294, 10);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(240, 361);
this->groupBox1->TabIndex = 15;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"旅客预订信息";
//
// 预约编号TextBox
//
this->预约编号TextBox->Location = System::Drawing::Point(74, 331);
this->预约编号TextBox->Name = L"预约编号TextBox";
this->预约编号TextBox->ReadOnly = true;
this->预约编号TextBox->Size = System::Drawing::Size(158, 21);
this->预约编号TextBox->TabIndex = 62;
//
// 住宿人数ComboBox
//
this->住宿人数ComboBox->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->住宿人数ComboBox->FormattingEnabled = true;
this->住宿人数ComboBox->Location = System::Drawing::Point(74, 193);
this->住宿人数ComboBox->Name = L"住宿人数ComboBox";
this->住宿人数ComboBox->Size = System::Drawing::Size(158, 20);
this->住宿人数ComboBox->TabIndex = 61;
//
// 房号TextBox
//
this->房号TextBox->Location = System::Drawing::Point(74, 18);
this->房号TextBox->Name = L"房号TextBox";
this->房号TextBox->ReadOnly = true;
this->房号TextBox->Size = System::Drawing::Size(158, 21);
this->房号TextBox->TabIndex = 37;
//
// 预收押金TextBox
//
this->预收押金TextBox->Location = System::Drawing::Point(74, 53);
this->预收押金TextBox->Name = L"预收押金TextBox";
this->预收押金TextBox->Size = System::Drawing::Size(158, 21);
this->预收押金TextBox->TabIndex = 41;
//
// 入住日期DateTimePicker
//
this->入住日期DateTimePicker->Location = System::Drawing::Point(74, 88);
this->入住日期DateTimePicker->Name = L"入住日期DateTimePicker";
this->入住日期DateTimePicker->Size = System::Drawing::Size(158, 21);
this->入住日期DateTimePicker->TabIndex = 43;
//
// 离开日期DateTimePicker
//
this->离开日期DateTimePicker->Location = System::Drawing::Point(74, 123);
this->离开日期DateTimePicker->Name = L"离开日期DateTimePicker";
this->离开日期DateTimePicker->Size = System::Drawing::Size(158, 21);
this->离开日期DateTimePicker->TabIndex = 45;
//
// 客人姓名TextBox
//
this->客人姓名TextBox->Location = System::Drawing::Point(74, 158);
this->客人姓名TextBox->Name = L"客人姓名TextBox";
this->客人姓名TextBox->Size = System::Drawing::Size(158, 21);
this->客人姓名TextBox->TabIndex = 47;
//
// 联系电话TextBox
//
this->联系电话TextBox->Location = System::Drawing::Point(74, 261);
this->联系电话TextBox->Name = L"联系电话TextBox";
this->联系电话TextBox->Size = System::Drawing::Size(158, 21);
this->联系电话TextBox->TabIndex = 55;
//
// 操作人员TextBox
//
this->操作人员TextBox->Location = System::Drawing::Point(74, 296);
this->操作人员TextBox->Name = L"操作人员TextBox";
this->操作人员TextBox->ReadOnly = true;
this->操作人员TextBox->Size = System::Drawing::Size(158, 21);
this->操作人员TextBox->TabIndex = 57;
//
// 新增Button
//
this->新增Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"新增Button.Image")));
this->新增Button->Location = System::Drawing::Point(295, 380);
this->新增Button->Name = L"新增Button";
this->新增Button->Size = System::Drawing::Size(75, 25);
this->新增Button->TabIndex = 12;
this->新增Button->Text = L"新增";
this->新增Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
this->新增Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
this->新增Button->UseVisualStyleBackColor = true;
this->新增Button->Click += gcnew System::EventHandler(this, &BookForm::新增Button_Click);
//
// printPreviewDialog1
//
this->printPreviewDialog1->AutoScrollMargin = System::Drawing::Size(0, 0);
this->printPreviewDialog1->AutoScrollMinSize = System::Drawing::Size(0, 0);
this->printPreviewDialog1->ClientSize = System::Drawing::Size(400, 300);
this->printPreviewDialog1->Enabled = true;
this->printPreviewDialog1->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"printPreviewDialog1.Icon")));
this->printPreviewDialog1->Name = L"printPreviewDialog1";
this->printPreviewDialog1->Visible = false;
//
// 打印Button
//
this->打印Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"打印Button.Image")));
this->打印Button->Location = System::Drawing::Point(377, 380);
this->打印Button->Name = L"打印Button";
this->打印Button->Size = System::Drawing::Size(75, 25);
this->打印Button->TabIndex = 13;
this->打印Button->Text = L"打印";
this->打印Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
this->打印Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
this->打印Button->UseVisualStyleBackColor = true;
this->打印Button->Click += gcnew System::EventHandler(this, &BookForm::打印Button_Click);
//
// BookForm
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(0)), static_cast<System::Int32>(static_cast<System::Byte>(192)),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -