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

📄 formmain.h

📁 Visual C++.net数据库开发经典案例
💻 H
📖 第 1 页 / 共 2 页
字号:
#include "Form1.h"
#include "LinkDataBase.h"
#include "WareDataManage.h"
#include "StokerDataManage.h"
#include "ClientDataManage.h"
#include "StockTable.h"
#include "SellTable.h"
#include "StorageSearch.h"
#include "PopedomManage.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 My
{
	/// <summary> 
	/// FormMain 摘要
	///
	/// 警告: 如果您更改该类的名称,则将需要更改 
	///          与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的 
	///          “资源文件名”属性。  否则,
	///          设计器将不能与此窗体关联的
	///          本地化资源正确交互。
	/// </summary>
	public __gc class FormMain : public System::Windows::Forms::Form
	{
	//--------------------成员声明------------------------
	private:
		LinkDataBase* MyDataBase;	//数据库连接类
	private: System::Windows::Forms::MenuItem *  mnu_WareDataManage;

	private: System::Windows::Forms::MenuItem *  mnu_ClientDataManage;
	private: System::Windows::Forms::MenuItem *  mnu_StockerDataManage;
	private: System::Windows::Forms::MenuItem *  mnu_StockTable;
	private: System::Windows::Forms::MenuItem *  mnu_SellTable;

	private: System::Windows::Forms::MenuItem *  mnu_PopedomManage;
	private: System::Windows::Forms::MenuItem *  mnu_StorageSearch;




			 DataSet* ds;
	//-------------------成员声明结束-----------------------
	public: 
		FormMain(void)
		{
			InitializeComponent();
			//生成数据库连接类
			MyDataBase = new LinkDataBase();		
		}
        
	protected: 
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}




	private: System::Windows::Forms::StatusBar *  statusBar1;


	private: System::Windows::Forms::MainMenu *  mainMenu1;
	private: System::Windows::Forms::MenuItem *  menuItem1;
	private: System::Windows::Forms::MenuItem *  menuItem2;
	private: System::Windows::Forms::MenuItem *  menuItem3;
	private: System::Windows::Forms::MenuItem *  menuItem4;
	private: System::Windows::Forms::MenuItem *  menuItem5;
	private: System::Windows::Forms::MenuItem *  menuItem6;
	private: System::Windows::Forms::StatusBarPanel *  statusBarPanel2;
	private: System::Windows::Forms::StatusBarPanel *  statusBarPanel3;



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

		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->statusBar1 = new System::Windows::Forms::StatusBar();
			this->statusBarPanel2 = new System::Windows::Forms::StatusBarPanel();
			this->statusBarPanel3 = new System::Windows::Forms::StatusBarPanel();
			this->mainMenu1 = new System::Windows::Forms::MainMenu();
			this->menuItem1 = new System::Windows::Forms::MenuItem();
			this->mnu_WareDataManage = new System::Windows::Forms::MenuItem();
			this->mnu_StockerDataManage = new System::Windows::Forms::MenuItem();
			this->mnu_ClientDataManage = new System::Windows::Forms::MenuItem();
			this->menuItem2 = new System::Windows::Forms::MenuItem();
			this->mnu_StockTable = new System::Windows::Forms::MenuItem();
			this->menuItem3 = new System::Windows::Forms::MenuItem();
			this->mnu_SellTable = new System::Windows::Forms::MenuItem();
			this->menuItem4 = new System::Windows::Forms::MenuItem();
			this->mnu_StorageSearch = new System::Windows::Forms::MenuItem();
			this->menuItem5 = new System::Windows::Forms::MenuItem();
			this->mnu_PopedomManage = new System::Windows::Forms::MenuItem();
			this->menuItem6 = new System::Windows::Forms::MenuItem();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->statusBarPanel2))->BeginInit();
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->statusBarPanel3))->BeginInit();
			this->SuspendLayout();
			// 
			// statusBar1
			// 
			this->statusBar1->Location = System::Drawing::Point(0, 341);
			this->statusBar1->Name = S"statusBar1";
			System::Windows::Forms::StatusBarPanel* __mcTemp__1[] = new System::Windows::Forms::StatusBarPanel*[2];
			__mcTemp__1[0] = this->statusBarPanel2;
			__mcTemp__1[1] = this->statusBarPanel3;
			this->statusBar1->Panels->AddRange(__mcTemp__1);
			this->statusBar1->ShowPanels = true;
			this->statusBar1->Size = System::Drawing::Size(616, 24);
			this->statusBar1->TabIndex = 7;
			this->statusBar1->Text = S"statusBar1";
			// 
			// statusBarPanel2
			// 
			this->statusBarPanel2->AutoSize = System::Windows::Forms::StatusBarPanelAutoSize::Contents;
			this->statusBarPanel2->Text = S"《数据库开发经典案例解析》        清华大学出版社";
			this->statusBarPanel2->Width = 311;
			// 
			// statusBarPanel3
			// 
			this->statusBarPanel3->AutoSize = System::Windows::Forms::StatusBarPanelAutoSize::Spring;
			this->statusBarPanel3->Width = 289;
			// 
			// mainMenu1
			// 
			System::Windows::Forms::MenuItem* __mcTemp__2[] = new System::Windows::Forms::MenuItem*[6];
			__mcTemp__2[0] = this->menuItem1;
			__mcTemp__2[1] = this->menuItem2;
			__mcTemp__2[2] = this->menuItem3;
			__mcTemp__2[3] = this->menuItem4;
			__mcTemp__2[4] = this->menuItem5;
			__mcTemp__2[5] = this->menuItem6;
			this->mainMenu1->MenuItems->AddRange(__mcTemp__2);
			// 
			// menuItem1
			// 
			this->menuItem1->Index = 0;
			System::Windows::Forms::MenuItem* __mcTemp__3[] = new System::Windows::Forms::MenuItem*[3];
			__mcTemp__3[0] = this->mnu_WareDataManage;
			__mcTemp__3[1] = this->mnu_StockerDataManage;
			__mcTemp__3[2] = this->mnu_ClientDataManage;
			this->menuItem1->MenuItems->AddRange(__mcTemp__3);
			this->menuItem1->Text = S"资料管理";
			// 
			// mnu_WareDataManage
			// 
			this->mnu_WareDataManage->Enabled = false;
			this->mnu_WareDataManage->Index = 0;
			this->mnu_WareDataManage->Text = S"商品资料维护";
			this->mnu_WareDataManage->Click += new System::EventHandler(this, mnu_WareDataManage_Click);
			// 
			// mnu_StockerDataManage
			// 
			this->mnu_StockerDataManage->Enabled = false;
			this->mnu_StockerDataManage->Index = 1;
			this->mnu_StockerDataManage->Text = S"供货商资料维护";
			this->mnu_StockerDataManage->Click += new System::EventHandler(this, mnu_StockerDataManage_Click);
			// 
			// mnu_ClientDataManage
			// 
			this->mnu_ClientDataManage->Enabled = false;
			this->mnu_ClientDataManage->Index = 2;
			this->mnu_ClientDataManage->Text = S"客户资料维护";
			this->mnu_ClientDataManage->Click += new System::EventHandler(this, mnu_ClientDataManage_Click);
			// 
			// menuItem2
			// 
			this->menuItem2->Index = 1;
			System::Windows::Forms::MenuItem* __mcTemp__4[] = new System::Windows::Forms::MenuItem*[1];
			__mcTemp__4[0] = this->mnu_StockTable;
			this->menuItem2->MenuItems->AddRange(__mcTemp__4);
			this->menuItem2->Text = S"进货管理";
			// 
			// mnu_StockTable
			// 
			this->mnu_StockTable->Enabled = false;
			this->mnu_StockTable->Index = 0;
			this->mnu_StockTable->Text = S"进货单";
			this->mnu_StockTable->Click += new System::EventHandler(this, mnu_StockTable_Click);
			// 
			// menuItem3
			// 
			this->menuItem3->Index = 2;
			System::Windows::Forms::MenuItem* __mcTemp__5[] = new System::Windows::Forms::MenuItem*[1];
			__mcTemp__5[0] = this->mnu_SellTable;
			this->menuItem3->MenuItems->AddRange(__mcTemp__5);
			this->menuItem3->Text = S"销售管理";
			// 
			// mnu_SellTable
			// 
			this->mnu_SellTable->Enabled = false;
			this->mnu_SellTable->Index = 0;
			this->mnu_SellTable->Text = S"销售单";
			this->mnu_SellTable->Click += new System::EventHandler(this, mnu_SellTable_Click);
			// 
			// menuItem4
			// 
			this->menuItem4->Index = 3;
			System::Windows::Forms::MenuItem* __mcTemp__6[] = new System::Windows::Forms::MenuItem*[1];
			__mcTemp__6[0] = this->mnu_StorageSearch;
			this->menuItem4->MenuItems->AddRange(__mcTemp__6);
			this->menuItem4->Text = S"库存管理";
			// 
			// mnu_StorageSearch
			// 
			this->mnu_StorageSearch->Enabled = false;
			this->mnu_StorageSearch->Index = 0;
			this->mnu_StorageSearch->Text = S"库存查询";
			this->mnu_StorageSearch->Click += new System::EventHandler(this, mnu_StorageSearch_Click);
			// 
			// menuItem5
			// 
			this->menuItem5->Index = 4;
			System::Windows::Forms::MenuItem* __mcTemp__7[] = new System::Windows::Forms::MenuItem*[1];
			__mcTemp__7[0] = this->mnu_PopedomManage;
			this->menuItem5->MenuItems->AddRange(__mcTemp__7);
			this->menuItem5->Text = S"系统管理";
			// 
			// mnu_PopedomManage
			// 
			this->mnu_PopedomManage->Enabled = false;
			this->mnu_PopedomManage->Index = 0;
			this->mnu_PopedomManage->Text = S"权限管理";
			this->mnu_PopedomManage->Click += new System::EventHandler(this, mnu_PopedomManage_Click);

⌨️ 快捷键说明

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