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

📄 form1.h

📁 进销存管理系统
💻 H
字号:
#pragma once


namespace My
{
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary> 
	/// Form1 摘要
	///
	/// 警告: 如果您更改该类的名称,则需要更改 
	///          与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的 
	///          “资源文件名”属性。  否则,
	///          设计器将不能与此窗体关联的
	///          本地化资源正确交互。
	/// </summary>
	public __gc class FormLogin : public System::Windows::Forms::Form
	{	
	public:
		FormLogin(void)
		{
			InitializeComponent();
			UserName->
		}
  
	protected:
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Label *  label1;
	private: System::Windows::Forms::Label *  label2;
	private: System::Windows::Forms::Label *  label3;





	private: System::Windows::Forms::Button *  btnLogin;
	private: System::Windows::Forms::TextBox *  TBoxUserID;
	private: System::Windows::Forms::TextBox *  TBoxUserName;
	private: System::Windows::Forms::TextBox *  TBoxPassword;
	private: System::Windows::Forms::Button *  btnCancel;
	private: System::Data::SqlClient::SqlDataAdapter *  sqlDataAdapter1;
	private: System::Data::SqlClient::SqlCommand *  sqlSelectCommand1;
	private: System::Data::SqlClient::SqlConnection *  sqlConnection1;
	private: My::DataSet1 *  dataSet11;

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

		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			System::Resources::ResourceManager *  resources = new System::Resources::ResourceManager(__typeof(My::FormLogin));
			this->label1 = new System::Windows::Forms::Label();
			this->label2 = new System::Windows::Forms::Label();
			this->label3 = new System::Windows::Forms::Label();
			this->TBoxUserID = new System::Windows::Forms::TextBox();
			this->TBoxUserName = new System::Windows::Forms::TextBox();
			this->TBoxPassword = new System::Windows::Forms::TextBox();
			this->btnLogin = new System::Windows::Forms::Button();
			this->btnCancel = new System::Windows::Forms::Button();
			this->sqlDataAdapter1 = new System::Data::SqlClient::SqlDataAdapter();
			this->sqlSelectCommand1 = new System::Data::SqlClient::SqlCommand();
			this->sqlConnection1 = new System::Data::SqlClient::SqlConnection();
			this->dataSet11 = new My::DataSet1();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataSet11))->BeginInit();
			this->SuspendLayout();
			// 
			// label1
			// 
			this->label1->Location = System::Drawing::Point(72, 48);
			this->label1->Name = S"label1";
			this->label1->Size = System::Drawing::Size(56, 16);
			this->label1->TabIndex = 0;
			this->label1->Text = S"用户编号";
			// 
			// label2
			// 
			this->label2->Location = System::Drawing::Point(72, 104);
			this->label2->Name = S"label2";
			this->label2->Size = System::Drawing::Size(56, 16);
			this->label2->TabIndex = 1;
			this->label2->Text = S"用户名";
			this->label2->Click += new System::EventHandler(this, label2_Click);
			// 
			// label3
			// 
			this->label3->Location = System::Drawing::Point(72, 160);
			this->label3->Name = S"label3";
			this->label3->Size = System::Drawing::Size(56, 16);
			this->label3->TabIndex = 2;
			this->label3->Text = S"密码";
			// 
			// TBoxUserID
			// 
			this->TBoxUserID->Location = System::Drawing::Point(152, 40);
			this->TBoxUserID->Name = S"TBoxUserID";
			this->TBoxUserID->TabIndex = 3;
			this->TBoxUserID->Text = S"";
			// 
			// TBoxUserName
			// 
			this->TBoxUserName->Location = System::Drawing::Point(152, 96);
			this->TBoxUserName->Name = S"TBoxUserName";
			this->TBoxUserName->TabIndex = 4;
			this->TBoxUserName->Text = S"";
			// 
			// TBoxPassword
			// 
			this->TBoxPassword->Location = System::Drawing::Point(152, 152);
			this->TBoxPassword->Name = S"TBoxPassword";
			this->TBoxPassword->TabIndex = 5;
			this->TBoxPassword->Text = S"";
			// 
			// btnLogin
			// 
			this->btnLogin->Location = System::Drawing::Point(80, 208);
			this->btnLogin->Name = S"btnLogin";
			this->btnLogin->TabIndex = 6;
			this->btnLogin->Text = S"登录";
			// 
			// btnCancel
			// 
			this->btnCancel->Location = System::Drawing::Point(208, 208);
			this->btnCancel->Name = S"btnCancel";
			this->btnCancel->TabIndex = 7;
			this->btnCancel->Text = S"退出";
			// 
			// sqlDataAdapter1
			// 
			this->sqlDataAdapter1->SelectCommand = this->sqlSelectCommand1;
			System::Data::Common::DataTableMapping* __mcTemp__1[] = new System::Data::Common::DataTableMapping*[1];
			System::Data::Common::DataColumnMapping* __mcTemp__2[] = new System::Data::Common::DataColumnMapping*[11];
			__mcTemp__2[0] = new System::Data::Common::DataColumnMapping(S"编号", S"NO");
			__mcTemp__2[1] = new System::Data::Common::DataColumnMapping(S"供货商号", S"GONGHUOSHANGHAO");
			__mcTemp__2[2] = new System::Data::Common::DataColumnMapping(S"进货日期", S"JINHUORIQI");
			__mcTemp__2[3] = new System::Data::Common::DataColumnMapping(S"业务员", S"YEWUYUAN");
			__mcTemp__2[4] = new System::Data::Common::DataColumnMapping(S"制单人", S"ZHIDANREN");
			__mcTemp__2[5] = new System::Data::Common::DataColumnMapping(S"验收员", S"YANSHOUYUAN");
			__mcTemp__2[6] = new System::Data::Common::DataColumnMapping(S"保管员", S"BAOGUANYUAN");
			__mcTemp__2[7] = new System::Data::Common::DataColumnMapping(S"税价合计", S"SHUIJIAHEJI");
			__mcTemp__2[8] = new System::Data::Common::DataColumnMapping(S"不含税价", S"BUHANSHUIJIA");
			__mcTemp__2[9] = new System::Data::Common::DataColumnMapping(S"税额", S"SHUIE");
			__mcTemp__2[10] = new System::Data::Common::DataColumnMapping(S"订单号", S"DINGDANHAO");
			__mcTemp__1[0] = new System::Data::Common::DataTableMapping(S"Table", S"jinhuodan", __mcTemp__2);
			this->sqlDataAdapter1->TableMappings->AddRange(__mcTemp__1);
			this->sqlDataAdapter1->RowUpdated += new System::Data::SqlClient::SqlRowUpdatedEventHandler(this, sqlDataAdapter1_RowUpdated);
			// 
			// sqlSelectCommand1
			// 
			this->sqlSelectCommand1->CommandText = S"SELECT 编号, 供货商号, 进货日期, 业务员, 制单人, 验收员, 保管员, 税价合计, 不含税价, 税额, 订单号 FROM 进货单";
			this->sqlSelectCommand1->Connection = this->sqlConnection1;
			// 
			// sqlConnection1
			// 
			this->sqlConnection1->ConnectionString = S"workstation id=localhost;packet size=4096;user id=sa;initial catalog=jxcbook;pers" 
				S"ist security info=False";
			// 
			// dataSet11
			// 
			this->dataSet11->DataSetName = S"DataSet1";
			this->dataSet11->Locale = new System::Globalization::CultureInfo(S"zh-CN");
			// 
			// FormLogin
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(6, 14);
			this->ClientSize = System::Drawing::Size(400, 273);
			this->Controls->Add(this->btnCancel);
			this->Controls->Add(this->btnLogin);
			this->Controls->Add(this->TBoxPassword);
			this->Controls->Add(this->TBoxUserName);
			this->Controls->Add(this->TBoxUserID);
			this->Controls->Add(this->label3);
			this->Controls->Add(this->label2);
			this->Controls->Add(this->label1);
			this->Icon = (__try_cast<System::Drawing::Icon *  >(resources->GetObject(S"$this.Icon")));
			this->Name = S"FormLogin";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
			this->Text = S"用户登录";
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dataSet11))->EndInit();
			this->ResumeLayout(false);

		}	
	private: System::Void label2_Click(System::Object *  sender, System::EventArgs *  e)
			 {
			 }

	private: System::Void sqlDataAdapter1_RowUpdated(System::Object *  sender, System::Data::SqlClient::SqlRowUpdatedEventArgs *  e)
			 {
			 }

};
}


⌨️ 快捷键说明

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