?? qtform.cs
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Threading;
namespace bggl.fm
{
/// <summary>
/// qtform 的摘要說明。
/// </summary>
public class qtform : System.Windows.Forms.Form
{
// int y=0;//放鼠標(biāo)的y值;
// int x=0;//放鼠標(biāo)的x值;
// float i=0;
int thim=0;//時間
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem1;
private System.Windows.Forms.MenuItem menuItem3;
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.ToolBar toolBar1;
private System.Windows.Forms.ToolBarButton toolBarButton1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.StatusBar statusBar1;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ListView listView2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TreeView treeView2;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ImageList imageList2;
private System.Windows.Forms.MenuItem menuItem5;
private System.Windows.Forms.MenuItem menuItem7;
private System.Windows.Forms.MenuItem menuItem8;
private System.Windows.Forms.MenuItem menuItem9;
private System.ComponentModel.IContainer components;
private System.Windows.Forms.MenuItem menuItem10;
Form dl;
private System.Windows.Forms.StatusBarPanel statusBarPanel1;
private System.Windows.Forms.StatusBarPanel statusBarPanel2;
private System.Windows.Forms.StatusBarPanel statusBarPanel3;
string fjh="";
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.MenuItem menuItem2;
private System.Windows.Forms.MenuItem menuItem4;
private System.Windows.Forms.MenuItem menuItem11;
private System.Windows.Forms.MenuItem menuItem12;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ColumnHeader columnHeader5;
private System.Windows.Forms.ListView listView3;
private System.Windows.Forms.ColumnHeader columnHeader6;
private System.Windows.Forms.ColumnHeader columnHeader7;
private System.Windows.Forms.ColumnHeader columnHeader8;
private System.Windows.Forms.ColumnHeader columnHeader9;
private System.Windows.Forms.ColumnHeader columnHeader10;
private System.Windows.Forms.ColumnHeader columnHeader11;
private System.Windows.Forms.ColumnHeader columnHeader12;
private System.Windows.Forms.ColumnHeader columnHeader13;
private System.Windows.Forms.ListView listView4;
private System.Windows.Forms.ColumnHeader columnHeader14;
private System.Windows.Forms.ColumnHeader columnHeader15;
private System.Windows.Forms.ColumnHeader columnHeader16;
private System.Windows.Forms.ColumnHeader columnHeader17;
private System.Windows.Forms.ColumnHeader columnHeader18;
private System.Windows.Forms.ColumnHeader columnHeader19;
private System.Windows.Forms.ColumnHeader columnHeader20;
private System.Windows.Forms.ColumnHeader columnHeader21;
private System.Windows.Forms.ColumnHeader columnHeader22;
private System.Windows.Forms.ColumnHeader columnHeader23;
private System.Windows.Forms.ToolBarButton toolBarButton2;
private System.Windows.Forms.ToolBarButton toolBarButton3;
private System.Windows.Forms.ToolBarButton toolBarButton4;
private System.Windows.Forms.ToolBarButton toolBarButton5;
private System.Windows.Forms.ToolBarButton toolBarButton6;
private System.Windows.Forms.ToolBarButton toolBarButton7;
private System.Windows.Forms.ToolBarButton toolBarButton8;
private System.Windows.Forms.MenuItem menuItem14;
private System.Windows.Forms.MenuItem menuItem15;
private System.Windows.Forms.MenuItem menuItem16;
private System.Windows.Forms.MenuItem menuItem6;
private System.Windows.Forms.MenuItem menuItem17;
private System.Windows.Forms.MenuItem menuItem13;//存放房間號
int x=1;
private System.Windows.Forms.ImageList imageList3;
int y=1;
string chuan="";
public qtform(Form d)
{
//
// Windows 窗體設(shè)計(jì)器支持所必需的
//
dl=d;
InitializeComponent();
//
// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
//
}
/// <summary>
/// 清理所有正在使用的資源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗體設(shè)計(jì)器生成的代碼
/// <summary>
/// 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改
/// 此方法的內(nèi)容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(qtform));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem1 = new System.Windows.Forms.MenuItem();
this.menuItem5 = new System.Windows.Forms.MenuItem();
this.menuItem7 = new System.Windows.Forms.MenuItem();
this.menuItem14 = new System.Windows.Forms.MenuItem();
this.menuItem8 = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.menuItem3 = new System.Windows.Forms.MenuItem();
this.menuItem2 = new System.Windows.Forms.MenuItem();
this.menuItem4 = new System.Windows.Forms.MenuItem();
this.menuItem11 = new System.Windows.Forms.MenuItem();
this.menuItem12 = new System.Windows.Forms.MenuItem();
this.menuItem15 = new System.Windows.Forms.MenuItem();
this.menuItem6 = new System.Windows.Forms.MenuItem();
this.menuItem17 = new System.Windows.Forms.MenuItem();
this.menuItem13 = new System.Windows.Forms.MenuItem();
this.menuItem16 = new System.Windows.Forms.MenuItem();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
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.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
this.imageList3 = new System.Windows.Forms.ImageList(this.components);
this.label1 = new System.Windows.Forms.Label();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel2 = new System.Windows.Forms.StatusBarPanel();
this.statusBarPanel3 = new System.Windows.Forms.StatusBarPanel();
this.listView1 = new System.Windows.Forms.ListView();
this.imageList2 = new System.Windows.Forms.ImageList(this.components);
this.listView2 = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader5 = new System.Windows.Forms.ColumnHeader();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.treeView1 = new System.Windows.Forms.TreeView();
this.label4 = new System.Windows.Forms.Label();
this.treeView2 = new System.Windows.Forms.TreeView();
this.label5 = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.listView3 = new System.Windows.Forms.ListView();
this.columnHeader6 = new System.Windows.Forms.ColumnHeader();
this.columnHeader7 = new System.Windows.Forms.ColumnHeader();
this.columnHeader8 = new System.Windows.Forms.ColumnHeader();
this.columnHeader9 = new System.Windows.Forms.ColumnHeader();
this.columnHeader10 = new System.Windows.Forms.ColumnHeader();
this.columnHeader11 = new System.Windows.Forms.ColumnHeader();
this.columnHeader12 = new System.Windows.Forms.ColumnHeader();
this.columnHeader13 = new System.Windows.Forms.ColumnHeader();
this.listView4 = new System.Windows.Forms.ListView();
this.columnHeader14 = new System.Windows.Forms.ColumnHeader();
this.columnHeader15 = new System.Windows.Forms.ColumnHeader();
this.columnHeader16 = new System.Windows.Forms.ColumnHeader();
this.columnHeader17 = new System.Windows.Forms.ColumnHeader();
this.columnHeader18 = new System.Windows.Forms.ColumnHeader();
this.columnHeader19 = new System.Windows.Forms.ColumnHeader();
this.columnHeader20 = new System.Windows.Forms.ColumnHeader();
this.columnHeader21 = new System.Windows.Forms.ColumnHeader();
this.columnHeader22 = new System.Windows.Forms.ColumnHeader();
this.columnHeader23 = new System.Windows.Forms.ColumnHeader();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).BeginInit();
this.SuspendLayout();
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1,
this.menuItem3,
this.menuItem12,
this.menuItem13,
this.menuItem16});
//
// menuItem1
//
this.menuItem1.Index = 0;
this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem5,
this.menuItem7,
this.menuItem14,
this.menuItem8,
this.menuItem10,
this.menuItem9});
this.menuItem1.Text = "房間業(yè)務(wù)";
this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
//
// menuItem5
//
this.menuItem5.Index = 0;
this.menuItem5.Text = "預(yù)定業(yè)務(wù)";
this.menuItem5.Click += new System.EventHandler(this.menuItem5_Click);
//
// menuItem7
//
this.menuItem7.Index = 1;
this.menuItem7.Text = "會員業(yè)務(wù)";
this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
//
// menuItem14
//
this.menuItem14.Index = 2;
this.menuItem14.Text = "前臺業(yè)務(wù)";
this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
//
// menuItem8
//
this.menuItem8.Index = 3;
this.menuItem8.Text = "——————";
//
// menuItem10
//
this.menuItem10.Index = 4;
this.menuItem10.Text = "返回登陸";
this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click);
//
// menuItem9
//
this.menuItem9.Index = 5;
this.menuItem9.Text = "退出";
this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
//
// menuItem3
//
this.menuItem3.Index = 1;
this.menuItem3.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem2,
this.menuItem4,
this.menuItem11});
this.menuItem3.Text = "系統(tǒng)管理";
//
// menuItem2
//
this.menuItem2.Index = 0;
this.menuItem2.Text = "操作員管理";
this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
//
// menuItem4
//
this.menuItem4.Index = 1;
this.menuItem4.Text = "添加設(shè)備房間";
this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
//
// menuItem11
//
this.menuItem11.Index = 2;
this.menuItem11.Text = "房間設(shè)備管理";
this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click);
//
// menuItem12
//
this.menuItem12.Index = 2;
this.menuItem12.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem15});
this.menuItem12.Text = "設(shè)置管理";
//
// menuItem15
//
this.menuItem15.Index = 0;
this.menuItem15.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem6,
this.menuItem17});
this.menuItem15.Text = "提示管理";
//
// menuItem6
//
this.menuItem6.DefaultItem = true;
this.menuItem6.Index = 0;
this.menuItem6.MdiList = true;
this.menuItem6.Text = "是否提示";
this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click_1);
//
// menuItem17
//
this.menuItem17.Index = 1;
this.menuItem17.Text = "提示設(shè)置";
this.menuItem17.Click += new System.EventHandler(this.menuItem17_Click);
//
// menuItem13
//
this.menuItem13.Index = 3;
this.menuItem13.Text = "打印報表";
this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click);
//
// menuItem16
//
this.menuItem16.Index = 4;
this.menuItem16.Text = "幫助";
this.menuItem16.Click += new System.EventHandler(this.menuItem16_Click);
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// toolBar1
//
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton4,
this.toolBarButton5,
this.toolBarButton6,
this.toolBarButton7,
this.toolBarButton8});
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList3;
this.toolBar1.Location = new System.Drawing.Point(0, 0);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(1028, 45);
this.toolBar1.TabIndex = 1;
this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
//
// toolBarButton1
//
this.toolBarButton1.ImageIndex = 0;
this.toolBarButton1.Text = "預(yù)定";
//
// toolBarButton2
//
this.toolBarButton2.ImageIndex = 3;
this.toolBarButton2.Text = "客戶";
//
// toolBarButton3
//
this.toolBarButton3.ImageIndex = 2;
this.toolBarButton3.Text = "開房";
//
// toolBarButton4
//
this.toolBarButton4.ImageIndex = 1;
this.toolBarButton4.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton5
//
this.toolBarButton5.ImageIndex = 1;
this.toolBarButton5.Text = "管理";
//
// toolBarButton6
//
this.toolBarButton6.ImageIndex = 4;
this.toolBarButton6.Text = "刷新";
//
// toolBarButton7
//
this.toolBarButton7.ImageIndex = 5;
this.toolBarButton7.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton8
//
this.toolBarButton8.ImageIndex = 5;
this.toolBarButton8.Text = "幫助";
//
// imageList3
//
this.imageList3.ImageSize = new System.Drawing.Size(20, 20);
this.imageList3.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList3.ImageStream")));
this.imageList3.TransparentColor = System.Drawing.Color.Transparent;
//
// label1
//
this.label1.Cursor = System.Windows.Forms.Cursors.HSplit;
this.label1.Location = new System.Drawing.Point(160, 208);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(872, 8);
this.label1.TabIndex = 9;
//
// statusBar1
//
this.statusBar1.Location = new System.Drawing.Point(0, 709);
this.statusBar1.Name = "statusBar1";
this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
this.statusBarPanel1,
this.statusBarPanel2,
this.statusBarPanel3});
this.statusBar1.ShowPanels = true;
this.statusBar1.Size = new System.Drawing.Size(1028, 16);
this.statusBar1.TabIndex = 11;
//
// statusBarPanel1
//
this.statusBarPanel1.Text = "歡迎使用賓館前臺系統(tǒng)";
this.statusBarPanel1.Width = 550;
//
// statusBarPanel2
//
this.statusBarPanel2.Width = 200;
//
// statusBarPanel3
//
this.statusBarPanel3.Width = 200;
//
// listView1
//
this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.listView1.LargeImageList = this.imageList2;
this.listView1.Location = new System.Drawing.Point(160, 216);
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(824, 448);
this.listView1.SmallImageList = this.imageList2;
this.listView1.StateImageList = this.imageList2;
this.listView1.TabIndex = 13;
this.listView1.Click += new System.EventHandler(this.listView1_Click);
this.listView1.DoubleClick += new System.EventHandler(this.listView1_DoubleClick);
//
// imageList2
//
this.imageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
this.imageList2.ImageSize = new System.Drawing.Size(50, 50);
this.imageList2.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList2.ImageStream")));
this.imageList2.TransparentColor = System.Drawing.Color.Transparent;
//
// listView2
//
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -