📄 priceform.h
字号:
//文件名:PriceForm.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>
/// PriceForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class PriceForm : public System::Windows::Forms::Form
{
public:
PriceForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~PriceForm()
{
if (components)
{
delete components;
}
}
private: My::MyCRMDataSet^ MyCRMDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 产品价格BindingSource;
private: My::MyCRMDataSetTableAdapters::产品价格TableAdapter^ 产品价格TableAdapter;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveLastItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::ToolStripButton^ 产品价格BindingNavigatorSaveItem;
private: System::Windows::Forms::ToolStripTextBox^ bindingNavigatorPositionItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator1;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveNextItem;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator;
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::TextBox^ 说明TextBox;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorDeleteItem;
private: System::Windows::Forms::ToolStripLabel^ bindingNavigatorCountItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMovePreviousItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveFirstItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorAddNewItem;
private: System::Windows::Forms::DataGridView^ 产品价格DataGridView;
private: System::Windows::Forms::BindingNavigator^ 产品价格BindingNavigator;
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(PriceForm::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;
this->MyCRMDataSet = (gcnew My::MyCRMDataSet());
this->产品价格BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->产品价格TableAdapter = (gcnew My::MyCRMDataSetTableAdapters::产品价格TableAdapter());
this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->产品价格BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
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->说明TextBox = (gcnew System::Windows::Forms::TextBox());
this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
this->产品价格DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->产品价格BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
自编号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();
//
// 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;
//
// bindingNavigatorMoveLastItem
//
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"bindingNavigatorSeparator2";
this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
//
// 产品价格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, &PriceForm::产品价格BindingNavigatorSaveItem_Click);
//
// bindingNavigatorPositionItem
//
this->bindingNavigatorPositionItem->AccessibleName = L"位置";
this->bindingNavigatorPositionItem->AutoSize = false;
this->bindingNavigatorPositionItem->Name = L"bindingNavigatorPositionItem";
this->bindingNavigatorPositionItem->Size = System::Drawing::Size(50, 21);
this->bindingNavigatorPositionItem->Text = L"0";
this->bindingNavigatorPositionItem->ToolTipText = L"当前位置";
//
// bindingNavigatorSeparator1
//
this->bindingNavigatorSeparator1->Name = L"bindingNavigatorSeparator1";
this->bindingNavigatorSeparator1->Size = System::Drawing::Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this->bindingNavigatorMoveNextItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveNextItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveNextItem.Image")));
this->bindingNavigatorMoveNextItem->Name = L"bindingNavigatorMoveNextItem";
this->bindingNavigatorMoveNextItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveNextItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveNextItem->Text = L"移到下一条记录";
//
// dataGridViewTextBoxColumn4
//
this->dataGridViewTextBoxColumn4->DataPropertyName = L"单价";
this->dataGridViewTextBoxColumn4->HeaderText = L"单价";
this->dataGridViewTextBoxColumn4->Name = L"dataGridViewTextBoxColumn4";
this->dataGridViewTextBoxColumn4->ReadOnly = true;
//
// dataGridViewTextBoxColumn5
//
this->dataGridViewTextBoxColumn5->DataPropertyName = L"折扣比";
this->dataGridViewTextBoxColumn5->HeaderText = L"折扣比";
this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
this->dataGridViewTextBoxColumn5->ReadOnly = true;
//
// dataGridViewTextBoxColumn6
//
this->dataGridViewTextBoxColumn6->DataPropertyName = L"说明";
this->dataGridViewTextBoxColumn6->HeaderText = L"说明";
this->dataGridViewTextBoxColumn6->Name = L"dataGridViewTextBoxColumn6";
this->dataGridViewTextBoxColumn6->ReadOnly = true;
//
// dataGridViewTextBoxColumn1
//
this->dataGridViewTextBoxColumn1->DataPropertyName = L"自编号";
this->dataGridViewTextBoxColumn1->HeaderText = L"自编号";
this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
this->dataGridViewTextBoxColumn1->ReadOnly = 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;
//
// bindingNavigatorSeparator
//
this->bindingNavigatorSeparator->Name = L"bindingNavigatorSeparator";
this->bindingNavigatorSeparator->Size = System::Drawing::Size(6, 25);
//
// 自编号Label
//
自编号Label->AutoSize = true;
自编号Label->Location = System::Drawing::Point(3, 31);
自编号Label->Name = L"自编号Label";
自编号Label->Size = System::Drawing::Size(47, 12);
自编号Label->TabIndex = 16;
自编号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(68, 28);
this->自编号TextBox->Name = L"自编号TextBox";
this->自编号TextBox->ReadOnly = true;
this->自编号TextBox->Size = System::Drawing::Size(200, 21);
this->自编号TextBox->TabIndex = 17;
//
// 产品名称Label
//
产品名称Label->AutoSize = true;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -