📄 checkoutform.h
字号:
//文件名:CheckOutForm.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>
/// CheckOutForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class CheckOutForm : public System::Windows::Forms::Form
{
public:
CheckOutForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~CheckOutForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ 用餐费TextBox;
protected:
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::PrintPreviewDialog^ printPreviewDialog1;
private: System::Drawing::Printing::PrintDocument^ printDocument1;
private: System::Windows::Forms::TextBox^ 电话费TextBox;
private: System::Windows::Forms::DataGridView^ 客房入住单DataGridView;
private: System::Windows::Forms::TextBox^ 折扣价格TextBox;
private: System::Windows::Forms::Label^ label12;
private: System::Windows::Forms::TextBox^ 入住日期TextBox;
private: System::Windows::Forms::Label^ label13;
private: System::Windows::Forms::Button^ 打印Button;
private: System::Windows::Forms::ComboBox^ 酒店房号ComboBox;
private: System::Windows::Forms::Button^ 保存Button;
private: System::Windows::Forms::ComboBox^ 旅客姓名ComboBox;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Label^ label11;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::TextBox^ 说明TextBox;
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::TextBox^ 结帐金额TextBox;
private: System::Windows::Forms::Label^ label8;
private: System::Windows::Forms::TextBox^ 费用总额TextBox;
private: System::Windows::Forms::Label^ label9;
private: System::Windows::Forms::TextBox^ 预收押金TextBox;
private: System::Windows::Forms::Label^ label10;
private: System::Windows::Forms::DateTimePicker^ 结帐日期DateTimePicker;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::TextBox^ 住宿费TextBox;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::TextBox^ 店内消费TextBox;
private: System::Windows::Forms::Label^ label3;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(CheckOutForm::typeid));
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
this->用餐费TextBox = (gcnew System::Windows::Forms::TextBox());
this->label6 = (gcnew System::Windows::Forms::Label());
this->printPreviewDialog1 = (gcnew System::Windows::Forms::PrintPreviewDialog());
this->printDocument1 = (gcnew System::Drawing::Printing::PrintDocument());
this->电话费TextBox = (gcnew System::Windows::Forms::TextBox());
this->客房入住单DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->折扣价格TextBox = (gcnew System::Windows::Forms::TextBox());
this->label12 = (gcnew System::Windows::Forms::Label());
this->入住日期TextBox = (gcnew System::Windows::Forms::TextBox());
this->label13 = (gcnew System::Windows::Forms::Label());
this->打印Button = (gcnew System::Windows::Forms::Button());
this->酒店房号ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->保存Button = (gcnew System::Windows::Forms::Button());
this->旅客姓名ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->label11 = (gcnew System::Windows::Forms::Label());
this->label5 = (gcnew System::Windows::Forms::Label());
this->说明TextBox = (gcnew System::Windows::Forms::TextBox());
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->label7 = (gcnew System::Windows::Forms::Label());
this->结帐金额TextBox = (gcnew System::Windows::Forms::TextBox());
this->label8 = (gcnew System::Windows::Forms::Label());
this->费用总额TextBox = (gcnew System::Windows::Forms::TextBox());
this->label9 = (gcnew System::Windows::Forms::Label());
this->预收押金TextBox = (gcnew System::Windows::Forms::TextBox());
this->label10 = (gcnew System::Windows::Forms::Label());
this->结帐日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->label1 = (gcnew System::Windows::Forms::Label());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->住宿费TextBox = (gcnew System::Windows::Forms::TextBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->店内消费TextBox = (gcnew System::Windows::Forms::TextBox());
this->label3 = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->客房入住单DataGridView))->BeginInit();
this->groupBox2->SuspendLayout();
this->groupBox1->SuspendLayout();
this->SuspendLayout();
//
// 用餐费TextBox
//
this->用餐费TextBox->Location = System::Drawing::Point(69, 95);
this->用餐费TextBox->Name = L"用餐费TextBox";
this->用餐费TextBox->ReadOnly = true;
this->用餐费TextBox->Size = System::Drawing::Size(169, 21);
this->用餐费TextBox->TabIndex = 7;
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(3, 100);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(53, 12);
this->label6->TabIndex = 6;
this->label6->Text = L"用餐费:";
//
// 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;
//
// printDocument1
//
this->printDocument1->PrintPage += gcnew System::Drawing::Printing::PrintPageEventHandler(this, &CheckOutForm::printDocument1_PrintPage);
//
// 电话费TextBox
//
this->电话费TextBox->Location = System::Drawing::Point(69, 68);
this->电话费TextBox->Name = L"电话费TextBox";
this->电话费TextBox->ReadOnly = true;
this->电话费TextBox->Size = System::Drawing::Size(169, 21);
this->电话费TextBox->TabIndex = 5;
//
// 客房入住单DataGridView
//
this->客房入住单DataGridView->BackgroundColor = System::Drawing::SystemColors::Highlight;
this->客房入住单DataGridView->Location = System::Drawing::Point(6, 228);
this->客房入住单DataGridView->Name = L"客房入住单DataGridView";
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(530, 180);
this->客房入住单DataGridView->TabIndex = 52;
//
// 折扣价格TextBox
//
this->折扣价格TextBox->Location = System::Drawing::Point(347, 65);
this->折扣价格TextBox->Name = L"折扣价格TextBox";
this->折扣价格TextBox->ReadOnly = true;
this->折扣价格TextBox->Size = System::Drawing::Size(189, 21);
this->折扣价格TextBox->TabIndex = 51;
//
// label12
//
this->label12->AutoSize = true;
this->label12->Location = System::Drawing::Point(275, 70);
this->label12->Name = L"label12";
this->label12->Size = System::Drawing::Size(65, 12);
this->label12->TabIndex = 50;
this->label12->Text = L"折扣价格:";
//
// 入住日期TextBox
//
this->入住日期TextBox->Location = System::Drawing::Point(346, 38);
this->入住日期TextBox->Name = L"入住日期TextBox";
this->入住日期TextBox->ReadOnly = true;
this->入住日期TextBox->Size = System::Drawing::Size(190, 21);
this->入住日期TextBox->TabIndex = 49;
//
// label13
//
this->label13->AutoSize = true;
this->label13->Location = System::Drawing::Point(275, 43);
this->label13->Name = L"label13";
this->label13->Size = System::Drawing::Size(65, 12);
this->label13->TabIndex = 48;
this->label13->Text = L"入住日期:";
//
// 打印Button
//
this->打印Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"打印Button.Image")));
this->打印Button->Location = System::Drawing::Point(329, 7);
this->打印Button->Name = L"打印Button";
this->打印Button->Size = System::Drawing::Size(100, 25);
this->打印Button->TabIndex = 44;
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, &CheckOutForm::打印Button_Click);
//
// 酒店房号ComboBox
//
this->酒店房号ComboBox->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
this->酒店房号ComboBox->FormattingEnabled = true;
this->酒店房号ComboBox->Location = System::Drawing::Point(77, 35);
this->酒店房号ComboBox->Name = L"酒店房号ComboBox";
this->酒店房号ComboBox->Size = System::Drawing::Size(176, 20);
this->酒店房号ComboBox->TabIndex = 43;
this->酒店房号ComboBox->SelectedIndexChanged += gcnew System::EventHandler(this, &CheckOutForm::酒店房号ComboBox_SelectedIndexChanged);
//
// 保存Button
//
this->保存Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"保存Button.Image")));
this->保存Button->Location = System::Drawing::Point(436, 7);
this->保存Button->Name = L"保存Button";
this->保存Button->Size = System::Drawing::Size(100, 25);
this->保存Button->TabIndex = 45;
this->保存Button->Text = L"保存";
this->保存Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
this->保存Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
this->保存Button->UseVisualStyleBackColor = true;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -