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

📄 mainfrm.cs

📁 ymjxccoder.rar
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace 进销存管理系统
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class MainFrm : System.Windows.Forms.Form
	{
		private DataSet ds = new DataSet();
		private	LinkDataBase link = new LinkDataBase();	
		private string sendTableName = "权限清单";
		private string sendStrSQL;
		

		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 mnu_WareDataManage;
		private System.Windows.Forms.MenuItem mnu_StokerDataManage;
		private System.Windows.Forms.MenuItem mnu_ClientDataManage;
		private System.Windows.Forms.MenuItem mnu_StockTable;
		private System.Windows.Forms.MenuItem mnu_StorageSearch;
		private System.Windows.Forms.MenuItem mnu_PopedomManage;
		private System.Windows.Forms.MenuItem mnu_SellTable;
		private System.Windows.Forms.StatusBar statusBar1;
		private System.Windows.Forms.StatusBarPanel statusBarPanel1;
		private System.Windows.Forms.StatusBarPanel statusBarPanel2;
		private System.Windows.Forms.MenuItem menuItemQuit;
		private System.Windows.Forms.ToolBar toolBar1;
		private System.Windows.Forms.ToolBarButton toolBarButton1;
		private System.Windows.Forms.ToolBarButton toolBarButton2;
		private System.Windows.Forms.ToolBarButton toolBarButton3;
		private System.Windows.Forms.ToolBarButton toolBarButton4;
		private System.Windows.Forms.ImageList imageList1;
		private System.ComponentModel.IContainer components;

		public MainFrm()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗体设计器生成的代码
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainFrm));
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.mnu_WareDataManage = new System.Windows.Forms.MenuItem();
			this.mnu_StokerDataManage = 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.menuItemQuit = new System.Windows.Forms.MenuItem();
			this.statusBar1 = new System.Windows.Forms.StatusBar();
			this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
			this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
			this.toolBar1 = new System.Windows.Forms.ToolBar();
			this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
			this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
			this.imageList1 = new System.Windows.Forms.ImageList(this.components);
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
			this.SuspendLayout();
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menuItem1,
																					  this.menuItem2,
																					  this.menuItem3,
																					  this.menuItem4,
																					  this.menuItem5,
																					  this.menuItemQuit});
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mnu_WareDataManage,
																					  this.mnu_StokerDataManage,
																					  this.mnu_ClientDataManage});
			this.menuItem1.Text = "资料管理";
			// 
			// mnu_WareDataManage
			// 
			this.mnu_WareDataManage.Enabled = false;
			this.mnu_WareDataManage.Index = 0;
			this.mnu_WareDataManage.Text = "商品信息维护";
			this.mnu_WareDataManage.Click += new System.EventHandler(this.mnu_WareDataManage_Click);
			// 
			// mnu_StokerDataManage
			// 
			this.mnu_StokerDataManage.Enabled = false;
			this.mnu_StokerDataManage.Index = 1;
			this.mnu_StokerDataManage.Text = "供货商信息维护";
			this.mnu_StokerDataManage.Click += new System.EventHandler(this.mnu_StokerDataManage_Click);
			// 
			// mnu_ClientDataManage
			// 
			this.mnu_ClientDataManage.Enabled = false;
			this.mnu_ClientDataManage.Index = 2;
			this.mnu_ClientDataManage.Text = "客户信息维护";
			this.mnu_ClientDataManage.Click += new System.EventHandler(this.mnu_ClientDataManage_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mnu_StockTable});
			this.menuItem2.Text = "进货管理";
			// 
			// mnu_StockTable
			// 
			this.mnu_StockTable.Enabled = false;
			this.mnu_StockTable.Index = 0;
			this.mnu_StockTable.Text = "进货单";
			this.mnu_StockTable.Click += new System.EventHandler(this.mnu_StockTable_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 2;
			this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mnu_SellTable});
			this.menuItem3.Text = "销售管理";
			// 
			// mnu_SellTable
			// 
			this.mnu_SellTable.Enabled = false;
			this.mnu_SellTable.Index = 0;
			this.mnu_SellTable.Text = "销售单";
			this.mnu_SellTable.Click += new System.EventHandler(this.mnu_SellTable_Click);
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 3;
			this.menuItem4.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mnu_StorageSearch});
			this.menuItem4.Text = "库存管理";
			// 
			// mnu_StorageSearch
			// 
			this.mnu_StorageSearch.Enabled = false;
			this.mnu_StorageSearch.Index = 0;
			this.mnu_StorageSearch.Text = "库存查询";
			this.mnu_StorageSearch.Click += new System.EventHandler(this.mnu_StorageSearch_Click);
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 4;
			this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mnu_PopedomManage});
			this.menuItem5.Text = "系统管理";
			// 
			// mnu_PopedomManage
			// 
			this.mnu_PopedomManage.Enabled = false;
			this.mnu_PopedomManage.Index = 0;
			this.mnu_PopedomManage.Text = "权限管理";
			this.mnu_PopedomManage.Click += new System.EventHandler(this.mnu_PopedomManage_Click);
			// 
			// menuItemQuit
			// 
			this.menuItemQuit.Index = 5;
			this.menuItemQuit.Text = "退出系统";
			this.menuItemQuit.Click += new System.EventHandler(this.menuItemQuit_Click);
			// 
			// statusBar1
			// 
			this.statusBar1.Location = new System.Drawing.Point(0, 551);
			this.statusBar1.Name = "statusBar1";
			this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
																						  this.statusBarPanel1,
																						  this.statusBarPanel2});
			this.statusBar1.ShowPanels = true;
			this.statusBar1.Size = new System.Drawing.Size(792, 22);
			this.statusBar1.TabIndex = 1;
			// 
			// statusBarPanel1
			// 
			this.statusBarPanel1.MinWidth = 200;
			this.statusBarPanel1.Text = "新视窗通用进销存";
			this.statusBarPanel1.Width = 300;
			// 
			// statusBarPanel2
			// 
			this.statusBarPanel2.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
			this.statusBarPanel2.MinWidth = 200;
			this.statusBarPanel2.Width = 476;
			// 
			// toolBar1
			// 
			this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
																						this.toolBarButton1,
																						this.toolBarButton2,
																						this.toolBarButton3,
																						this.toolBarButton4});
			this.toolBar1.DropDownArrows = true;
			this.toolBar1.ImageList = this.imageList1;
			this.toolBar1.Location = new System.Drawing.Point(0, 0);
			this.toolBar1.Name = "toolBar1";
			this.toolBar1.ShowToolTips = true;
			this.toolBar1.Size = new System.Drawing.Size(792, 41);
			this.toolBar1.TabIndex = 3;
			this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
			// 
			// toolBarButton1
			// 
			this.toolBarButton1.ImageIndex = 1;
			this.toolBarButton1.Text = "进货管理";
			this.toolBarButton1.Enabled = false;
			// 
			// toolBarButton2
			// 
			this.toolBarButton2.ImageIndex = 2;
			this.toolBarButton2.Text = "销售管理";
			this.toolBarButton2.Enabled = false;
			// 
			// toolBarButton3
			// 
			this.toolBarButton3.ImageIndex = 3;
			this.toolBarButton3.Text = "库存管理";
			this.toolBarButton3.Enabled = false;
			// 
			// toolBarButton4
			// 
			this.toolBarButton4.ImageIndex = 0;
			this.toolBarButton4.Text = "关闭系统";
			// 

⌨️ 快捷键说明

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