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

📄 xiaoshoutongji.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> 
	/// xiaoshoutongji 摘要
	///
	/// 警告: 如果您更改该类的名称,则将需要更改 
	///          与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的 
	///          “资源文件名”属性。  否则,
	///          设计器将不能与此窗体关联的
	///          本地化资源正确交互。
	/// </summary>
	public __gc class xiaoshoutongji : public System::Windows::Forms::Form
	{
	public: 
		xiaoshoutongji(void)
		{
			InitializeComponent();
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Label *  label8;
	private: System::Windows::Forms::Button *  button4;
	private: System::Windows::Forms::Button *  button3;
	private: System::Windows::Forms::Label *  label7;
	private: System::Windows::Forms::Button *  button2;
	private: System::Windows::Forms::TextBox *  textBox3;
	private: System::Windows::Forms::Label *  label6;
	private: System::Windows::Forms::Label *  label9;
	private: System::Data::OleDb::OleDbCommand *  oleDbInsertCommand1;
	private: System::Data::OleDb::OleDbConnection *  oleDbConnection1;
	private: System::Windows::Forms::TextBox *  textBox2;
	private: System::Data::OleDb::OleDbCommand *  oleDbSelectCommand1;
	private: System::Windows::Forms::DataGrid *  dataGrid1;
	private: System::Windows::Forms::Label *  label5;
	private: System::Windows::Forms::Button *  button1;
	private: System::Windows::Forms::Label *  label4;
	private: System::Windows::Forms::Label *  label3;
	private: System::Windows::Forms::TextBox *  textBox1;
	private: System::Windows::Forms::Label *  label2;
	private: System::Data::OleDb::OleDbDataAdapter *  oleDbDataAdapter1;
	private: System::Windows::Forms::DataGrid *  dataGrid2;
	private: System::Windows::Forms::TextBox *  textBox4;
	private: System::Windows::Forms::TextBox *  textBox5;
	private: System::Windows::Forms::Label *  label1;
	private: System::Windows::Forms::Label *  label10;

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

		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->label8 = new System::Windows::Forms::Label();
			this->button4 = new System::Windows::Forms::Button();
			this->button3 = new System::Windows::Forms::Button();
			this->label7 = new System::Windows::Forms::Label();
			this->button2 = new System::Windows::Forms::Button();
			this->textBox3 = new System::Windows::Forms::TextBox();
			this->label6 = new System::Windows::Forms::Label();
			this->label9 = new System::Windows::Forms::Label();
			this->oleDbInsertCommand1 = new System::Data::OleDb::OleDbCommand();
			this->oleDbConnection1 = new System::Data::OleDb::OleDbConnection();
			this->textBox2 = new System::Windows::Forms::TextBox();
			this->oleDbSelectCommand1 = new System::Data::OleDb::OleDbCommand();
			this->dataGrid1 = new System::Windows::Forms::DataGrid();
			this->label5 = new System::Windows::Forms::Label();
			this->button1 = new System::Windows::Forms::Button();
			this->label4 = new System::Windows::Forms::Label();
			this->label3 = new System::Windows::Forms::Label();
			this->textBox1 = new System::Windows::Forms::TextBox();
			this->label2 = new System::Windows::Forms::Label();
			this->oleDbDataAdapter1 = new System::Data::OleDb::OleDbDataAdapter();
			this->dataGrid2 = new System::Windows::Forms::DataGrid();
			this->textBox4 = new System::Windows::Forms::TextBox();
			this->textBox5 = new System::Windows::Forms::TextBox();
			this->label1 = new System::Windows::Forms::Label();
			this->label10 = new System::Windows::Forms::Label();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid1))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataGrid2))->BeginInit();
			this->SuspendLayout();
			// 
			// label8
			// 
			this->label8->Location = System::Drawing::Point(328, 56);
			this->label8->Name = S"label8";
			this->label8->Size = System::Drawing::Size(104, 23);
			this->label8->TabIndex = 62;
			this->label8->Text = S"(如:1900-1-1)";
			this->label8->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// button4
			// 
			this->button4->Font = new System::Drawing::Font(S"宋体", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->button4->Location = System::Drawing::Point(424, 120);
			this->button4->Name = S"button4";
			this->button4->Size = System::Drawing::Size(64, 32);
			this->button4->TabIndex = 60;
			this->button4->Text = S"统计";
			this->button4->Click += new System::EventHandler(this, button4_Click);
			// 
			// button3
			// 
			this->button3->Font = new System::Drawing::Font(S"宋体", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->button3->Location = System::Drawing::Point(504, 48);
			this->button3->Name = S"button3";
			this->button3->Size = System::Drawing::Size(64, 32);
			this->button3->TabIndex = 59;
			this->button3->Text = S"统计";
			this->button3->Click += new System::EventHandler(this, button3_Click);
			// 
			// label7
			// 
			this->label7->Location = System::Drawing::Point(224, 128);
			this->label7->Name = S"label7";
			this->label7->Size = System::Drawing::Size(104, 23);
			this->label7->TabIndex = 58;
			this->label7->Text = S"(如:1900-1-1)";
			this->label7->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// button2
			// 
			this->button2->Font = new System::Drawing::Font(S"宋体", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->button2->Location = System::Drawing::Point(344, 120);
			this->button2->Name = S"button2";
			this->button2->Size = System::Drawing::Size(64, 32);
			this->button2->TabIndex = 57;
			this->button2->Text = S"查询";
			this->button2->Click += new System::EventHandler(this, button2_Click);
			// 
			// textBox3
			// 
			this->textBox3->Location = System::Drawing::Point(72, 128);
			this->textBox3->Name = S"textBox3";
			this->textBox3->Size = System::Drawing::Size(120, 21);
			this->textBox3->TabIndex = 56;
			this->textBox3->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, 128);
			this->label6->Name = S"label6";
			this->label6->Size = System::Drawing::Size(56, 23);
			this->label6->TabIndex = 55;
			this->label6->Text = S"时间:";
			// 
			// label9
			// 
			this->label9->Font = new System::Drawing::Font(S"宋体", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->label9->Location = System::Drawing::Point(8, 16);
			this->label9->Name = S"label9";
			this->label9->Size = System::Drawing::Size(128, 23);
			this->label9->TabIndex = 61;
			this->label9->Text = S"个人销售统计:";
			this->label9->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			// 
			// oleDbInsertCommand1
			// 
			this->oleDbInsertCommand1->CommandText = S"INSERT INTO 消费表(SID, SNAME, SMODEL, SPRODUCER, SSELLPRICE, SQUANTITY, SWNAME, SDA" 
				S"TE, YID) VALUES (\?, \?, \?, \?, \?, \?, \?, \?, \?)";
			this->oleDbInsertCommand1->Connection = this->oleDbConnection1;
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SID", System::Data::OleDb::OleDbType::VarChar, 10, S"SID"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SNAME", System::Data::OleDb::OleDbType::VarChar, 20, S"SNAME"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SMODEL", System::Data::OleDb::OleDbType::VarChar, 10, S"SMODEL"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SPRODUCER", System::Data::OleDb::OleDbType::VarChar, 20, S"SPRODUCER"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SSELLPRICE", System::Data::OleDb::OleDbType::Double, 8, S"SSELLPRICE"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SQUANTITY", System::Data::OleDb::OleDbType::Integer, 4, S"SQUANTITY"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SWNAME", System::Data::OleDb::OleDbType::VarChar, 30, S"SWNAME"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"SDATE", System::Data::OleDb::OleDbType::DBTimeStamp, 8, S"SDATE"));
			this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"YID", System::Data::OleDb::OleDbType::VarChar, 10, S"YID"));
			// 
			// 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";
			// 
			// textBox2
			// 
			this->textBox2->Location = System::Drawing::Point(232, 56);
			this->textBox2->Name = S"textBox2";
			this->textBox2->Size = System::Drawing::Size(96, 21);
			this->textBox2->TabIndex = 54;
			this->textBox2->Text = S"";
			// 
			// oleDbSelectCommand1
			// 
			this->oleDbSelectCommand1->CommandText = S"SELECT SID, SNAME, SMODEL, SPRODUCER, SSELLPRICE, SQUANTITY, SWNAME, SDATE, YID F" 
				S"ROM 消费表";
			this->oleDbSelectCommand1->Connection = this->oleDbConnection1;
			// 
			// dataGrid1
			// 
			this->dataGrid1->DataMember = S"";
			this->dataGrid1->HeaderForeColor = System::Drawing::SystemColors::ControlText;
			this->dataGrid1->Location = System::Drawing::Point(24, 152);
			this->dataGrid1->Name = S"dataGrid1";
			this->dataGrid1->Size = System::Drawing::Size(648, 320);
			this->dataGrid1->TabIndex = 53;
			// 
			// label5
			// 
			this->label5->Font = new System::Drawing::Font(S"宋体", 12, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->label5->Location = System::Drawing::Point(8, 96);
			this->label5->Name = S"label5";
			this->label5->Size = System::Drawing::Size(112, 23);
			this->label5->TabIndex = 52;
			this->label5->Text = S"总销售统计:";
			// 
			// button1
			// 
			this->button1->Font = new System::Drawing::Font(S"宋体", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, (System::Byte)134);
			this->button1->Location = System::Drawing::Point(432, 48);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(64, 32);
			this->button1->TabIndex = 51;
			this->button1->Text = S"查询";

⌨️ 快捷键说明

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