📄 documentform.h
字号:
//文件名:DocumentForm.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>
/// DocumentForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class DocumentForm : public System::Windows::Forms::Form
{
public:
DocumentForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~DocumentForm()
{
if (components)
{
delete components;
}
}
private: My::MyCRMDataSet^ MyCRMDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 内部文档BindingSource;
private: My::MyCRMDataSetTableAdapters::内部文档TableAdapter^ 内部文档TableAdapter;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::Button^ 显示文件Button;
private: System::Windows::Forms::ToolStripButton^ 内部文档BindingNavigatorSaveItem;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::Button^ 选择文件Button;
private: System::Windows::Forms::TextBox^ 自编号TextBox;
private: System::Windows::Forms::DateTimePicker^ 文档日期DateTimePicker;
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::Windows::Forms::ToolStripButton^ bindingNavigatorMoveLastItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorAddNewItem;
private: System::Windows::Forms::BindingNavigator^ 内部文档BindingNavigator;
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::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::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(DocumentForm::typeid));
this->MyCRMDataSet = (gcnew My::MyCRMDataSet());
this->内部文档BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->内部文档TableAdapter = (gcnew My::MyCRMDataSetTableAdapters::内部文档TableAdapter());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->显示文件Button = (gcnew System::Windows::Forms::Button());
this->内部文档BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->选择文件Button = (gcnew System::Windows::Forms::Button());
this->自编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->文档日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
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());
this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
this->内部文档BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
this->bindingNavigatorDeleteItem = (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());
自编号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->MyCRMDataSet))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->内部文档BindingSource))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->内部文档DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->内部文档BindingNavigator))->BeginInit();
this->内部文档BindingNavigator->SuspendLayout();
this->SuspendLayout();
//
// 自编号Label
//
自编号Label->AutoSize = true;
自编号Label->Location = System::Drawing::Point(3, 30);
自编号Label->Name = L"自编号Label";
自编号Label->Size = System::Drawing::Size(47, 12);
自编号Label->TabIndex = 22;
自编号Label->Text = L"自编号:";
//
// 文档日期Label
//
文档日期Label->AutoSize = true;
文档日期Label->Location = System::Drawing::Point(3, 58);
文档日期Label->Name = L"文档日期Label";
文档日期Label->Size = System::Drawing::Size(59, 12);
文档日期Label->TabIndex = 24;
文档日期Label->Text = L"文档日期:";
//
// 文档标题Label
//
文档标题Label->AutoSize = true;
文档标题Label->Location = System::Drawing::Point(3, 84);
文档标题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(278, 30);
内容摘要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(3, 112);
存放路径Label->Name = L"存放路径Label";
存放路径Label->Size = System::Drawing::Size(83, 12);
存放路径Label->TabIndex = 30;
存放路径Label->Text = L"文档存放路径:";
//
// MyCRMDataSet
//
this->MyCRMDataSet->DataSetName = L"MyCRMDataSet";
this->MyCRMDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
//
// 内部文档BindingSource
//
this->内部文档BindingSource->DataMember = L"内部文档";
this->内部文档BindingSource->DataSource = this->MyCRMDataSet;
//
// 内部文档TableAdapter
//
this->内部文档TableAdapter->ClearBeforeFill = 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;
//
// dataGridViewTextBoxColumn1
//
this->dataGridViewTextBoxColumn1->DataPropertyName = L"自编号";
this->dataGridViewTextBoxColumn1->HeaderText = L"自编号";
this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
this->dataGridViewTextBoxColumn1->ReadOnly = true;
//
// bindingNavigatorSeparator2
//
this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator2";
this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
//
// 显示文件Button
//
this->显示文件Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"显示文件Button.Image")));
this->显示文件Button->Location = System::Drawing::Point(180, 108);
this->显示文件Button->Name = L"显示文件Button";
this->显示文件Button->Size = System::Drawing::Size(88, 23);
this->显示文件Button->TabIndex = 33;
this->显示文件Button->Text = L"显示文件";
this->显示文件Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
this->显示文件Button->UseVisualStyleBackColor = true;
this->显示文件Button->Click += gcnew System::EventHandler(this, &DocumentForm::显示文件Button_Click);
//
// 内部文档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, &DocumentForm::内部文档BindingNavigatorSaveItem_Click);
//
// dataGridViewTextBoxColumn5
//
this->dataGridViewTextBoxColumn5->DataPropertyName = L"存放路径";
this->dataGridViewTextBoxColumn5->HeaderText = L"存放路径";
this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
this->dataGridViewTextBoxColumn5->ReadOnly = true;
//
// 选择文件Button
//
this->选择文件Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"选择文件Button.Image")));
this->选择文件Button->Location = System::Drawing::Point(92, 108);
this->选择文件Button->Name = L"选择文件Button";
this->选择文件Button->Size = System::Drawing::Size(82, 23);
this->选择文件Button->TabIndex = 32;
this->选择文件Button->Text = L"选择文件";
this->选择文件Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
this->选择文件Button->UseVisualStyleBackColor = true;
this->选择文件Button->Click += gcnew System::EventHandler(this, &DocumentForm::选择文件Button_Click);
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -