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

📄 queryguestform.h

📁 宾馆酒店管理系统,建议在简体中文版Microsoft Windows Server 2003(SP1)/Microsoft Office 2003(SP2)/Microsoft SQL Server
💻 H
📖 第 1 页 / 共 3 页
字号:
			// 离开日期Label
			// 
			离开日期Label->AutoSize = true;
			离开日期Label->Location = System::Drawing::Point(1, 169);
			离开日期Label->Name = L"离开日期Label";
			离开日期Label->Size = System::Drawing::Size(59, 12);
			离开日期Label->TabIndex = 42;
			离开日期Label->Text = L"离开日期:";
			// 
			// 离开日期DateTimePicker
			// 
			this->离开日期DateTimePicker->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Value", this->客房入住单BindingSource, L"离开日期", 
				true)));
			this->离开日期DateTimePicker->Location = System::Drawing::Point(66, 165);
			this->离开日期DateTimePicker->Name = L"离开日期DateTimePicker";
			this->离开日期DateTimePicker->Size = System::Drawing::Size(120, 21);
			this->离开日期DateTimePicker->TabIndex = 43;
			// 
			// 客人姓名Label
			// 
			客人姓名Label->AutoSize = true;
			客人姓名Label->Location = System::Drawing::Point(1, 195);
			客人姓名Label->Name = L"客人姓名Label";
			客人姓名Label->Size = System::Drawing::Size(59, 12);
			客人姓名Label->TabIndex = 44;
			客人姓名Label->Text = L"客人姓名:";
			// 
			// 客人姓名TextBox
			// 
			this->客人姓名TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"客人姓名", true)));
			this->客人姓名TextBox->Location = System::Drawing::Point(66, 192);
			this->客人姓名TextBox->Name = L"客人姓名TextBox";
			this->客人姓名TextBox->Size = System::Drawing::Size(120, 21);
			this->客人姓名TextBox->TabIndex = 45;
			// 
			// 证件名称Label
			// 
			证件名称Label->AutoSize = true;
			证件名称Label->Location = System::Drawing::Point(196, 195);
			证件名称Label->Name = L"证件名称Label";
			证件名称Label->Size = System::Drawing::Size(59, 12);
			证件名称Label->TabIndex = 46;
			证件名称Label->Text = L"证件名称:";
			// 
			// 证件名称TextBox
			// 
			this->证件名称TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"证件名称", true)));
			this->证件名称TextBox->Location = System::Drawing::Point(261, 192);
			this->证件名称TextBox->Name = L"证件名称TextBox";
			this->证件名称TextBox->Size = System::Drawing::Size(278, 21);
			this->证件名称TextBox->TabIndex = 47;
			// 
			// 证件号码Label
			// 
			证件号码Label->AutoSize = true;
			证件号码Label->Location = System::Drawing::Point(196, 33);
			证件号码Label->Name = L"证件号码Label";
			证件号码Label->Size = System::Drawing::Size(59, 12);
			证件号码Label->TabIndex = 48;
			证件号码Label->Text = L"证件号码:";
			// 
			// 证件号码TextBox
			// 
			this->证件号码TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"证件号码", true)));
			this->证件号码TextBox->Location = System::Drawing::Point(261, 30);
			this->证件号码TextBox->Name = L"证件号码TextBox";
			this->证件号码TextBox->Size = System::Drawing::Size(278, 21);
			this->证件号码TextBox->TabIndex = 49;
			// 
			// 证件地址Label
			// 
			证件地址Label->AutoSize = true;
			证件地址Label->Location = System::Drawing::Point(196, 60);
			证件地址Label->Name = L"证件地址Label";
			证件地址Label->Size = System::Drawing::Size(59, 12);
			证件地址Label->TabIndex = 50;
			证件地址Label->Text = L"证件地址:";
			// 
			// 证件地址TextBox
			// 
			this->证件地址TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"证件地址", true)));
			this->证件地址TextBox->Location = System::Drawing::Point(261, 57);
			this->证件地址TextBox->Name = L"证件地址TextBox";
			this->证件地址TextBox->Size = System::Drawing::Size(278, 21);
			this->证件地址TextBox->TabIndex = 51;
			// 
			// 住宿人数Label
			// 
			住宿人数Label->AutoSize = true;
			住宿人数Label->Location = System::Drawing::Point(196, 87);
			住宿人数Label->Name = L"住宿人数Label";
			住宿人数Label->Size = System::Drawing::Size(59, 12);
			住宿人数Label->TabIndex = 52;
			住宿人数Label->Text = L"住宿人数:";
			// 
			// 住宿人数TextBox
			// 
			this->住宿人数TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"住宿人数", true)));
			this->住宿人数TextBox->Location = System::Drawing::Point(261, 84);
			this->住宿人数TextBox->Name = L"住宿人数TextBox";
			this->住宿人数TextBox->ReadOnly = true;
			this->住宿人数TextBox->Size = System::Drawing::Size(278, 21);
			this->住宿人数TextBox->TabIndex = 53;
			// 
			// 客人性别Label
			// 
			客人性别Label->AutoSize = true;
			客人性别Label->Location = System::Drawing::Point(196, 114);
			客人性别Label->Name = L"客人性别Label";
			客人性别Label->Size = System::Drawing::Size(59, 12);
			客人性别Label->TabIndex = 54;
			客人性别Label->Text = L"客人性别:";
			// 
			// 客人性别TextBox
			// 
			this->客人性别TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"客人性别", true)));
			this->客人性别TextBox->Location = System::Drawing::Point(261, 111);
			this->客人性别TextBox->Name = L"客人性别TextBox";
			this->客人性别TextBox->Size = System::Drawing::Size(278, 21);
			this->客人性别TextBox->TabIndex = 55;
			// 
			// 联系电话Label
			// 
			联系电话Label->AutoSize = true;
			联系电话Label->Location = System::Drawing::Point(196, 141);
			联系电话Label->Name = L"联系电话Label";
			联系电话Label->Size = System::Drawing::Size(59, 12);
			联系电话Label->TabIndex = 56;
			联系电话Label->Text = L"联系电话:";
			// 
			// 联系电话TextBox
			// 
			this->联系电话TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"联系电话", true)));
			this->联系电话TextBox->Location = System::Drawing::Point(261, 138);
			this->联系电话TextBox->Name = L"联系电话TextBox";
			this->联系电话TextBox->Size = System::Drawing::Size(278, 21);
			this->联系电话TextBox->TabIndex = 57;
			// 
			// 操作人员Label
			// 
			操作人员Label->AutoSize = true;
			操作人员Label->Location = System::Drawing::Point(196, 168);
			操作人员Label->Name = L"操作人员Label";
			操作人员Label->Size = System::Drawing::Size(59, 12);
			操作人员Label->TabIndex = 58;
			操作人员Label->Text = L"操作人员:";
			// 
			// 操作人员TextBox
			// 
			this->操作人员TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"操作人员", true)));
			this->操作人员TextBox->Location = System::Drawing::Point(261, 165);
			this->操作人员TextBox->Name = L"操作人员TextBox";
			this->操作人员TextBox->ReadOnly = true;
			this->操作人员TextBox->Size = System::Drawing::Size(278, 21);
			this->操作人员TextBox->TabIndex = 59;
			// 
			// 说明Label
			// 
			说明Label->AutoSize = true;
			说明Label->Location = System::Drawing::Point(1, 222);
			说明Label->Name = L"说明Label";
			说明Label->Size = System::Drawing::Size(35, 12);
			说明Label->TabIndex = 60;
			说明Label->Text = L"说明:";
			// 
			// 说明TextBox
			// 
			this->说明TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->客房入住单BindingSource, L"说明", true)));
			this->说明TextBox->Location = System::Drawing::Point(66, 219);
			this->说明TextBox->Name = L"说明TextBox";
			this->说明TextBox->Size = System::Drawing::Size(473, 21);
			this->说明TextBox->TabIndex = 61;
			// 
			// 客人姓名ToolStripLabel
			// 
			this->客人姓名ToolStripLabel->Name = L"客人姓名ToolStripLabel";
			this->客人姓名ToolStripLabel->Size = System::Drawing::Size(59, 22);
			this->客人姓名ToolStripLabel->Text = L"客人姓名:";
			// 
			// 客人姓名ToolStripTextBox
			// 
			this->客人姓名ToolStripTextBox->Name = L"客人姓名ToolStripTextBox";
			this->客人姓名ToolStripTextBox->Size = System::Drawing::Size(100, 25);
			this->客人姓名ToolStripTextBox->Text = L"%%";
			// 
			// 查询入住旅客信息ToolStripButton
			// 
			this->查询入住旅客信息ToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"查询入住旅客信息ToolStripButton.Image")));
			this->查询入住旅客信息ToolStripButton->Name = L"查询入住旅客信息ToolStripButton";
			this->查询入住旅客信息ToolStripButton->Size = System::Drawing::Size(49, 22);
			this->查询入住旅客信息ToolStripButton->Text = L"查询";
			this->查询入住旅客信息ToolStripButton->Click += gcnew System::EventHandler(this, &QueryGuestForm::查询入住旅客信息ToolStripButton_Click);
			// 
			// QueryGuestForm
			// 
			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)), 
				static_cast<System::Int32>(static_cast<System::Byte>(192)));
			this->ClientSize = System::Drawing::Size(542, 416);
			this->Controls->Add(this->客房入住单DataGridView);
			this->Controls->Add(入住编号Label);
			this->Controls->Add(this->入住编号TextBox);
			this->Controls->Add(房号Label);
			this->Controls->Add(this->房号TextBox);
			this->Controls->Add(折扣价格Label);
			this->Controls->Add(this->折扣价格TextBox);
			this->Controls->Add(预收押金Label);
			this->Controls->Add(this->预收押金TextBox);
			this->Controls->Add(入住日期Label);
			this->Controls->Add(this->入住日期DateTimePicker);
			this->Controls->Add(离开日期Label);
			this->Controls->Add(this->离开日期DateTimePicker);
			this->Controls->Add(客人姓名Label);
			this->Controls->Add(this->客人姓名TextBox);
			this->Controls->Add(证件名称Label);
			this->Controls->Add(this->证件名称TextBox);
			this->Controls->Add(证件号码Label);
			this->Controls->Add(this->证件号码TextBox);
			this->Controls->Add(证件地址Label);
			this->Controls->Add(this->证件地址TextBox);
			this->Controls->Add(住宿人数Label);
			this->Controls->Add(this->住宿人数TextBox);
			this->Controls->Add(客人性别Label);
			this->Controls->Add(this->客人性别TextBox);
			this->Controls->Add(联系电话Label);
			this->Controls->Add(this->联系电话TextBox);
			this->Controls->Add(操作人员Label);
			this->Controls->Add(this->操作人员TextBox);
			this->Controls->Add(说明Label);
			this->Controls->Add(this->说明TextBox);
			this->Controls->Add(this->客房入住单BindingNavigator);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
			this->MaximizeBox = false;
			this->MinimizeBox = false;
			this->Name = L"QueryGuestForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"查询修改入住旅客信息";
			this->Load += gcnew System::EventHandler(this, &QueryGuestForm::QueryGuestForm_Load);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->客房入住单BindingNavigator))->EndInit();
			this->客房入住单BindingNavigator->ResumeLayout(false);
			this->客房入住单BindingNavigator->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->客房入住单BindingSource))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->MyHotelDataSet))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->客房入住单DataGridView))->EndInit();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: System::Void 客房入住单BindingNavigatorSaveItem_Click(System::Object^  sender, System::EventArgs^  e) {
		this->Validate();
		this->客房入住单BindingSource->EndEdit();
		this->客房入住单TableAdapter->Update(this->MyHotelDataSet->客房入住单);
	}
	private: System::Void QueryGuestForm_Load(System::Object^  sender, System::EventArgs^  e) {
		// TODO: 这行代码将数据加载到表“MyHotelDataSet.客房入住单”中。您可以根据需要移动或移除它。
		this->客房入住单TableAdapter->Fill(this->MyHotelDataSet->客房入住单);
	}
	private: System::Void 查询入住旅客信息ToolStripButton_Click(System::Object^  sender, System::EventArgs^  e) {
		 try 
		 {
			 this->客房入住单TableAdapter->FillBy(this->MyHotelDataSet->客房入住单, 客人姓名ToolStripTextBox->Text);
		 }
		 catch (System::Exception^ ex) 
		 {
			 System::Windows::Forms::MessageBox::Show(ex->Message);
		 }
	 }
};
}

⌨️ 快捷键说明

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