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

📄 roomform.h

📁 宾馆酒店管理系统,建议在简体中文版Microsoft Windows Server 2003(SP1)/Microsoft Office 2003(SP2)/Microsoft SQL Server
💻 H
📖 第 1 页 / 共 2 页
字号:
			// 
			this->bindingNavigatorDeleteItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorDeleteItem.Image")));
			this->bindingNavigatorDeleteItem->Name = L"bindingNavigatorDeleteItem";
			this->bindingNavigatorDeleteItem->RightToLeftAutoMirrorImage = true;
			this->bindingNavigatorDeleteItem->Size = System::Drawing::Size(49, 22);
			this->bindingNavigatorDeleteItem->Text = L"删除";
			// 
			// 酒店房间BindingNavigatorSaveItem
			// 
			this->酒店房间BindingNavigatorSaveItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"酒店房间BindingNavigatorSaveItem.Image")));
			this->酒店房间BindingNavigatorSaveItem->Name = L"酒店房间BindingNavigatorSaveItem";
			this->酒店房间BindingNavigatorSaveItem->Size = System::Drawing::Size(49, 22);
			this->酒店房间BindingNavigatorSaveItem->Text = L"保存";
			this->酒店房间BindingNavigatorSaveItem->Click += gcnew System::EventHandler(this, &RoomForm::酒店房间BindingNavigatorSaveItem_Click);
			// 
			// dataGridViewTextBoxColumn7
			// 
			this->dataGridViewTextBoxColumn7->DataPropertyName = L"说明";
			this->dataGridViewTextBoxColumn7->HeaderText = L"说明";
			this->dataGridViewTextBoxColumn7->Name = L"dataGridViewTextBoxColumn7";
			this->dataGridViewTextBoxColumn7->ReadOnly = true;
			// 
			// dataGridViewTextBoxColumn5
			// 
			this->dataGridViewTextBoxColumn5->DataPropertyName = L"可容纳人数";
			this->dataGridViewTextBoxColumn5->HeaderText = L"可容纳人数";
			this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
			this->dataGridViewTextBoxColumn5->ReadOnly = true;
			// 
			// dataGridViewTextBoxColumn4
			// 
			this->dataGridViewTextBoxColumn4->DataPropertyName = L"单价";
			this->dataGridViewTextBoxColumn4->HeaderText = L"单价";
			this->dataGridViewTextBoxColumn4->Name = L"dataGridViewTextBoxColumn4";
			this->dataGridViewTextBoxColumn4->ReadOnly = true;
			// 
			// 类别ComboBox
			// 
			this->类别ComboBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"类别", true)));
			this->类别ComboBox->FormattingEnabled = true;
			this->类别ComboBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"单人间", L"双人间", L"三人间", L"四人间", L"豪华间", L"钟点房", 
				L"棋牌室", L"会议室"});
			this->类别ComboBox->Location = System::Drawing::Point(174, 30);
			this->类别ComboBox->Name = L"类别ComboBox";
			this->类别ComboBox->Size = System::Drawing::Size(110, 20);
			this->类别ComboBox->TabIndex = 44;
			// 
			// 房号TextBox
			// 
			this->房号TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"房号", true)));
			this->房号TextBox->Location = System::Drawing::Point(46, 29);
			this->房号TextBox->Name = L"房号TextBox";
			this->房号TextBox->Size = System::Drawing::Size(83, 21);
			this->房号TextBox->TabIndex = 32;
			// 
			// 楼层TextBox
			// 
			this->楼层TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"楼层", true)));
			this->楼层TextBox->Location = System::Drawing::Point(332, 29);
			this->楼层TextBox->Name = L"楼层TextBox";
			this->楼层TextBox->Size = System::Drawing::Size(90, 21);
			this->楼层TextBox->TabIndex = 35;
			// 
			// 单价TextBox
			// 
			this->单价TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"单价", true)));
			this->单价TextBox->Location = System::Drawing::Point(469, 29);
			this->单价TextBox->Name = L"单价TextBox";
			this->单价TextBox->Size = System::Drawing::Size(71, 21);
			this->单价TextBox->TabIndex = 37;
			// 
			// 可容纳人数TextBox
			// 
			this->可容纳人数TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"可容纳人数", true)));
			this->可容纳人数TextBox->Location = System::Drawing::Point(80, 53);
			this->可容纳人数TextBox->Name = L"可容纳人数TextBox";
			this->可容纳人数TextBox->Size = System::Drawing::Size(49, 21);
			this->可容纳人数TextBox->TabIndex = 39;
			// 
			// 说明TextBox
			// 
			this->说明TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"说明", true)));
			this->说明TextBox->Location = System::Drawing::Point(332, 53);
			this->说明TextBox->Name = L"说明TextBox";
			this->说明TextBox->Size = System::Drawing::Size(208, 21);
			this->说明TextBox->TabIndex = 41;
			// 
			// 已入住人数TextBox
			// 
			this->已入住人数TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->酒店房间BindingSource, L"已入住人数", true)));
			this->已入住人数TextBox->Location = System::Drawing::Point(205, 53);
			this->已入住人数TextBox->Name = L"已入住人数TextBox";
			this->已入住人数TextBox->Size = System::Drawing::Size(79, 21);
			this->已入住人数TextBox->TabIndex = 43;
			this->已入住人数TextBox->Text = L"0";
			// 
			// dataGridViewTextBoxColumn3
			// 
			this->dataGridViewTextBoxColumn3->DataPropertyName = L"楼层";
			this->dataGridViewTextBoxColumn3->HeaderText = L"楼层";
			this->dataGridViewTextBoxColumn3->Name = L"dataGridViewTextBoxColumn3";
			this->dataGridViewTextBoxColumn3->ReadOnly = true;
			// 
			// 房号Label
			// 
			房号Label->AutoSize = true;
			房号Label->Location = System::Drawing::Point(4, 34);
			房号Label->Name = L"房号Label";
			房号Label->Size = System::Drawing::Size(35, 12);
			房号Label->TabIndex = 30;
			房号Label->Text = L"房号:";
			// 
			// 类别Label
			// 
			类别Label->AutoSize = true;
			类别Label->Location = System::Drawing::Point(133, 33);
			类别Label->Name = L"类别Label";
			类别Label->Size = System::Drawing::Size(35, 12);
			类别Label->TabIndex = 33;
			类别Label->Text = L"类别:";
			// 
			// 楼层Label
			// 
			楼层Label->AutoSize = true;
			楼层Label->Location = System::Drawing::Point(291, 34);
			楼层Label->Name = L"楼层Label";
			楼层Label->Size = System::Drawing::Size(35, 12);
			楼层Label->TabIndex = 34;
			楼层Label->Text = L"楼层:";
			// 
			// 单价Label
			// 
			单价Label->AutoSize = true;
			单价Label->Location = System::Drawing::Point(428, 34);
			单价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(4, 58);
			可容纳人数Label->Name = L"可容纳人数Label";
			可容纳人数Label->Size = System::Drawing::Size(71, 12);
			可容纳人数Label->TabIndex = 38;
			可容纳人数Label->Text = L"可容纳人数:";
			// 
			// dataGridViewTextBoxColumn1
			// 
			this->dataGridViewTextBoxColumn1->DataPropertyName = L"房号";
			this->dataGridViewTextBoxColumn1->HeaderText = L"房号";
			this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
			this->dataGridViewTextBoxColumn1->ReadOnly = true;
			// 
			// dataGridViewTextBoxColumn2
			// 
			this->dataGridViewTextBoxColumn2->DataPropertyName = L"类别";
			this->dataGridViewTextBoxColumn2->HeaderText = L"类别";
			this->dataGridViewTextBoxColumn2->Name = L"dataGridViewTextBoxColumn2";
			this->dataGridViewTextBoxColumn2->ReadOnly = true;
			// 
			// 说明Label
			// 
			说明Label->AutoSize = true;
			说明Label->Location = System::Drawing::Point(291, 58);
			说明Label->Name = L"说明Label";
			说明Label->Size = System::Drawing::Size(35, 12);
			说明Label->TabIndex = 40;
			说明Label->Text = L"说明:";
			// 
			// 已入住人数Label
			// 
			已入住人数Label->AutoSize = true;
			已入住人数Label->Location = System::Drawing::Point(133, 58);
			已入住人数Label->Name = L"已入住人数Label";
			已入住人数Label->Size = System::Drawing::Size(71, 12);
			已入住人数Label->TabIndex = 42;
			已入住人数Label->Text = L"已入住人数:";
			// 
			// 酒店房间DataGridView
			// 
			this->酒店房间DataGridView->AutoGenerateColumns = false;
			this->酒店房间DataGridView->BackgroundColor = System::Drawing::SystemColors::MenuHighlight;
			this->酒店房间DataGridView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^  >(6) {this->dataGridViewTextBoxColumn1, 
				this->dataGridViewTextBoxColumn2, this->dataGridViewTextBoxColumn3, this->dataGridViewTextBoxColumn4, this->dataGridViewTextBoxColumn5, 
				this->dataGridViewTextBoxColumn7});
			this->酒店房间DataGridView->DataSource = this->酒店房间BindingSource;
			this->酒店房间DataGridView->Location = System::Drawing::Point(4, 79);
			this->酒店房间DataGridView->Name = L"酒店房间DataGridView";
			this->酒店房间DataGridView->ReadOnly = true;
			this->酒店房间DataGridView->RowHeadersVisible = false;
			dataGridViewCellStyle2->BackColor = System::Drawing::Color::Green;
			dataGridViewCellStyle2->ForeColor = System::Drawing::Color::Yellow;
			this->酒店房间DataGridView->RowsDefaultCellStyle = dataGridViewCellStyle2;
			this->酒店房间DataGridView->RowTemplate->Height = 23;
			this->酒店房间DataGridView->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
			this->酒店房间DataGridView->Size = System::Drawing::Size(535, 333);
			this->酒店房间DataGridView->TabIndex = 31;
			// 
			// RoomForm
			// 
			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->类别ComboBox);
			this->Controls->Add(this->房号TextBox);
			this->Controls->Add(this->楼层TextBox);
			this->Controls->Add(this->单价TextBox);
			this->Controls->Add(this->可容纳人数TextBox);
			this->Controls->Add(this->说明TextBox);
			this->Controls->Add(this->已入住人数TextBox);
			this->Controls->Add(房号Label);
			this->Controls->Add(类别Label);
			this->Controls->Add(楼层Label);
			this->Controls->Add(单价Label);
			this->Controls->Add(可容纳人数Label);
			this->Controls->Add(说明Label);
			this->Controls->Add(已入住人数Label);
			this->Controls->Add(this->酒店房间DataGridView);
			this->Controls->Add(this->酒店房间BindingNavigator);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
			this->MaximizeBox = false;
			this->MinimizeBox = false;
			this->Name = L"RoomForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"设置酒店客房信息";
			this->Load += gcnew System::EventHandler(this, &RoomForm::RoomForm_Load);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->MyHotelDataSet))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->酒店房间BindingSource))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->酒店房间BindingNavigator))->EndInit();
			this->酒店房间BindingNavigator->ResumeLayout(false);
			this->酒店房间BindingNavigator->PerformLayout();
			(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 RoomForm_Load(System::Object^  sender, System::EventArgs^  e) {
			 // TODO: 这行代码将数据加载到表“MyHotelDataSet.酒店房间”中。您可以根据需要移动或移除它。
			 this->酒店房间TableAdapter->Fill(this->MyHotelDataSet->酒店房间);
		 }
};
}

⌨️ 快捷键说明

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