?? form1.h
字號(hào):
#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 文件關(guān)聯(lián)的托管資源編譯器工具的
/// “資源文件名”屬性。 否則,
/// 設(shè)計(jì)器將不能與此窗體關(guān)聯(lián)的
/// 本地化資源正確交互。
/// </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>
/// 必需的設(shè)計(jì)器變量。
/// </summary>
System::ComponentModel::Container * components;
/// <summary>
/// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內(nèi)容。
/// </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"用戶編號(hào)";
//
// 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"編號(hào)", S"NO");
__mcTemp__2[1] = new System::Data::Common::DataColumnMapping(S"供貨商號(hào)", S"GONGHUOSHANGHAO");
__mcTemp__2[2] = new System::Data::Common::DataColumnMapping(S"進(jìn)貨日期", S"JINHUORIQI");
__mcTemp__2[3] = new System::Data::Common::DataColumnMapping(S"業(yè)務(wù)員", S"YEWUYUAN");
__mcTemp__2[4] = new System::Data::Common::DataColumnMapping(S"制單人", S"ZHIDANREN");
__mcTemp__2[5] = new System::Data::Common::DataColumnMapping(S"驗(yàn)收員", S"YANSHOUYUAN");
__mcTemp__2[6] = new System::Data::Common::DataColumnMapping(S"保管員", S"BAOGUANYUAN");
__mcTemp__2[7] = new System::Data::Common::DataColumnMapping(S"稅價(jià)合計(jì)", S"SHUIJIAHEJI");
__mcTemp__2[8] = new System::Data::Common::DataColumnMapping(S"不含稅價(jià)", S"BUHANSHUIJIA");
__mcTemp__2[9] = new System::Data::Common::DataColumnMapping(S"稅額", S"SHUIE");
__mcTemp__2[10] = new System::Data::Common::DataColumnMapping(S"訂單號(hào)", 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 編號(hào), 供貨商號(hào), 進(jìn)貨日期, 業(yè)務(wù)員, 制單人, 驗(yàn)收員, 保管員, 稅價(jià)合計(jì), 不含稅價(jià), 稅額, 訂單號(hào) FROM 進(jìn)貨單";
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)
{
}
};
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -