📄 companyform.h
字号:
this->公司信息DataGridView->Name = L"公司信息DataGridView";
this->公司信息DataGridView->ReadOnly = true;
this->公司信息DataGridView->RowHeadersVisible = false;
this->公司信息DataGridView->RowTemplate->Height = 23;
this->公司信息DataGridView->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
this->公司信息DataGridView->Size = System::Drawing::Size(533, 252);
this->公司信息DataGridView->TabIndex = 23;
//
// 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;
//
// dataGridViewTextBoxColumn3
//
this->dataGridViewTextBoxColumn3->DataPropertyName = L"公司地址";
this->dataGridViewTextBoxColumn3->HeaderText = L"公司地址";
this->dataGridViewTextBoxColumn3->Name = L"dataGridViewTextBoxColumn3";
this->dataGridViewTextBoxColumn3->ReadOnly = true;
//
// dataGridViewTextBoxColumn4
//
this->dataGridViewTextBoxColumn4->DataPropertyName = L"服务电话";
this->dataGridViewTextBoxColumn4->HeaderText = L"服务电话";
this->dataGridViewTextBoxColumn4->Name = L"dataGridViewTextBoxColumn4";
this->dataGridViewTextBoxColumn4->ReadOnly = true;
//
// dataGridViewTextBoxColumn5
//
this->dataGridViewTextBoxColumn5->DataPropertyName = L"邮政编码";
this->dataGridViewTextBoxColumn5->HeaderText = L"邮政编码";
this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
this->dataGridViewTextBoxColumn5->ReadOnly = true;
//
// dataGridViewTextBoxColumn6
//
this->dataGridViewTextBoxColumn6->DataPropertyName = L"电子邮件";
this->dataGridViewTextBoxColumn6->HeaderText = L"电子邮件";
this->dataGridViewTextBoxColumn6->Name = L"dataGridViewTextBoxColumn6";
this->dataGridViewTextBoxColumn6->ReadOnly = true;
//
// 公司信息BindingNavigator
//
this->公司信息BindingNavigator->AddNewItem = this->bindingNavigatorAddNewItem;
this->公司信息BindingNavigator->BindingSource = this->公司信息BindingSource;
this->公司信息BindingNavigator->CountItem = this->bindingNavigatorCountItem;
this->公司信息BindingNavigator->DeleteItem = this->bindingNavigatorDeleteItem;
this->公司信息BindingNavigator->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(12) {this->bindingNavigatorMoveFirstItem,
this->bindingNavigatorMovePreviousItem, this->bindingNavigatorSeparator, this->bindingNavigatorPositionItem, this->bindingNavigatorCountItem,
this->bindingNavigatorSeparator1, this->bindingNavigatorMoveNextItem, this->bindingNavigatorMoveLastItem, this->bindingNavigatorSeparator2,
this->bindingNavigatorAddNewItem, this->bindingNavigatorDeleteItem, this->公司信息BindingNavigatorSaveItem});
this->公司信息BindingNavigator->Location = System::Drawing::Point(0, 0);
this->公司信息BindingNavigator->MoveFirstItem = this->bindingNavigatorMoveFirstItem;
this->公司信息BindingNavigator->MoveLastItem = this->bindingNavigatorMoveLastItem;
this->公司信息BindingNavigator->MoveNextItem = this->bindingNavigatorMoveNextItem;
this->公司信息BindingNavigator->MovePreviousItem = this->bindingNavigatorMovePreviousItem;
this->公司信息BindingNavigator->Name = L"公司信息BindingNavigator";
this->公司信息BindingNavigator->PositionItem = this->bindingNavigatorPositionItem;
this->公司信息BindingNavigator->Size = System::Drawing::Size(542, 25);
this->公司信息BindingNavigator->TabIndex = 22;
this->公司信息BindingNavigator->Text = L"bindingNavigator1";
//
// 服务电话TextBox
//
this->服务电话TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"服务电话", true)));
this->服务电话TextBox->Location = System::Drawing::Point(67, 106);
this->服务电话TextBox->Name = L"服务电话TextBox";
this->服务电话TextBox->Size = System::Drawing::Size(180, 21);
this->服务电话TextBox->TabIndex = 31;
//
// 邮政编码TextBox
//
this->邮政编码TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"邮政编码", true)));
this->邮政编码TextBox->Location = System::Drawing::Point(67, 133);
this->邮政编码TextBox->Name = L"邮政编码TextBox";
this->邮政编码TextBox->Size = System::Drawing::Size(180, 21);
this->邮政编码TextBox->TabIndex = 33;
//
// 公司地址TextBox
//
this->公司地址TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"公司地址", true)));
this->公司地址TextBox->Location = System::Drawing::Point(67, 79);
this->公司地址TextBox->Name = L"公司地址TextBox";
this->公司地址TextBox->Size = System::Drawing::Size(180, 21);
this->公司地址TextBox->TabIndex = 29;
//
// 法人代表TextBox
//
this->法人代表TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"法人代表", true)));
this->法人代表TextBox->Location = System::Drawing::Point(67, 52);
this->法人代表TextBox->Name = L"法人代表TextBox";
this->法人代表TextBox->Size = System::Drawing::Size(180, 21);
this->法人代表TextBox->TabIndex = 27;
//
// 电子邮件TextBox
//
this->电子邮件TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->电子邮件TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"电子邮件", true)));
this->电子邮件TextBox->Location = System::Drawing::Point(319, 25);
this->电子邮件TextBox->Name = L"电子邮件TextBox";
this->电子邮件TextBox->Size = System::Drawing::Size(218, 21);
this->电子邮件TextBox->TabIndex = 35;
//
// 公司网站TextBox
//
this->公司网站TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->公司网站TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"公司网站", true)));
this->公司网站TextBox->Location = System::Drawing::Point(319, 52);
this->公司网站TextBox->Name = L"公司网站TextBox";
this->公司网站TextBox->Size = System::Drawing::Size(218, 21);
this->公司网站TextBox->TabIndex = 37;
//
// 管理系统背景照片TextBox
//
this->管理系统背景照片TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->管理系统背景照片TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"管理系统背景照片",
true)));
this->管理系统背景照片TextBox->Location = System::Drawing::Point(367, 79);
this->管理系统背景照片TextBox->Name = L"管理系统背景照片TextBox";
this->管理系统背景照片TextBox->Size = System::Drawing::Size(170, 21);
this->管理系统背景照片TextBox->TabIndex = 39;
//
// 管理系统显示名称TextBox
//
this->管理系统显示名称TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->管理系统显示名称TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"管理系统显示名称",
true)));
this->管理系统显示名称TextBox->Location = System::Drawing::Point(367, 106);
this->管理系统显示名称TextBox->Name = L"管理系统显示名称TextBox";
this->管理系统显示名称TextBox->Size = System::Drawing::Size(170, 21);
this->管理系统显示名称TextBox->TabIndex = 41;
//
// 显示优先级TextBox
//
this->显示优先级TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->显示优先级TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->公司信息BindingSource, L"显示优先级", true)));
this->显示优先级TextBox->Location = System::Drawing::Point(331, 133);
this->显示优先级TextBox->Name = L"显示优先级TextBox";
this->显示优先级TextBox->Size = System::Drawing::Size(206, 21);
this->显示优先级TextBox->TabIndex = 43;
//
// CompanyForm
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(542, 416);
this->Controls->Add(公司名称Label);
this->Controls->Add(this->公司名称TextBox);
this->Controls->Add(公司网站Label);
this->Controls->Add(管理系统背景照片Label);
this->Controls->Add(管理系统显示名称Label);
this->Controls->Add(显示优先级Label);
this->Controls->Add(this->公司信息DataGridView);
this->Controls->Add(电子邮件Label);
this->Controls->Add(法人代表Label);
this->Controls->Add(公司地址Label);
this->Controls->Add(服务电话Label);
this->Controls->Add(邮政编码Label);
this->Controls->Add(this->公司信息BindingNavigator);
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(this->管理系统背景照片TextBox);
this->Controls->Add(this->管理系统显示名称TextBox);
this->Controls->Add(this->显示优先级TextBox);
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->MyBooksDataSet))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->公司信息BindingSource))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->公司信息DataGridView))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->公司信息BindingNavigator))->EndInit();
this->公司信息BindingNavigator->ResumeLayout(false);
this->公司信息BindingNavigator->PerformLayout();
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->MyBooksDataSet->公司信息);
}
private: System::Void CompanyForm_Load(System::Object^ sender, System::EventArgs^ e) {
// TODO: 这行代码将数据加载到表“MyBooksDataSet.公司信息”中。您可以根据需要移动或移除它。
this->公司信息TableAdapter->Fill(this->MyBooksDataSet->公司信息);
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -