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

📄 mainfrm.cs

📁 c#语音酒店管理的毕业设计 适合于初级水平的学习
💻 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 System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem yi_ydgl;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem yi_jdgl;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem menuItem5;
		private System.Windows.Forms.MenuItem menuItem6;
		private System.Windows.Forms.MenuItem menuItem7;
		private System.Windows.Forms.MenuItem yi_tsgl;
		private System.Windows.Forms.MenuItem menuItem9;
		private System.Windows.Forms.MenuItem menuItem10;
		private System.Windows.Forms.MenuItem yi_cxgl;
		private System.Windows.Forms.MenuItem menuItem11;
		private System.Windows.Forms.MenuItem menuItem12;
		private System.Windows.Forms.MenuItem yi_gzgl;
		private System.Windows.Forms.MenuItem menuItem13;
		private System.Windows.Forms.MenuItem menuItem14;
		private System.Windows.Forms.MenuItem menuItem15;
		private System.Windows.Forms.MenuItem yi_tfgl;
		private System.Windows.Forms.MenuItem menuItem17;
		private System.Windows.Forms.MenuItem yi_kfgl;
		private System.Windows.Forms.MenuItem menuItem19;
		private System.Windows.Forms.MenuItem menuItem20;
		private System.Windows.Forms.MenuItem menuItem21;
		private System.Windows.Forms.MenuItem yi_jlcx;
		private System.Windows.Forms.MenuItem menuItem23;
		private System.Windows.Forms.MenuItem menuItem24;
		private System.Windows.Forms.MenuItem menuItem25;
		private System.Windows.Forms.StatusBar statusBar1;
		private System.Windows.Forms.StatusBarPanel statusBarPanel1;
		private System.Windows.Forms.StatusBarPanel statusBarPanel2;
		private System.Windows.Forms.MenuItem menuItem8;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		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()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainFrm));
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.yi_ydgl = new System.Windows.Forms.MenuItem();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.yi_jdgl = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.menuItem7 = new System.Windows.Forms.MenuItem();
			this.yi_tsgl = new System.Windows.Forms.MenuItem();
			this.menuItem9 = new System.Windows.Forms.MenuItem();
			this.menuItem10 = new System.Windows.Forms.MenuItem();
			this.yi_cxgl = new System.Windows.Forms.MenuItem();
			this.menuItem11 = new System.Windows.Forms.MenuItem();
			this.menuItem12 = new System.Windows.Forms.MenuItem();
			this.yi_gzgl = new System.Windows.Forms.MenuItem();
			this.menuItem13 = new System.Windows.Forms.MenuItem();
			this.menuItem14 = new System.Windows.Forms.MenuItem();
			this.menuItem15 = new System.Windows.Forms.MenuItem();
			this.yi_tfgl = new System.Windows.Forms.MenuItem();
			this.menuItem17 = new System.Windows.Forms.MenuItem();
			this.yi_kfgl = new System.Windows.Forms.MenuItem();
			this.menuItem19 = new System.Windows.Forms.MenuItem();
			this.menuItem20 = new System.Windows.Forms.MenuItem();
			this.menuItem21 = new System.Windows.Forms.MenuItem();
			this.yi_jlcx = new System.Windows.Forms.MenuItem();
			this.menuItem23 = new System.Windows.Forms.MenuItem();
			this.menuItem24 = new System.Windows.Forms.MenuItem();
			this.menuItem25 = new System.Windows.Forms.MenuItem();
			this.menuItem8 = 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();
			((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.yi_ydgl,
																					  this.yi_jdgl,
																					  this.yi_tsgl,
																					  this.yi_cxgl,
																					  this.yi_gzgl,
																					  this.yi_tfgl,
																					  this.yi_kfgl,
																					  this.yi_jlcx,
																					  this.menuItem8});
			// 
			// yi_ydgl
			// 
			this.yi_ydgl.Index = 0;
			this.yi_ydgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem1,
																					this.menuItem2});
			this.yi_ydgl.Text = "预定管理";
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.Text = "预定登记";
			this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "预定查询";
			this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
			// 
			// yi_jdgl
			// 
			this.yi_jdgl.Index = 1;
			this.yi_jdgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem4,
																					this.menuItem5,
																					this.menuItem6,
																					this.menuItem7});
			this.yi_jdgl.Text = "接待管理";
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 0;
			this.menuItem4.Text = "入住登记";
			this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 1;
			this.menuItem5.Text = "入住查询";
			this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
			// 
			// menuItem6
			// 
			this.menuItem6.Index = 2;
			this.menuItem6.Text = "入住修改";
			this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
			// 
			// menuItem7
			// 
			this.menuItem7.Index = 3;
			this.menuItem7.Text = "入住删除";
			this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
			// 
			// yi_tsgl
			// 
			this.yi_tsgl.Index = 2;
			this.yi_tsgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem9,
																					this.menuItem10});
			this.yi_tsgl.Text = "退宿管理";
			// 
			// menuItem9
			// 
			this.menuItem9.Index = 0;
			this.menuItem9.Text = "退宿登记";
			this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
			// 
			// menuItem10
			// 
			this.menuItem10.Index = 1;
			this.menuItem10.Text = "报表打印";
			this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click);
			// 
			// yi_cxgl
			// 
			this.yi_cxgl.Index = 3;
			this.yi_cxgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem11,
																					this.menuItem12});
			this.yi_cxgl.Text = "查询管理";
			// 
			// menuItem11
			// 
			this.menuItem11.Index = 0;
			this.menuItem11.Text = "房态查询";
			this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
			// 
			// menuItem12
			// 
			this.menuItem12.Index = 1;
			this.menuItem12.Text = "房间查询";
			this.menuItem12.Click += new System.EventHandler(this.menuItem12_Click);
			// 
			// yi_gzgl
			// 
			this.yi_gzgl.Index = 4;
			this.yi_gzgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem13,
																					this.menuItem14,
																					this.menuItem15});
			this.yi_gzgl.Text = "挂账管理";
			// 
			// menuItem13
			// 
			this.menuItem13.Index = 0;
			this.menuItem13.Text = "结账登记";
			this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click);
			// 
			// menuItem14
			// 
			this.menuItem14.Index = 1;
			this.menuItem14.Text = "挂账查询";
			this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
			// 
			// menuItem15
			// 
			this.menuItem15.Index = 2;
			this.menuItem15.Text = "挂账修改";
			this.menuItem15.Click += new System.EventHandler(this.menuItem15_Click);
			// 
			// yi_tfgl
			// 
			this.yi_tfgl.Index = 5;
			this.yi_tfgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem17});
			this.yi_tfgl.Text = "调房管理";
			// 
			// menuItem17
			// 
			this.menuItem17.Index = 0;
			this.menuItem17.Text = "调房登记";
			this.menuItem17.Click += new System.EventHandler(this.menuItem17_Click);
			// 
			// yi_kfgl
			// 
			this.yi_kfgl.Index = 6;
			this.yi_kfgl.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem19,
																					this.menuItem20,
																					this.menuItem21});
			this.yi_kfgl.Text = "客房管理";
			// 
			// menuItem19
			// 
			this.menuItem19.Index = 0;
			this.menuItem19.Text = "客房查询";
			this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
			// 
			// menuItem20
			// 
			this.menuItem20.Index = 1;
			this.menuItem20.Text = "客房登记";
			this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
			// 
			// menuItem21
			// 
			this.menuItem21.Index = 2;
			this.menuItem21.Text = "客房修改";
			this.menuItem21.Click += new System.EventHandler(this.menuItem21_Click);
			// 
			// yi_jlcx
			// 
			this.yi_jlcx.Index = 7;
			this.yi_jlcx.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.menuItem23,
																					this.menuItem24,
																					this.menuItem25});
			this.yi_jlcx.Text = "经理查询";
			// 
			// menuItem23
			// 
			this.menuItem23.Index = 0;
			this.menuItem23.Text = "报表输出";
			this.menuItem23.Click += new System.EventHandler(this.menuItem23_Click);
			// 
			// menuItem24
			// 
			this.menuItem24.Index = 1;
			this.menuItem24.Text = "客源分析";
			this.menuItem24.Click += new System.EventHandler(this.menuItem24_Click);
			// 
			// menuItem25
			// 
			this.menuItem25.Index = 2;
			this.menuItem25.Text = "客房信息";
			this.menuItem25.Click += new System.EventHandler(this.menuItem25_Click);
			// 
			// menuItem8
			// 
			this.menuItem8.Index = 8;
			this.menuItem8.Text = "退出系统";
			this.menuItem8.Click += new System.EventHandler(this.menuItem8_Click);
			// 

⌨️ 快捷键说明

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