⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 consumeform.h

📁 宾馆酒店管理系统,建议在简体中文版Microsoft Windows Server 2003(SP1)/Microsoft Office 2003(SP2)/Microsoft SQL Server
💻 H
📖 第 1 页 / 共 3 页
字号:
//文件名:ConsumeForm.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>
	/// ConsumeForm 摘要
	///
	/// 警告: 如果更改此类的名称,则需要更改
	///          与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
	///          “资源文件名”属性。否则,
	///          设计器将不能与此窗体的关联
	///          本地化资源正确交互。
	/// </summary>
	public ref class ConsumeForm : public System::Windows::Forms::Form
	{
	public:
		ConsumeForm(void)
		{
			InitializeComponent();
			//
			//TODO: 在此处添加构造函数代码
			//
		}

	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~ConsumeForm()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::DataGridView^  旅客消费表DataGridView;
	protected: 
	private: System::Windows::Forms::Button^  保存Button;
	private: System::Windows::Forms::Button^  打印Button;
	private: System::Windows::Forms::TextBox^  单价TextBox;
	private: System::Windows::Forms::Label^  label6;
	private: System::Windows::Forms::Button^  添加Button;
	private: System::Windows::Forms::TextBox^  数量TextBox;
	private: System::Windows::Forms::Label^  label5;
	private: System::Windows::Forms::Label^  label4;
	private: System::Drawing::Printing::PrintDocument^  printDocument1;
	private: System::Windows::Forms::PrintPreviewDialog^  printPreviewDialog1;
	private: System::Windows::Forms::TextBox^  折扣价格TextBox;
	private: System::Windows::Forms::TextBox^  消费品名称TextBox;
	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::ComboBox^  酒店房号ComboBox;
	private: System::Windows::Forms::ComboBox^  旅客姓名ComboBox;
	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::DataGridView^  消费品价格DataGridView;

	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// 设计器支持所需的方法 - 不要
		/// 使用代码编辑器修改此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(ConsumeForm::typeid));
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle2 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			this->旅客消费表DataGridView = (gcnew System::Windows::Forms::DataGridView());
			this->保存Button = (gcnew System::Windows::Forms::Button());
			this->打印Button = (gcnew System::Windows::Forms::Button());
			this->单价TextBox = (gcnew System::Windows::Forms::TextBox());
			this->label6 = (gcnew System::Windows::Forms::Label());
			this->添加Button = (gcnew System::Windows::Forms::Button());
			this->数量TextBox = (gcnew System::Windows::Forms::TextBox());
			this->label5 = (gcnew System::Windows::Forms::Label());
			this->label4 = (gcnew System::Windows::Forms::Label());
			this->printDocument1 = (gcnew System::Drawing::Printing::PrintDocument());
			this->printPreviewDialog1 = (gcnew System::Windows::Forms::PrintPreviewDialog());
			this->折扣价格TextBox = (gcnew System::Windows::Forms::TextBox());
			this->消费品名称TextBox = (gcnew System::Windows::Forms::TextBox());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->酒店房号ComboBox = (gcnew System::Windows::Forms::ComboBox());
			this->旅客姓名ComboBox = (gcnew System::Windows::Forms::ComboBox());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
			this->消费品价格DataGridView = (gcnew System::Windows::Forms::DataGridView());
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->旅客消费表DataGridView))->BeginInit();
			this->groupBox1->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->消费品价格DataGridView))->BeginInit();
			this->SuspendLayout();
			// 
			// 旅客消费表DataGridView
			// 
			this->旅客消费表DataGridView->BackgroundColor = System::Drawing::SystemColors::MenuHighlight;
			this->旅客消费表DataGridView->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
			this->旅客消费表DataGridView->Location = System::Drawing::Point(4, 204);
			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(533, 207);
			this->旅客消费表DataGridView->TabIndex = 34;
			// 
			// 保存Button
			// 
			this->保存Button->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"保存Button.Image")));
			this->保存Button->Location = System::Drawing::Point(468, 5);
			this->保存Button->Name = L"保存Button";
			this->保存Button->Size = System::Drawing::Size(65, 25);
			this->保存Button->TabIndex = 33;
			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, &ConsumeForm::保存Button_Click);
			// 
			// 打印Button
			// 
			this->打印Button->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"打印Button.Image")));
			this->打印Button->Location = System::Drawing::Point(398, 5);
			this->打印Button->Name = L"打印Button";
			this->打印Button->Size = System::Drawing::Size(65, 25);
			this->打印Button->TabIndex = 32;
			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, &ConsumeForm::打印Button_Click);
			// 
			// 单价TextBox
			// 
			this->单价TextBox->Location = System::Drawing::Point(233, 173);
			this->单价TextBox->Name = L"单价TextBox";
			this->单价TextBox->ReadOnly = true;
			this->单价TextBox->Size = System::Drawing::Size(49, 21);
			this->单价TextBox->TabIndex = 31;
			// 
			// label6
			// 
			this->label6->AutoSize = true;
			this->label6->Location = System::Drawing::Point(181, 178);
			this->label6->Name = L"label6";
			this->label6->Size = System::Drawing::Size(41, 12);
			this->label6->TabIndex = 30;
			this->label6->Text = L"单价:";
			// 
			// 添加Button
			// 
			this->添加Button->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"添加Button.Image")));
			this->添加Button->Location = System::Drawing::Point(328, 5);
			this->添加Button->Name = L"添加Button";
			this->添加Button->Size = System::Drawing::Size(65, 25);
			this->添加Button->TabIndex = 29;
			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, &ConsumeForm::添加Button_Click);
			// 
			// 数量TextBox
			// 
			this->数量TextBox->Location = System::Drawing::Point(483, 173);
			this->数量TextBox->Name = L"数量TextBox";
			this->数量TextBox->Size = System::Drawing::Size(51, 21);
			this->数量TextBox->TabIndex = 28;
			this->数量TextBox->Text = L"1";
			// 
			// label5
			// 
			this->label5->AutoSize = true;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -