📄 companyform.h
字号:
this->法人代表TextBox->Size = System::Drawing::Size(183, 21);
this->法人代表TextBox->TabIndex = 25;
//
// 酒店地址Label
//
酒店地址Label->AutoSize = true;
酒店地址Label->Location = System::Drawing::Point(1, 86);
酒店地址Label->Name = L"酒店地址Label";
酒店地址Label->Size = System::Drawing::Size(59, 12);
酒店地址Label->TabIndex = 26;
酒店地址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, 83);
this->酒店地址TextBox->Name = L"酒店地址TextBox";
this->酒店地址TextBox->Size = System::Drawing::Size(183, 21);
this->酒店地址TextBox->TabIndex = 27;
//
// 服务电话Label
//
服务电话Label->AutoSize = true;
服务电话Label->Location = System::Drawing::Point(1, 113);
服务电话Label->Name = L"服务电话Label";
服务电话Label->Size = System::Drawing::Size(59, 12);
服务电话Label->TabIndex = 28;
服务电话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, 110);
this->服务电话TextBox->Name = L"服务电话TextBox";
this->服务电话TextBox->Size = System::Drawing::Size(183, 21);
this->服务电话TextBox->TabIndex = 29;
//
// 邮政编码Label
//
邮政编码Label->AutoSize = true;
邮政编码Label->Location = System::Drawing::Point(1, 140);
邮政编码Label->Name = L"邮政编码Label";
邮政编码Label->Size = System::Drawing::Size(59, 12);
邮政编码Label->TabIndex = 30;
邮政编码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, 137);
this->邮政编码TextBox->Name = L"邮政编码TextBox";
this->邮政编码TextBox->Size = System::Drawing::Size(183, 21);
this->邮政编码TextBox->TabIndex = 31;
//
// 电子邮件Label
//
电子邮件Label->AutoSize = true;
电子邮件Label->Location = System::Drawing::Point(260, 32);
电子邮件Label->Name = L"电子邮件Label";
电子邮件Label->Size = System::Drawing::Size(59, 12);
电子邮件Label->TabIndex = 32;
电子邮件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(373, 29);
this->电子邮件TextBox->Name = L"电子邮件TextBox";
this->电子邮件TextBox->Size = System::Drawing::Size(163, 21);
this->电子邮件TextBox->TabIndex = 33;
//
// 酒店网站Label
//
酒店网站Label->AutoSize = true;
酒店网站Label->Location = System::Drawing::Point(260, 59);
酒店网站Label->Name = L"酒店网站Label";
酒店网站Label->Size = System::Drawing::Size(59, 12);
酒店网站Label->TabIndex = 34;
酒店网站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(373, 56);
this->酒店网站TextBox->Name = L"酒店网站TextBox";
this->酒店网站TextBox->Size = System::Drawing::Size(163, 21);
this->酒店网站TextBox->TabIndex = 35;
//
// 管理系统背景照片Label
//
管理系统背景照片Label->AutoSize = true;
管理系统背景照片Label->Location = System::Drawing::Point(260, 86);
管理系统背景照片Label->Name = L"管理系统背景照片Label";
管理系统背景照片Label->Size = System::Drawing::Size(107, 12);
管理系统背景照片Label->TabIndex = 36;
管理系统背景照片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(373, 83);
this->管理系统背景照片TextBox->Name = L"管理系统背景照片TextBox";
this->管理系统背景照片TextBox->Size = System::Drawing::Size(163, 21);
this->管理系统背景照片TextBox->TabIndex = 37;
//
// 管理系统显示名称Label
//
管理系统显示名称Label->AutoSize = true;
管理系统显示名称Label->Location = System::Drawing::Point(260, 113);
管理系统显示名称Label->Name = L"管理系统显示名称Label";
管理系统显示名称Label->Size = System::Drawing::Size(107, 12);
管理系统显示名称Label->TabIndex = 38;
管理系统显示名称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(373, 110);
this->管理系统显示名称TextBox->Name = L"管理系统显示名称TextBox";
this->管理系统显示名称TextBox->Size = System::Drawing::Size(163, 21);
this->管理系统显示名称TextBox->TabIndex = 39;
//
// 显示优先级Label
//
显示优先级Label->AutoSize = true;
显示优先级Label->Location = System::Drawing::Point(260, 140);
显示优先级Label->Name = L"显示优先级Label";
显示优先级Label->Size = System::Drawing::Size(71, 12);
显示优先级Label->TabIndex = 40;
显示优先级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(373, 137);
this->显示优先级TextBox->Name = L"显示优先级TextBox";
this->显示优先级TextBox->Size = System::Drawing::Size(163, 21);
this->显示优先级TextBox->TabIndex = 41;
//
// CompanyForm
//
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(540, 414);
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->邮政编码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"CompanyForm";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
this->Text = L"登记酒店基本信息";
this->Load += gcnew System::EventHandler(this, &CompanyForm::CompanyForm_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 CompanyForm_Load(System::Object^ sender, System::EventArgs^ e) {
// TODO: 这行代码将数据加载到表“MyHotelDataSet.酒店信息”中。您可以根据需要移动或移除它。
this->酒店信息TableAdapter->Fill(this->MyHotelDataSet->酒店信息);
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -