📄 contractform.h
字号:
//文件名:ContractForm.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>
/// ContractForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ContractForm : public System::Windows::Forms::Form
{
public:
ContractForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ContractForm()
{
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^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn7;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::ToolStripButton^ 客户合同BindingNavigatorSaveItem;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::Button^ 显示文件Button;
private: System::Windows::Forms::Button^ 选择文件Button;
private: System::Windows::Forms::TextBox^ 自编号TextBox;
private: System::Windows::Forms::ComboBox^ 客户名称ComboBox;
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::TextBox^ 说明TextBox;
private: System::Windows::Forms::DataGridView^ 客户合同DataGridView;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorAddNewItem;
private: System::Windows::Forms::BindingNavigator^ 客户合同BindingNavigator;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorDeleteItem;
private: System::Windows::Forms::ToolStripLabel^ toolStripLabel1;
private: System::Windows::Forms::ToolStripComboBox^ 客户名称ToolStripComboBox;
private: System::Windows::Forms::ToolStripButton^ 查询ToolStripButton;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveFirstItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMovePreviousItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveNextItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveLastItem;
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::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(ContractForm::typeid));
this->MyCRMDataSet = (gcnew My::MyCRMDataSet());
this->客户合同BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->客户合同TableAdapter = (gcnew My::MyCRMDataSetTableAdapters::客户合同TableAdapter());
this->dataGridViewTextBoxColumn5 = (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->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->客户合同BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->显示文件Button = (gcnew System::Windows::Forms::Button());
this->选择文件Button = (gcnew System::Windows::Forms::Button());
this->自编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->客户名称ComboBox = (gcnew System::Windows::Forms::ComboBox());
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->说明TextBox = (gcnew System::Windows::Forms::TextBox());
this->客户合同DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
this->客户合同BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
this->toolStripLabel1 = (gcnew System::Windows::Forms::ToolStripLabel());
this->客户名称ToolStripComboBox = (gcnew System::Windows::Forms::ToolStripComboBox());
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->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMoveLastItem = (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());
存放路径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(2, 30);
自编号Label->Name = L"自编号Label";
自编号Label->Size = System::Drawing::Size(47, 12);
自编号Label->TabIndex = 20;
自编号Label->Text = L"自编号:";
//
// 客户名称Label
//
客户名称Label->AutoSize = true;
客户名称Label->Location = System::Drawing::Point(2, 57);
客户名称Label->Name = L"客户名称Label";
客户名称Label->Size = System::Drawing::Size(59, 12);
客户名称Label->TabIndex = 22;
客户名称Label->Text = L"客户名称:";
//
// 合同日期Label
//
合同日期Label->AutoSize = true;
合同日期Label->Location = System::Drawing::Point(2, 84);
合同日期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(2, 110);
合同名称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(2, 137);
内容摘要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(278, 30);
存放路径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(278, 87);
说明Label->Name = L"说明Label";
说明Label->Size = System::Drawing::Size(35, 12);
说明Label->TabIndex = 32;
说明Label->Text = L"说明:";
//
// MyCRMDataSet
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -