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

📄 departmentform.h

📁 vc++开发环境SQL数据库固定资产管理系统
💻 H
📖 第 1 页 / 共 2 页
字号:
			this->bindingNavigatorMoveLastItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
			this->bindingNavigatorMoveLastItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMoveLastItem.Image")));
			this->bindingNavigatorMoveLastItem->Name = L"bindingNavigatorMoveLastItem";
			this->bindingNavigatorMoveLastItem->RightToLeftAutoMirrorImage = true;
			this->bindingNavigatorMoveLastItem->Size = System::Drawing::Size(23, 22);
			this->bindingNavigatorMoveLastItem->Text = L"移到最后一条记录";
			// 
			// bindingNavigatorSeparator2
			// 
			this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator";
			this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
			// 
			// bindingNavigatorAddNewItem
			// 
			this->bindingNavigatorAddNewItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorAddNewItem.Image")));
			this->bindingNavigatorAddNewItem->Name = L"bindingNavigatorAddNewItem";
			this->bindingNavigatorAddNewItem->RightToLeftAutoMirrorImage = true;
			this->bindingNavigatorAddNewItem->Size = System::Drawing::Size(49, 22);
			this->bindingNavigatorAddNewItem->Text = L"新增";
			// 
			// bindingNavigatorDeleteItem
			// 
			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, &DepartmentForm::公司部门BindingNavigatorSaveItem_Click);
			// 
			// dataGridViewTextBoxColumn2
			// 
			this->dataGridViewTextBoxColumn2->DataPropertyName = L"部门负责人";
			this->dataGridViewTextBoxColumn2->HeaderText = L"部门负责人";
			this->dataGridViewTextBoxColumn2->Name = L"dataGridViewTextBoxColumn2";
			this->dataGridViewTextBoxColumn2->ReadOnly = true;
			// 
			// dataGridViewTextBoxColumn1
			// 
			this->dataGridViewTextBoxColumn1->DataPropertyName = L"部门名称";
			this->dataGridViewTextBoxColumn1->HeaderText = L"部门名称";
			this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
			this->dataGridViewTextBoxColumn1->ReadOnly = true;
			// 
			// dataGridViewTextBoxColumn3
			// 
			this->dataGridViewTextBoxColumn3->DataPropertyName = L"设备员";
			this->dataGridViewTextBoxColumn3->HeaderText = L"设备员";
			this->dataGridViewTextBoxColumn3->Name = L"dataGridViewTextBoxColumn3";
			this->dataGridViewTextBoxColumn3->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;
			// 
			// 部门名称Label
			// 
			部门名称Label->AutoSize = true;
			部门名称Label->Location = System::Drawing::Point(3, 32);
			部门名称Label->Name = L"部门名称Label";
			部门名称Label->Size = System::Drawing::Size(59, 12);
			部门名称Label->TabIndex = 13;
			部门名称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(80, 29);
			this->部门名称TextBox->Name = L"部门名称TextBox";
			this->部门名称TextBox->Size = System::Drawing::Size(180, 21);
			this->部门名称TextBox->TabIndex = 14;
			// 
			// 部门负责人Label
			// 
			部门负责人Label->AutoSize = true;
			部门负责人Label->Location = System::Drawing::Point(3, 59);
			部门负责人Label->Name = L"部门负责人Label";
			部门负责人Label->Size = System::Drawing::Size(71, 12);
			部门负责人Label->TabIndex = 15;
			部门负责人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(80, 56);
			this->部门负责人TextBox->Name = L"部门负责人TextBox";
			this->部门负责人TextBox->Size = System::Drawing::Size(180, 21);
			this->部门负责人TextBox->TabIndex = 16;
			// 
			// 设备员Label
			// 
			设备员Label->AutoSize = true;
			设备员Label->Location = System::Drawing::Point(264, 32);
			设备员Label->Name = L"设备员Label";
			设备员Label->Size = System::Drawing::Size(47, 12);
			设备员Label->TabIndex = 17;
			设备员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(329, 29);
			this->设备员TextBox->Name = L"设备员TextBox";
			this->设备员TextBox->Size = System::Drawing::Size(208, 21);
			this->设备员TextBox->TabIndex = 18;
			// 
			// 联系电话Label
			// 
			联系电话Label->AutoSize = true;
			联系电话Label->Location = System::Drawing::Point(264, 59);
			联系电话Label->Name = L"联系电话Label";
			联系电话Label->Size = System::Drawing::Size(59, 12);
			联系电话Label->TabIndex = 19;
			联系电话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(329, 56);
			this->联系电话TextBox->Name = L"联系电话TextBox";
			this->联系电话TextBox->Size = System::Drawing::Size(208, 21);
			this->联系电话TextBox->TabIndex = 20;
			// 
			// 说明Label
			// 
			说明Label->AutoSize = true;
			说明Label->Location = System::Drawing::Point(3, 86);
			说明Label->Name = L"说明Label";
			说明Label->Size = System::Drawing::Size(35, 12);
			说明Label->TabIndex = 21;
			说明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(44, 83);
			this->说明TextBox->Name = L"说明TextBox";
			this->说明TextBox->Size = System::Drawing::Size(493, 21);
			this->说明TextBox->TabIndex = 22;
			// 
			// 公司部门DataGridView
			// 
			this->公司部门DataGridView->AllowUserToAddRows = false;
			this->公司部门DataGridView->AllowUserToDeleteRows = false;
			this->公司部门DataGridView->AllowUserToResizeRows = false;
			this->公司部门DataGridView->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
				| System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->公司部门DataGridView->AutoGenerateColumns = false;
			this->公司部门DataGridView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^  >(5) {this->dataGridViewTextBoxColumn1, 
				this->dataGridViewTextBoxColumn2, this->dataGridViewTextBoxColumn3, this->dataGridViewTextBoxColumn4, this->dataGridViewTextBoxColumn5});
			this->公司部门DataGridView->DataSource = this->公司部门BindingSource;
			this->公司部门DataGridView->Location = System::Drawing::Point(5, 110);
			this->公司部门DataGridView->MultiSelect = false;
			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(532, 300);
			this->公司部门DataGridView->TabIndex = 12;
			// 
			// DepartmentForm
			// 
			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(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->公司部门DataGridView);
			this->Controls->Add(this->公司部门BindingNavigator);
			this->Name = L"DepartmentForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"登记公司部门信息";
			this->Load += gcnew System::EventHandler(this, &DepartmentForm::DepartmentForm_Load);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->MyAssetsDataSet))->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->MyAssetsDataSet->公司部门);
			 }
private: System::Void DepartmentForm_Load(System::Object^  sender, System::EventArgs^  e) {
			 // TODO: 这行代码将数据加载到表“MyAssetsDataSet.公司部门”中。您可以根据需要移动或移除它。
			 this->公司部门TableAdapter->Fill(this->MyAssetsDataSet->公司部门);
		 }
};
}

⌨️ 快捷键说明

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