⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tianjiashanchuyonghu.h

📁 采用VC++.net做的超市收银管理系统
💻 H
📖 第 1 页 / 共 2 页
字号:
#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> 
	/// tianjiashanchuyonghu 摘要
	///
	/// 警告: 如果您更改该类的名称,则将需要更改 
	///          与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的 
	///          “资源文件名”属性。  否则,
	///          设计器将不能与此窗体关联的
	///          本地化资源正确交互。
	/// </summary>
	public __gc class tianjiashanchuyonghu : public System::Windows::Forms::Form
	{
	public: 
		tianjiashanchuyonghu(void)
		{
			InitializeComponent();
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Button *  button3;
	private: System::Data::OleDb::OleDbCommand *  oleDbUpdateCommand1;
	private: System::Data::OleDb::OleDbConnection *  oleDbConnection1;
	private: System::Data::OleDb::OleDbDataAdapter *  oleDbDataAdapter1;
	private: System::Data::OleDb::OleDbCommand *  oleDbDeleteCommand1;
	private: System::Data::OleDb::OleDbCommand *  oleDbInsertCommand1;
	private: System::Data::OleDb::OleDbCommand *  oleDbSelectCommand1;
	private: System::Windows::Forms::Button *  button2;
	private: System::Windows::Forms::DataGrid *  dataGrid1;
	private: System::Windows::Forms::ComboBox *  comboBox1;
	private: System::Windows::Forms::TextBox *  textBox6;
	private: System::Windows::Forms::Label *  label7;
	private: System::Windows::Forms::TextBox *  textBox5;
	private: System::Windows::Forms::Label *  label6;

	private: System::Windows::Forms::Label *  label5;
	private: System::Windows::Forms::Label *  label4;

	private: System::Windows::Forms::Label *  label3;
	private: System::Windows::Forms::TextBox *  textBox2;
	private: System::Windows::Forms::Label *  label2;
	private: System::Windows::Forms::Button *  button1;
	private: System::Windows::Forms::TextBox *  textBox1;
	private: System::Windows::Forms::Label *  label1;
	private: System::Windows::Forms::ComboBox *  comboBox2;
	private: System::Windows::Forms::ComboBox *  comboBox3;
	private: System::Windows::Forms::DataGrid *  dataGrid2;

	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		System::ComponentModel::Container* components;

		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->button3 = new System::Windows::Forms::Button();
			this->oleDbUpdateCommand1 = new System::Data::OleDb::OleDbCommand();
			this->oleDbConnection1 = new System::Data::OleDb::OleDbConnection();
			this->oleDbDataAdapter1 = new System::Data::OleDb::OleDbDataAdapter();
			this->oleDbDeleteCommand1 = new System::Data::OleDb::OleDbCommand();
			this->oleDbInsertCommand1 = new System::Data::OleDb::OleDbCommand();
			this->oleDbSelectCommand1 = new System::Data::OleDb::OleDbCommand();
			this->button2 = new System::Windows::Forms::Button();
			this->dataGrid1 = new System::Windows::Forms::DataGrid();
			this->comboBox1 = new System::Windows::Forms::ComboBox();
			this->textBox6 = new System::Windows::Forms::TextBox();
			this->label7 = new System::Windows::Forms::Label();
			this->textBox5 = new System::Windows::Forms::TextBox();
			this->label6 = new System::Windows::Forms::Label();
			this->label5 = new System::Windows::Forms::Label();
			this->label4 = new System::Windows::Forms::Label();
			this->label3 = new System::Windows::Forms::Label();
			this->textBox2 = new System::Windows::Forms::TextBox();
			this->label2 = new System::Windows::Forms::Label();
			this->button1 = new System::Windows::Forms::Button();
			this->textBox1 = new System::Windows::Forms::TextBox();
			this->label1 = new System::Windows::Forms::Label();
			this->comboBox2 = new System::Windows::Forms::ComboBox();
			this->comboBox3 = new System::Windows::Forms::ComboBox();
			this->dataGrid2 = new System::Windows::Forms::DataGrid();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid1))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid2))->BeginInit();
			this->SuspendLayout();
			// 
			// 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(480, 128);
			this->button3->Name = S"button3";
			this->button3->Size = System::Drawing::Size(80, 32);
			this->button3->TabIndex = 56;
			this->button3->Text = S"删除";
			this->button3->Click += new System::EventHandler(this, button3_Click);
			// 
			// oleDbUpdateCommand1
			// 
			this->oleDbUpdateCommand1->CommandText = S"UPDATE 用户表 SET NID = \?, NAME = \?, AGE = \?, SEX = \?, COMPANY = \?, PASSWORD = \?, ST" 
				S"ATUS = \?, ADDS = \? WHERE (NID = \?)";
			this->oleDbUpdateCommand1->Connection = this->oleDbConnection1;
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"NID", System::Data::OleDb::OleDbType::VarChar, 10, S"NID"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"NAME", System::Data::OleDb::OleDbType::VarChar, 20, S"NAME"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"AGE", System::Data::OleDb::OleDbType::Integer, 4, S"AGE"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SEX", System::Data::OleDb::OleDbType::VarChar, 10, S"SEX"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"COMPANY", System::Data::OleDb::OleDbType::VarChar, 20, S"COMPANY"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"PASSWORD", System::Data::OleDb::OleDbType::Integer, 4, S"PASSWORD"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STATUS", System::Data::OleDb::OleDbType::Integer, 4, S"STATUS"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"ADDS", System::Data::OleDb::OleDbType::VarChar, 50, S"ADDS"));
			this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_NID", System::Data::OleDb::OleDbType::VarChar, 10, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"NID", 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";
			// 
			// 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*[8];
			__mcTemp__2[0] = new System::Data::Common::DataColumnMapping(S"NID", S"NID");
			__mcTemp__2[1] = new System::Data::Common::DataColumnMapping(S"NAME", S"NAME");
			__mcTemp__2[2] = new System::Data::Common::DataColumnMapping(S"AGE", S"AGE");
			__mcTemp__2[3] = new System::Data::Common::DataColumnMapping(S"SEX", S"SEX");
			__mcTemp__2[4] = new System::Data::Common::DataColumnMapping(S"COMPANY", S"COMPANY");
			__mcTemp__2[5] = new System::Data::Common::DataColumnMapping(S"PASSWORD", S"PASSWORD");
			__mcTemp__2[6] = new System::Data::Common::DataColumnMapping(S"STATUS", S"STATUS");
			__mcTemp__2[7] = new System::Data::Common::DataColumnMapping(S"ADDS", S"ADDS");
			__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 (NID = \?)";
			this->oleDbDeleteCommand1->Connection = this->oleDbConnection1;
			this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_NID", System::Data::OleDb::OleDbType::VarChar, 10, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"NID", System::Data::DataRowVersion::Original, 0));
			// 
			// oleDbInsertCommand1
			// 
			this->oleDbInsertCommand1->CommandText = S"INSERT INTO 用户表(NID, NAME, AGE, SEX, COMPANY, PASSWORD, STATUS, ADDS) VALUES (\?, " 
				S"\?, \?, \?, \?, \?, \?, \?)";
			this->oleDbInsertCommand1->Connection = this->oleDbConnection1;
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"NID", System::Data::OleDb::OleDbType::VarChar, 10, S"NID"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"NAME", System::Data::OleDb::OleDbType::VarChar, 20, S"NAME"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"AGE", System::Data::OleDb::OleDbType::Integer, 4, S"AGE"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SEX", System::Data::OleDb::OleDbType::VarChar, 10, S"SEX"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"COMPANY", System::Data::OleDb::OleDbType::VarChar, 20, S"COMPANY"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"PASSWORD", System::Data::OleDb::OleDbType::Integer, 4, S"PASSWORD"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"STATUS", System::Data::OleDb::OleDbType::Integer, 4, S"STATUS"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"ADDS", System::Data::OleDb::OleDbType::VarChar, 50, S"ADDS"));
			// 
			// oleDbSelectCommand1
			// 
			this->oleDbSelectCommand1->CommandText = S"SELECT NID, NAME, AGE, SEX, COMPANY, PASSWORD, STATUS, ADDS FROM 用户表";
			this->oleDbSelectCommand1->Connection = this->oleDbConnection1;
			// 
			// button2
			// 
			this->button2->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->button2->Location = System::Drawing::Point(392, 128);
			this->button2->Name = S"button2";
			this->button2->Size = System::Drawing::Size(80, 32);
			this->button2->TabIndex = 55;
			this->button2->Text = S"添加";
			this->button2->Click += new System::EventHandler(this, button2_Click);
			// 
			// dataGrid1
			// 
			this->dataGrid1->DataMember = S"";
			this->dataGrid1->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dataGrid1->Location = System::Drawing::Point(8, 184);
			this->dataGrid1->Name = S"dataGrid1";
			this->dataGrid1->Size = System::Drawing::Size(584, 240);
			this->dataGrid1->TabIndex = 54;
			this->dataGrid1->CurrentCellChanged += new System::EventHandler(this, dataGrid1_CurrentCellChanged);
			// 
			// comboBox1
			// 
			System::Object* __mcTemp__3[] = new System::Object*[3];
			__mcTemp__3[0] = S"销售员";
			__mcTemp__3[1] = S"采购员";
			__mcTemp__3[2] = S"管理员";
			this->comboBox1->Items->AddRange(__mcTemp__3);
			this->comboBox1->Location = System::Drawing::Point(344, 85);
			this->comboBox1->Name = S"comboBox1";
			this->comboBox1->Size = System::Drawing::Size(144, 20);
			this->comboBox1->TabIndex = 53;
			// 
			// textBox6
			// 
			this->textBox6->Location = System::Drawing::Point(96, 149);
			this->textBox6->Name = S"textBox6";
			this->textBox6->Size = System::Drawing::Size(288, 21);
			this->textBox6->TabIndex = 52;
			this->textBox6->Text = S"";
			// 
			// 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(16, 149);
			this->label7->Name = S"label7";
			this->label7->Size = System::Drawing::Size(80, 23);
			this->label7->TabIndex = 51;
			this->label7->Text = S"家庭住址:";
			this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// textBox5
			// 
			this->textBox5->Location = System::Drawing::Point(96, 117);
			this->textBox5->Name = S"textBox5";
			this->textBox5->Size = System::Drawing::Size(288, 21);
			this->textBox5->TabIndex = 50;
			this->textBox5->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(32, 117);
			this->label6->Name = S"label6";
			this->label6->Size = System::Drawing::Size(64, 23);
			this->label6->TabIndex = 49;
			this->label6->Text = S"身份证:";
			this->label6->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// 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(280, 80);
			this->label5->Name = S"label5";
			this->label5->Size = System::Drawing::Size(56, 23);
			this->label5->TabIndex = 47;
			this->label5->Text = S"部门:";
			this->label5->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// label4
			// 
			this->label4->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->label4->Location = System::Drawing::Point(44, 85);
			this->label4->Name = S"label4";
			this->label4->Size = System::Drawing::Size(56, 23);
			this->label4->TabIndex = 46;
			this->label4->Text = S"性别:";
			this->label4->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// label3
			// 
			this->label3->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->label3->Location = System::Drawing::Point(280, 48);
			this->label3->Name = S"label3";
			this->label3->Size = System::Drawing::Size(56, 23);
			this->label3->TabIndex = 44;
			this->label3->Text = S"年龄:";
			this->label3->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// textBox2
			// 
			this->textBox2->Location = System::Drawing::Point(96, 53);
			this->textBox2->Name = S"textBox2";
			this->textBox2->Size = System::Drawing::Size(144, 21);
			this->textBox2->TabIndex = 43;
			this->textBox2->Text = S"";
			// 
			// label2
			// 
			this->label2->Font = new System::Drawing::Font(S"宋体", 10.5F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->label2->Location = System::Drawing::Point(44, 53);
			this->label2->Name = S"label2";
			this->label2->Size = System::Drawing::Size(56, 23);
			this->label2->TabIndex = 42;
			this->label2->Text = S"姓名:";
			this->label2->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -