📄 goodsform.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;
namespace 宾馆酒店管理系统 {
/// <summary>
/// GoodsForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class GoodsForm : public System::Windows::Forms::Form
{
public:
GoodsForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~GoodsForm()
{
if (components)
{
delete components;
}
}
private: My::MyHotelDataSet^ MyHotelDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 消费物品BindingSource;
private: My::MyHotelDataSetTableAdapters::消费物品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::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridView^ 消费物品DataGridView;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
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::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(GoodsForm::typeid));
System::Windows::Forms::DataGridViewCellStyle^ dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
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->MyHotelDataSet = (gcnew My::MyHotelDataSet());
this->消费物品BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->消费物品TableAdapter = (gcnew My::MyHotelDataSetTableAdapters::消费物品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->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->消费物品DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn6 = (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->类别TextBox = (gcnew System::Windows::Forms::TextBox());
this->产地TextBox = (gcnew System::Windows::Forms::TextBox());
this->说明TextBox = (gcnew System::Windows::Forms::TextBox());
名称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->MyHotelDataSet))->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();
this->SuspendLayout();
//
// MyHotelDataSet
//
this->MyHotelDataSet->DataSetName = L"MyHotelDataSet";
this->MyHotelDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
//
// 消费物品BindingSource
//
this->消费物品BindingSource->DataMember = L"消费物品";
this->消费物品BindingSource->DataSource = this->MyHotelDataSet;
//
// 消费物品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^ >(12) {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"位置";
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"当前位置";
//
// bindingNavigatorCountItem
//
this->bindingNavigatorCountItem->Name = L"bindingNavigatorCountItem";
this->bindingNavigatorCountItem->Size = System::Drawing::Size(35, 22);
this->bindingNavigatorCountItem->Text = L"/ {0}";
this->bindingNavigatorCountItem->ToolTipText = L"总项数";
//
// bindingNavigatorSeparator1
//
this->bindingNavigatorSeparator1->Name = L"bindingNavigatorSeparator";
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"移到下一条记录";
//
// 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -