📄 leaveform.h
字号:
//文件名:LeaveForm.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>
/// LeaveForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class LeaveForm : public System::Windows::Forms::Form
{
public:
LeaveForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~LeaveForm()
{
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^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn7;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::TextBox^ 自编号TextBox;
private: System::Windows::Forms::TextBox^ 员工编号TextBox;
private: System::Windows::Forms::TextBox^ 员工姓名TextBox;
private: System::Windows::Forms::DateTimePicker^ 离职时间DateTimePicker;
private: System::Windows::Forms::RichTextBox^ 离职原因RichTextBox;
private: System::Windows::Forms::TextBox^ 批准人TextBox;
private: System::Windows::Forms::TextBox^ 说明TextBox;
private: System::Windows::Forms::DataGridView^ 基本档案DataGridView;
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::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(LeaveForm::typeid));
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::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->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->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
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->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
this->离职管理BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->查询ToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
this->员工姓名ToolStripTextBox = (gcnew System::Windows::Forms::ToolStripTextBox());
this->员工姓名ToolStripLabel = (gcnew System::Windows::Forms::ToolStripLabel());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn7 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->自编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->员工编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->员工姓名TextBox = (gcnew System::Windows::Forms::TextBox());
this->离职时间DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->离职原因RichTextBox = (gcnew System::Windows::Forms::RichTextBox());
this->批准人TextBox = (gcnew System::Windows::Forms::TextBox());
this->说明TextBox = (gcnew System::Windows::Forms::TextBox());
this->基本档案DataGridView = (gcnew System::Windows::Forms::DataGridView());
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());
(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();
//
// MyPersonnelDataSet
//
this->MyPersonnelDataSet->DataSetName = L"MyPersonnelDataSet";
this->MyPersonnelDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
//
// 离职管理BindingSource
//
this->离职管理BindingSource->DataMember = L"离职管理";
this->离职管理BindingSource->DataSource = this->MyPersonnelDataSet;
//
// 离职管理TableAdapter
//
this->离职管理TableAdapter->ClearBeforeFill = 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^ >(15) {this->员工姓名ToolStripLabel,
this->员工姓名ToolStripTextBox, this->查询ToolStripButton, 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 = 0;
this->离职管理BindingNavigator->Text = L"bindingNavigator1";
//
// bindingNavigatorMoveFirstItem
//
this->bindingNavigatorMoveFirstItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveFirstItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveFirstItem.Image")));
this->bindingNavigatorMoveFirstItem->Name = L"bindingNavigatorMoveFirstItem";
this->bindingNavigatorMoveFirstItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveFirstItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveFirstItem->Text = L"移到第一条记录";
//
// bindingNavigatorMovePreviousItem
//
this->bindingNavigatorMovePreviousItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMovePreviousItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMovePreviousItem.Image")));
this->bindingNavigatorMovePreviousItem->Name = L"bindingNavigatorMovePreviousItem";
this->bindingNavigatorMovePreviousItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMovePreviousItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMovePreviousItem->Text = L"移到上一条记录";
//
// bindingNavigatorSeparator
//
this->bindingNavigatorSeparator->Name = L"bindingNavigatorSeparator";
this->bindingNavigatorSeparator->Size = System::Drawing::Size(6, 25);
//
// bindingNavigatorPositionItem
//
this->bindingNavigatorPositionItem->AccessibleName = L"位置";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -