📄 familyform.h
字号:
//文件名:FamilyForm.h
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Data::SqlClient;
namespace 人事工资管理系统 {
/// <summary>
/// FamilyForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class FamilyForm : public System::Windows::Forms::Form
{
public:
FamilyForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~FamilyForm()
{
if (components)
{
delete components;
}
}
private: My::MyPersonnelDataSet^ MyPersonnelDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 员工家庭成员BindingSource;
private: My::MyPersonnelDataSetTableAdapters::员工家庭成员TableAdapter^ 员工家庭成员TableAdapter;
private: System::Windows::Forms::BindingNavigator^ 员工家庭成员BindingNavigator;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorAddNewItem;
private: System::Windows::Forms::ToolStripLabel^ bindingNavigatorCountItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorDeleteItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveFirstItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMovePreviousItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator;
private: System::Windows::Forms::ToolStripTextBox^ bindingNavigatorPositionItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator1;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveNextItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveLastItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::ToolStripButton^ 员工家庭成员BindingNavigatorSaveItem;
private: System::Windows::Forms::ToolStripLabel^ 员工姓名ToolStripLabel;
private: System::Windows::Forms::ToolStripTextBox^ 员工姓名ToolStripTextBox;
private: System::Windows::Forms::ToolStripButton^ 查询ToolStripButton;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn9;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn10;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn8;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn7;
private: System::Windows::Forms::DataGridView^ 基本档案DataGridView;
private: System::Windows::Forms::TextBox^ 自编号TextBox;
private: System::Windows::Forms::TextBox^ 员工编号TextBox;
private: System::Windows::Forms::TextBox^ 员工姓名TextBox;
private: System::Windows::Forms::TextBox^ 家庭成员姓名TextBox;
private: System::Windows::Forms::ComboBox^ 与员工关系ComboBox;
private: System::Windows::Forms::TextBox^ 工作单位TextBox;
private: System::Windows::Forms::TextBox^ 担任职务TextBox;
private: System::Windows::Forms::TextBox^ 政治面貌TextBox;
private: System::Windows::Forms::TextBox^ 联系电话TextBox;
private: System::Windows::Forms::TextBox^ 其他TextBox;
private: System::Windows::Forms::DataGridView^ 员工家庭成员DataGridView;
private: System::ComponentModel::IContainer^ components;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::Windows::Forms::Label^ 自编号Label;
System::Windows::Forms::Label^ 员工编号Label;
System::Windows::Forms::Label^ 员工姓名Label;
System::Windows::Forms::Label^ 家庭成员姓名Label;
System::Windows::Forms::Label^ 与员工关系Label;
System::Windows::Forms::Label^ 工作单位Label;
System::Windows::Forms::Label^ 担任职务Label;
System::Windows::Forms::Label^ 政治面貌Label;
System::Windows::Forms::Label^ 联系电话Label;
System::Windows::Forms::Label^ 其他Label;
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(FamilyForm::typeid));
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle2 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
this->MyPersonnelDataSet = (gcnew My::MyPersonnelDataSet());
this->员工家庭成员BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->员工家庭成员TableAdapter = (gcnew My::MyPersonnelDataSetTableAdapters::员工家庭成员TableAdapter());
this->员工家庭成员BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
this->员工姓名ToolStripLabel = (gcnew System::Windows::Forms::ToolStripLabel());
this->员工姓名ToolStripTextBox = (gcnew System::Windows::Forms::ToolStripTextBox());
this->查询ToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->员工家庭成员BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn9 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn10 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn8 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn7 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->基本档案DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->自编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->员工编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->员工姓名TextBox = (gcnew System::Windows::Forms::TextBox());
this->家庭成员姓名TextBox = (gcnew System::Windows::Forms::TextBox());
this->与员工关系ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->工作单位TextBox = (gcnew System::Windows::Forms::TextBox());
this->担任职务TextBox = (gcnew System::Windows::Forms::TextBox());
this->政治面貌TextBox = (gcnew System::Windows::Forms::TextBox());
this->联系电话TextBox = (gcnew System::Windows::Forms::TextBox());
this->其他TextBox = (gcnew System::Windows::Forms::TextBox());
this->员工家庭成员DataGridView = (gcnew System::Windows::Forms::DataGridView());
自编号Label = (gcnew System::Windows::Forms::Label());
员工编号Label = (gcnew System::Windows::Forms::Label());
员工姓名Label = (gcnew System::Windows::Forms::Label());
家庭成员姓名Label = (gcnew System::Windows::Forms::Label());
与员工关系Label = (gcnew System::Windows::Forms::Label());
工作单位Label = (gcnew System::Windows::Forms::Label());
担任职务Label = (gcnew System::Windows::Forms::Label());
政治面貌Label = (gcnew System::Windows::Forms::Label());
联系电话Label = (gcnew System::Windows::Forms::Label());
其他Label = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->MyPersonnelDataSet))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->员工家庭成员BindingSource))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->员工家庭成员BindingNavigator))->BeginInit();
this->员工家庭成员BindingNavigator->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->基本档案DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->员工家庭成员DataGridView))->BeginInit();
this->SuspendLayout();
//
// 自编号Label
//
自编号Label->AutoSize = true;
自编号Label->Location = System::Drawing::Point(4, 130);
自编号Label->Name = L"自编号Label";
自编号Label->Size = System::Drawing::Size(47, 12);
自编号Label->TabIndex = 24;
自编号Label->Text = L"自编号:";
//
// 员工编号Label
//
员工编号Label->AutoSize = true;
员工编号Label->Location = System::Drawing::Point(4, 157);
员工编号Label->Name = L"员工编号Label";
员工编号Label->Size = System::Drawing::Size(59, 12);
员工编号Label->TabIndex = 26;
员工编号Label->Text = L"员工编号:";
//
// 员工姓名Label
//
员工姓名Label->AutoSize = true;
员工姓名Label->Location = System::Drawing::Point(4, 184);
员工姓名Label->Name = L"员工姓名Label";
员工姓名Label->Size = System::Drawing::Size(59, 12);
员工姓名Label->TabIndex = 28;
员工姓名Label->Text = L"员工姓名:";
//
// 家庭成员姓名Label
//
家庭成员姓名Label->AutoSize = true;
家庭成员姓名Label->Location = System::Drawing::Point(153, 131);
家庭成员姓名Label->Name = L"家庭成员姓名Label";
家庭成员姓名Label->Size = System::Drawing::Size(83, 12);
家庭成员姓名Label->TabIndex = 30;
家庭成员姓名Label->Text = L"家庭成员姓名:";
//
// 与员工关系Label
//
与员工关系Label->AutoSize = true;
与员工关系Label->Location = System::Drawing::Point(153, 158);
与员工关系Label->Name = L"与员工关系Label";
与员工关系Label->Size = System::Drawing::Size(71, 12);
与员工关系Label->TabIndex = 32;
与员工关系Label->Text = L"与员工关系:";
//
// 工作单位Label
//
工作单位Label->AutoSize = true;
工作单位Label->Location = System::Drawing::Point(153, 184);
工作单位Label->Name = L"工作单位Label";
工作单位Label->Size = System::Drawing::Size(59, 12);
工作单位Label->TabIndex = 34;
工作单位Label->Text = L"工作单位:";
//
// 担任职务Label
//
担任职务Label->AutoSize = true;
担任职务Label->Location = System::Drawing::Point(365, 130);
担任职务Label->Name = L"担任职务Label";
担任职务Label->Size = System::Drawing::Size(59, 12);
担任职务Label->TabIndex = 36;
担任职务Label->Text = L"担任职务:";
//
// 政治面貌Label
//
政治面貌Label->AutoSize = true;
政治面貌Label->Location = System::Drawing::Point(365, 157);
政治面貌Label->Name = L"政治面貌Label";
政治面貌Label->Size = System::Drawing::Size(59, 12);
政治面貌Label->TabIndex = 38;
政治面貌Label->Text = L"政治面貌:";
//
// 联系电话Label
//
联系电话Label->AutoSize = true;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -