📄 xinzengshanchuwupin.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 ruanjian
{
/// <summary>
/// xinzengshanchuwupin 摘要
///
/// 警告: 如果您更改该类的名称,则将需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class xinzengshanchuwupin : public System::Windows::Forms::Form
{
public:
xinzengshanchuwupin(void)
{
InitializeComponent();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::TextBox * textBox5;
private: System::Windows::Forms::TextBox * textBox4;
private: System::Windows::Forms::Label * label8;
private: System::Windows::Forms::Label * label7;
private: System::Windows::Forms::TextBox * textBox8;
private: System::Windows::Forms::Button * button3;
private: System::Data::OleDb::OleDbDataAdapter * oleDbDataAdapter1;
private: System::Data::OleDb::OleDbCommand * oleDbDeleteCommand1;
private: System::Data::OleDb::OleDbConnection * oleDbConnection1;
private: System::Data::OleDb::OleDbCommand * oleDbInsertCommand1;
private: System::Data::OleDb::OleDbCommand * oleDbSelectCommand1;
private: System::Data::OleDb::OleDbCommand * oleDbUpdateCommand1;
private: System::Windows::Forms::Label * label5;
private: System::Windows::Forms::Label * label6;
private: System::Windows::Forms::TextBox * textBox7;
private: System::Windows::Forms::TextBox * textBox6;
private: System::Windows::Forms::TextBox * textBox3;
private: System::Windows::Forms::TextBox * textBox2;
private: System::Windows::Forms::TextBox * textBox1;
private: System::Windows::Forms::Button * button2;
private: System::Windows::Forms::DataGrid * dataGrid1;
private: System::Windows::Forms::Label * label4;
private: System::Windows::Forms::Label * label3;
private: System::Windows::Forms::Label * label2;
private: System::Windows::Forms::Button * button1;
private: System::Windows::Forms::Label * label1;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container* components;
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->textBox5 = new System::Windows::Forms::TextBox();
this->textBox4 = new System::Windows::Forms::TextBox();
this->label8 = new System::Windows::Forms::Label();
this->label7 = new System::Windows::Forms::Label();
this->textBox8 = new System::Windows::Forms::TextBox();
this->button3 = new System::Windows::Forms::Button();
this->oleDbDataAdapter1 = new System::Data::OleDb::OleDbDataAdapter();
this->oleDbDeleteCommand1 = new System::Data::OleDb::OleDbCommand();
this->oleDbConnection1 = new System::Data::OleDb::OleDbConnection();
this->oleDbInsertCommand1 = new System::Data::OleDb::OleDbCommand();
this->oleDbSelectCommand1 = new System::Data::OleDb::OleDbCommand();
this->oleDbUpdateCommand1 = new System::Data::OleDb::OleDbCommand();
this->label5 = new System::Windows::Forms::Label();
this->label6 = new System::Windows::Forms::Label();
this->textBox7 = new System::Windows::Forms::TextBox();
this->textBox6 = new System::Windows::Forms::TextBox();
this->textBox3 = new System::Windows::Forms::TextBox();
this->textBox2 = new System::Windows::Forms::TextBox();
this->textBox1 = new System::Windows::Forms::TextBox();
this->button2 = new System::Windows::Forms::Button();
this->dataGrid1 = new System::Windows::Forms::DataGrid();
this->label4 = new System::Windows::Forms::Label();
this->label3 = new System::Windows::Forms::Label();
this->label2 = new System::Windows::Forms::Label();
this->button1 = new System::Windows::Forms::Button();
this->label1 = new System::Windows::Forms::Label();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGrid1))->BeginInit();
this->SuspendLayout();
//
// textBox5
//
this->textBox5->Location = System::Drawing::Point(136, 144);
this->textBox5->Name = S"textBox5";
this->textBox5->Size = System::Drawing::Size(144, 21);
this->textBox5->TabIndex = 70;
this->textBox5->Text = S"";
//
// textBox4
//
this->textBox4->Location = System::Drawing::Point(128, 104);
this->textBox4->Name = S"textBox4";
this->textBox4->Size = System::Drawing::Size(448, 21);
this->textBox4->TabIndex = 68;
this->textBox4->Text = S"";
//
// label8
//
this->label8->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
this->label8->Location = System::Drawing::Point(296, 174);
this->label8->Name = S"label8";
this->label8->Size = System::Drawing::Size(112, 23);
this->label8->TabIndex = 78;
this->label8->Text = S"最高库存数量:";
this->label8->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// label7
//
this->label7->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
this->label7->Location = System::Drawing::Point(24, 176);
this->label7->Name = S"label7";
this->label7->Size = System::Drawing::Size(112, 23);
this->label7->TabIndex = 71;
this->label7->Text = S"库存底数提醒:";
this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// textBox8
//
this->textBox8->Location = System::Drawing::Point(416, 176);
this->textBox8->Name = S"textBox8";
this->textBox8->Size = System::Drawing::Size(160, 21);
this->textBox8->TabIndex = 79;
this->textBox8->Text = S"";
//
// button3
//
this->button3->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
this->button3->Location = System::Drawing::Point(504, 16);
this->button3->Name = S"button3";
this->button3->Size = System::Drawing::Size(80, 32);
this->button3->TabIndex = 76;
this->button3->Text = S"删除";
this->button3->Click += new System::EventHandler(this, button3_Click);
//
// oleDbDataAdapter1
//
this->oleDbDataAdapter1->DeleteCommand = this->oleDbDeleteCommand1;
this->oleDbDataAdapter1->InsertCommand = this->oleDbInsertCommand1;
this->oleDbDataAdapter1->SelectCommand = this->oleDbSelectCommand1;
System::Data::Common::DataTableMapping* __mcTemp__1[] = new System::Data::Common::DataTableMapping*[1];
System::Data::Common::DataColumnMapping* __mcTemp__2[] = new System::Data::Common::DataColumnMapping*[10];
__mcTemp__2[0] = new System::Data::Common::DataColumnMapping(S"WID", S"WID");
__mcTemp__2[1] = new System::Data::Common::DataColumnMapping(S"WNAME", S"WNAME");
__mcTemp__2[2] = new System::Data::Common::DataColumnMapping(S"MODEL", S"MODEL");
__mcTemp__2[3] = new System::Data::Common::DataColumnMapping(S"PRODUCER", S"PRODUCER");
__mcTemp__2[4] = new System::Data::Common::DataColumnMapping(S"SELLPRICE", S"SELLPRICE");
__mcTemp__2[5] = new System::Data::Common::DataColumnMapping(S"STOCKPRICE", S"STOCKPRICE");
__mcTemp__2[6] = new System::Data::Common::DataColumnMapping(S"STOCK", S"STOCK");
__mcTemp__2[7] = new System::Data::Common::DataColumnMapping(S"LASTSTOCK", S"LASTSTOCK");
__mcTemp__2[8] = new System::Data::Common::DataColumnMapping(S"MAXSTOCK", S"MAXSTOCK");
__mcTemp__2[9] = new System::Data::Common::DataColumnMapping(S"STOCKCHA", S"STOCKCHA");
__mcTemp__1[0] = new System::Data::Common::DataTableMapping(S"Table", S"物品表", __mcTemp__2);
this->oleDbDataAdapter1->TableMappings->AddRange(__mcTemp__1);
this->oleDbDataAdapter1->UpdateCommand = this->oleDbUpdateCommand1;
//
// oleDbDeleteCommand1
//
this->oleDbDeleteCommand1->CommandText = S"DELETE FROM 物品表 WHERE (WID = \?)";
this->oleDbDeleteCommand1->Connection = this->oleDbConnection1;
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_WID", System::Data::OleDb::OleDbType::VarChar, 10, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"WID", System::Data::DataRowVersion::Original, 0));
//
// oleDbConnection1
//
this->oleDbConnection1->ConnectionString = S"Integrated Security=SSPI;Packet Size=4096;Data Source=4B2E371A2A9F47E;Tag with co"
S"lumn collation when possible=False;Initial Catalog=超市收银数据库;Use Procedure for Pre"
S"pare=1;Auto Translate=True;Persist Security Info=False;Provider=\"SQLOLEDB.1\";Wor"
S"kstation ID=4B2E371A2A9F47E;Use Encryption for Data=False";
//
// oleDbInsertCommand1
//
this->oleDbInsertCommand1->CommandText = S"INSERT INTO 物品表(WID, WNAME, MODEL, PRODUCER, SELLPRICE, STOCKPRICE, STOCK, LASTST"
S"OCK, MAXSTOCK, STOCKCHA) VALUES (\?, \?, \?, \?, \?, \?, \?, \?, \?, \?)";
this->oleDbInsertCommand1->Connection = this->oleDbConnection1;
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"WID", System::Data::OleDb::OleDbType::VarChar, 10, S"WID"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"WNAME", System::Data::OleDb::OleDbType::VarChar, 30, S"WNAME"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"MODEL", System::Data::OleDb::OleDbType::VarChar, 10, S"MODEL"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"PRODUCER", System::Data::OleDb::OleDbType::VarChar, 20, S"PRODUCER"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SELLPRICE", System::Data::OleDb::OleDbType::Double, 8, S"SELLPRICE"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STOCKPRICE", System::Data::OleDb::OleDbType::Double, 8, S"STOCKPRICE"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STOCK", System::Data::OleDb::OleDbType::Integer, 4, S"STOCK"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"LASTSTOCK", System::Data::OleDb::OleDbType::Integer, 4, S"LASTSTOCK"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"MAXSTOCK", System::Data::OleDb::OleDbType::Integer, 4, S"MAXSTOCK"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STOCKCHA", System::Data::OleDb::OleDbType::Integer, 4, S"STOCKCHA"));
//
// oleDbSelectCommand1
//
this->oleDbSelectCommand1->CommandText = S"SELECT WID, WNAME, MODEL, PRODUCER, SELLPRICE, STOCKPRICE, STOCK, LASTSTOCK, MAXS"
S"TOCK, STOCKCHA FROM 物品表";
this->oleDbSelectCommand1->Connection = this->oleDbConnection1;
//
// oleDbUpdateCommand1
//
this->oleDbUpdateCommand1->CommandText = S"UPDATE 物品表 SET WID = \?, WNAME = \?, MODEL = \?, PRODUCER = \?, SELLPRICE = \?, STOCKP"
S"RICE = \?, STOCK = \?, LASTSTOCK = \?, MAXSTOCK = \?, STOCKCHA = \? WHERE (WID = \?)";
this->oleDbUpdateCommand1->Connection = this->oleDbConnection1;
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"WID", System::Data::OleDb::OleDbType::VarChar, 10, S"WID"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"WNAME", System::Data::OleDb::OleDbType::VarChar, 30, S"WNAME"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"MODEL", System::Data::OleDb::OleDbType::VarChar, 10, S"MODEL"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"PRODUCER", System::Data::OleDb::OleDbType::VarChar, 20, S"PRODUCER"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SELLPRICE", System::Data::OleDb::OleDbType::Double, 8, S"SELLPRICE"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STOCKPRICE", System::Data::OleDb::OleDbType::Double, 8, S"STOCKPRICE"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STOCK", System::Data::OleDb::OleDbType::Integer, 4, S"STOCK"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"LASTSTOCK", System::Data::OleDb::OleDbType::Integer, 4, S"LASTSTOCK"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"MAXSTOCK", System::Data::OleDb::OleDbType::Integer, 4, S"MAXSTOCK"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STOCKCHA", System::Data::OleDb::OleDbType::Integer, 4, S"STOCKCHA"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_WID", System::Data::OleDb::OleDbType::VarChar, 10, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"WID", System::Data::DataRowVersion::Original, 0));
//
// label5
//
this->label5->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
this->label5->Location = System::Drawing::Point(24, 144);
this->label5->Name = S"label5";
this->label5->Size = System::Drawing::Size(112, 23);
this->label5->TabIndex = 67;
this->label5->Text = S"物品出售价格:";
//
// label6
//
this->label6->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
this->label6->Location = System::Drawing::Point(296, 144);
this->label6->Name = S"label6";
this->label6->Size = System::Drawing::Size(120, 23);
this->label6->TabIndex = 69;
this->label6->Text = S"物品进货价格:";
this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// textBox7
//
this->textBox7->Location = System::Drawing::Point(136, 176);
this->textBox7->Name = S"textBox7";
this->textBox7->Size = System::Drawing::Size(144, 21);
this->textBox7->TabIndex = 77;
this->textBox7->Text = S"";
//
// textBox6
//
this->textBox6->Location = System::Drawing::Point(416, 144);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -