亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? frmcaidanadd.cs

?? 一個酒店管理系統(tǒng)
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace bggl.fm
{
	/// <summary>
	/// frmcaidanadd 的摘要說明。
	/// </summary>
	public class frmcaidanadd : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBox1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox textBox2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox textBox3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox textBox4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox textBox5;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.Button button4;

		int j;
		DataGrid z;
		ComboBox c;
		cs.frmcaidanadd ii=new bggl.cs.frmcaidanadd ();
		private System.Windows.Forms.GroupBox groupBox2;
		/// <summary>
		/// 必需的設(shè)計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmcaidanadd(int local,DataGrid dg,ComboBox cb)
		{
			j=local;
			z=dg;
			c=cb;
			//
			// Windows 窗體設(shè)計器支持所必需的
			//
			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è)計器生成的代碼
		/// <summary>
		/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </summary>
		private void InitializeComponent()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.textBox2 = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.textBox3 = new System.Windows.Forms.TextBox();
			this.label4 = new System.Windows.Forms.Label();
			this.textBox4 = new System.Windows.Forms.TextBox();
			this.label5 = new System.Windows.Forms.Label();
			this.textBox5 = new System.Windows.Forms.TextBox();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.button4 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.groupBox2 = new System.Windows.Forms.GroupBox();
			this.groupBox1.SuspendLayout();
			this.groupBox2.SuspendLayout();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(16, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(80, 24);
			this.label1.TabIndex = 0;
			this.label1.Text = "菜單編號:";
			// 
			// textBox1
			// 
			this.textBox1.Enabled = false;
			this.textBox1.Location = new System.Drawing.Point(104, 24);
			this.textBox1.Name = "textBox1";
			this.textBox1.Size = new System.Drawing.Size(112, 21);
			this.textBox1.TabIndex = 1;
			this.textBox1.Text = "";
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.Location = new System.Drawing.Point(24, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 24);
			this.label2.TabIndex = 2;
			this.label2.Text = "菜型:";
			// 
			// textBox2
			// 
			this.textBox2.Location = new System.Drawing.Point(104, 56);
			this.textBox2.Name = "textBox2";
			this.textBox2.Size = new System.Drawing.Size(112, 21);
			this.textBox2.TabIndex = 3;
			this.textBox2.Text = "";
			// 
			// label3
			// 
			this.label3.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label3.Location = new System.Drawing.Point(24, 96);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(64, 24);
			this.label3.TabIndex = 4;
			this.label3.Text = "菜名:";
			// 
			// textBox3
			// 
			this.textBox3.Location = new System.Drawing.Point(104, 96);
			this.textBox3.Name = "textBox3";
			this.textBox3.Size = new System.Drawing.Size(112, 21);
			this.textBox3.TabIndex = 5;
			this.textBox3.Text = "";
			// 
			// label4
			// 
			this.label4.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label4.Location = new System.Drawing.Point(8, 128);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(80, 24);
			this.label4.TabIndex = 6;
			this.label4.Text = "菜名編號:";
			// 
			// textBox4
			// 
			this.textBox4.Location = new System.Drawing.Point(104, 128);
			this.textBox4.Name = "textBox4";
			this.textBox4.Size = new System.Drawing.Size(112, 21);
			this.textBox4.TabIndex = 7;
			this.textBox4.Text = "";
			this.textBox4.Leave += new System.EventHandler(this.textBox4_Leave);
			// 
			// label5
			// 
			this.label5.Font = new System.Drawing.Font("宋體", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label5.Location = new System.Drawing.Point(24, 168);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(48, 16);
			this.label5.TabIndex = 8;
			this.label5.Text = "單價:";
			// 
			// textBox5
			// 
			this.textBox5.Location = new System.Drawing.Point(104, 160);
			this.textBox5.Name = "textBox5";
			this.textBox5.Size = new System.Drawing.Size(112, 21);
			this.textBox5.TabIndex = 9;
			this.textBox5.Text = "";
			this.textBox5.Leave += new System.EventHandler(this.textBox5_Leave);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.Add(this.button4);
			this.groupBox1.Controls.Add(this.button3);
			this.groupBox1.Controls.Add(this.button2);
			this.groupBox1.Location = new System.Drawing.Point(288, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(112, 200);
			this.groupBox1.TabIndex = 10;
			this.groupBox1.TabStop = false;
			// 
			// button4
			// 
			this.button4.Location = new System.Drawing.Point(16, 120);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(80, 24);
			this.button4.TabIndex = 3;
			this.button4.Text = "退出";
			this.button4.Click += new System.EventHandler(this.button4_Click);
			// 
			// button3
			// 
			this.button3.Location = new System.Drawing.Point(16, 80);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(80, 24);
			this.button3.TabIndex = 2;
			this.button3.Text = "刪除";
			this.button3.Click += new System.EventHandler(this.button3_Click);
			// 
			// button2
			// 
			this.button2.Location = new System.Drawing.Point(16, 40);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(80, 24);
			this.button2.TabIndex = 1;
			this.button2.Text = "修改";
			this.button2.Click += new System.EventHandler(this.button2_Click);
			// 
			// groupBox2
			// 
			this.groupBox2.Controls.Add(this.textBox1);
			this.groupBox2.Controls.Add(this.label1);
			this.groupBox2.Controls.Add(this.label2);
			this.groupBox2.Controls.Add(this.textBox2);
			this.groupBox2.Controls.Add(this.label3);
			this.groupBox2.Controls.Add(this.textBox3);
			this.groupBox2.Controls.Add(this.label4);
			this.groupBox2.Controls.Add(this.textBox4);
			this.groupBox2.Controls.Add(this.label5);
			this.groupBox2.Controls.Add(this.textBox5);
			this.groupBox2.Location = new System.Drawing.Point(16, 8);
			this.groupBox2.Name = "groupBox2";
			this.groupBox2.Size = new System.Drawing.Size(264, 200);
			this.groupBox2.TabIndex = 11;
			this.groupBox2.TabStop = false;
			// 
			// frmcaidanadd
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(408, 229);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.Name = "frmcaidanadd";
			this.Text = "菜單管理";
			this.Load += new System.EventHandler(this.frmcaidanadd_Load);
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void frmcaidanadd_Load(object sender, System.EventArgs e)    //從frmcaidan的數(shù)據(jù)框中取值
		{
			
			DataSet objset=ii.selectcaidan(j);
			foreach(DataRow dr in objset.Tables[0].Rows)
			{
				this.textBox1.Text=dr["mid"].ToString();
				this.textBox2.Text=dr["mtype"].ToString();
				this.textBox3.Text=dr["mname"].ToString();
				this.textBox4.Text=dr["mcpuid"].ToString();
				this.textBox5.Text=dr["mprice"].ToString();
			}
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			this.textBox1.Text="";
			this.textBox2.Text="";
			this.textBox3.Text="";
			this.textBox4.Text="";
			this.textBox5.Text="";
			this.button2.Enabled=false;
			this.button3.Enabled=false;
		}

		private void button5_Click(object sender, System.EventArgs e)
		{
			if(this.textBox2.Text.Trim()!="" && this.textBox3.Text.Trim()!="" && this.textBox4.Text.Trim()!="" && this.textBox5.Text.Trim()!="")
			{
//				if(this.textBox5.Text.GetType(int))
//				{
					ii.addcaidan(this.textBox2.Text,this.textBox3.Text,this.textBox4.Text,this.textBox5.Text);
					cs.selectmenu fork=new bggl.cs.selectmenu();
					DataSet objset=fork.selmenu("","");


					z.DataSource=objset.Tables[0].DefaultView;
					setlv();
					MessageBox.Show("保存成功!");
//				}
//				else
//				{
//					MessageBox.Show("單價不能輸入字符類型,只能是money類型!"); 
//				}
			}
			else
			{
                  MessageBox.Show("操作不正確,輸入不能為空,保存失敗!");			
			}
          
			
		   
			this.button2.Enabled=true;
			this.button3.Enabled=true;
		}
		private void setlv()    //餐廳類型
		{
			DataSet sbobjset=new DataSet();
			cs.selectmenu sbsql=new bggl.cs.selectmenu();
			sbobjset=sbsql.seltype();
			this.c.Items.Clear();
			foreach(DataRow dr in sbobjset.Tables[0].Rows)
			{
				this.c.Items.Add(dr["mtype"].ToString());
				this.c.SelectedIndex=0;
			}
			
		}


		private void button4_Click(object sender, System.EventArgs e)   //退出
		{
			this.Close();
		}

		private void button2_Click(object sender, System.EventArgs e)   //修改菜單
		{
		   ii.updatecaidan(Convert.ToInt16(this.textBox1.Text),this.textBox2.Text,this.textBox3.Text,this.textBox4.Text,this.textBox5.Text);
			cs.selectmenu fork=new bggl.cs.selectmenu();
			DataSet objset=fork.selmenu("","");
			z.DataSource=objset.Tables[0].DefaultView;
			setlv();
			MessageBox.Show("已修改成功!");
		}

		private void button3_Click(object sender, System.EventArgs e)   //刪除菜單
		{
			ii.deletecaidan(Convert.ToInt16(this.textBox1.Text));
			cs.selectmenu fork=new bggl.cs.selectmenu();
			DataSet objset=fork.selmenu("","");
			z.DataSource=objset.Tables[0].DefaultView;
			setlv();
			MessageBox.Show("已刪除成功!"); 
		}

		private void listBox1_SelectedIndexChanged(object sender, System.EventArgs e)
		{
		
		}

		private void textBox5_Leave(object sender, System.EventArgs e)    //判斷textBox5
		{
		    bggl.gong.zhipd pd=new bggl.gong.zhipd();
			if(pd.zhi(this.textBox5.Text.Trim())!=true)
			{
				MessageBox.Show("價格只能輸入數(shù)字!");
				this.textBox5.Text="";
			}
		}

		private void textBox4_Leave(object sender, System.EventArgs e)    //判斷textBox4
		{
			bggl.gong.zhipd pd=new bggl.gong.zhipd();
			if(pd.intjc(this.textBox4.Text.Trim())!=true)
			{
				MessageBox.Show("菜單編號只能為數(shù)字!");
				this.textBox4.Text="";
			}
		}
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情成人午夜视频| av在线播放不卡| 成人美女在线观看| 欧美日韩国产成人在线91| 国产午夜精品福利| 日韩vs国产vs欧美| 在线观看91精品国产入口| 日本一二三不卡| 精一区二区三区| 欧美日韩精品免费观看视频| 亚洲综合成人网| av成人免费在线| 亚洲一区二区成人在线观看| 欧美久久久久久蜜桃| 一区二区三区高清| 色综合激情久久| 亚洲三级电影全部在线观看高清| 国产一区二区伦理| 久久综合丝袜日本网| 美女性感视频久久| 日韩免费性生活视频播放| 日韩精品1区2区3区| 欧美日韩日本视频| 亚洲不卡av一区二区三区| 欧美影院一区二区三区| 亚洲精品免费电影| 在线观看亚洲a| 久久精品国产亚洲a| 欧美电影免费提供在线观看| 成人性色生活片免费看爆迷你毛片| 亚洲天堂av一区| 日韩免费视频一区二区| 成人av午夜电影| 亚洲区小说区图片区qvod| 一本久道中文字幕精品亚洲嫩 | 精品久久久久久久人人人人传媒| 亚洲高清不卡在线| 欧美高清www午色夜在线视频| 黄色日韩网站视频| 亚洲观看高清完整版在线观看| 1024国产精品| 91影视在线播放| 一区二区欧美精品| 久久久久国色av免费看影院| 成人免费福利片| 美女脱光内衣内裤视频久久网站| 日韩理论在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 欧美性大战久久久久久久蜜臀| 国产成人小视频| 亚洲激情一二三区| 中文字幕欧美日韩一区| 日韩视频不卡中文| 国产成人免费在线观看不卡| 偷拍与自拍一区| 国产午夜精品一区二区三区嫩草| 欧美人牲a欧美精品| 色综合中文字幕国产 | 精品视频免费在线| k8久久久一区二区三区| 国产一区二区三区日韩| 日韩国产欧美三级| 亚洲午夜在线电影| 亚洲视频免费在线观看| 国产女人18水真多18精品一级做| 97国产一区二区| 日本一不卡视频| 性做久久久久久| 亚洲大片精品永久免费| 亚洲欧美激情小说另类| 中文字幕综合网| 亚洲欧洲成人自拍| 亚洲日本欧美天堂| 亚洲精品一二三| 亚洲男人电影天堂| 亚洲一二三四区| 亚洲夂夂婷婷色拍ww47| 亚洲一区二区精品视频| 亚洲精品高清在线| 亚洲已满18点击进入久久| 亚洲免费在线视频一区 二区| 亚洲欧美自拍偷拍| 亚洲欧美另类久久久精品2019 | 亚洲精品视频一区| 亚洲精品久久久蜜桃| 亚洲电影在线播放| 丝袜诱惑制服诱惑色一区在线观看| 亚洲成人1区2区| 毛片av一区二区三区| 黄一区二区三区| 成人开心网精品视频| 99精品国产91久久久久久 | 亚洲国产欧美日韩另类综合| 亚洲一线二线三线视频| 日韩经典中文字幕一区| 极品少妇xxxx精品少妇| 国产成人免费视频网站高清观看视频| 国产成人免费xxxxxxxx| 波多野结衣视频一区| 在线观看亚洲a| 欧美一区永久视频免费观看| 色综合天天综合网天天狠天天 | 午夜精品福利一区二区三区蜜桃| 日本伊人精品一区二区三区观看方式| 久久国产视频网| 国产高清精品在线| 91黄色小视频| 91污片在线观看| 欧美日韩国产a| 久久久久成人黄色影片| 亚洲少妇屁股交4| 免费视频最近日韩| 日本成人在线视频网站| 国产福利一区二区三区| 一本久久a久久精品亚洲| 日韩一区二区免费在线电影 | 成人不卡免费av| 91传媒视频在线播放| 欧美白人最猛性xxxxx69交| 国产精品久久久久三级| 国产精品青草综合久久久久99| 久久久青草青青国产亚洲免观| 日韩一区中文字幕| 美女脱光内衣内裤视频久久网站| 成人黄色网址在线观看| 69堂亚洲精品首页| 日韩视频免费直播| 亚洲免费在线看| 黄色日韩网站视频| 欧美日韩精品一区二区三区| 国产精品网站在线播放| 奇米色一区二区| 在线观看欧美日本| 国产免费观看久久| 免费欧美高清视频| 在线观看日产精品| 中文字幕不卡在线观看| 久久精品国产一区二区| 在线视频国内一区二区| 久久久精品中文字幕麻豆发布| 亚洲一区二区3| 99精品欧美一区二区三区小说| 日韩美女视频一区二区在线观看| 一区二区三区中文在线观看| 国产成人av电影在线| 色猫猫国产区一区二在线视频| 久久免费的精品国产v∧| 秋霞av亚洲一区二区三| 欧美亚洲综合在线| 亚洲日本va午夜在线影院| 国产精品香蕉一区二区三区| 91女神在线视频| 国产欧美一区二区精品性色超碰 | 成人激情开心网| 久久―日本道色综合久久| 免费在线观看成人| 欧美老肥妇做.爰bbww| 一区二区三区加勒比av| 成人免费av网站| 国产精品每日更新| 成人激情免费电影网址| 国产欧美1区2区3区| 国产二区国产一区在线观看| 26uuu国产一区二区三区| 看片的网站亚洲| 日韩午夜电影av| 久久精品国产精品青草| 欧美一区二区黄色| 美女免费视频一区二区| 国产日韩欧美激情| 欧美日韩亚洲不卡| 精品久久国产97色综合| 高清不卡一二三区| 国产成人在线看| 不卡影院免费观看| 精品国产成人在线影院 | 成人激情小说网站| 日本一区二区三区高清不卡 | 成人av中文字幕| 国产精品久久三| 91天堂素人约啪| 亚洲精品国产无套在线观| 日本乱人伦一区| 丝袜亚洲精品中文字幕一区| 这里只有精品99re| 国产在线日韩欧美| 中国av一区二区三区| 一本到一区二区三区| 亚洲成av人片在线观看| 日韩欧美一卡二卡| 成人一级黄色片| 一区二区日韩电影| 欧美一级在线视频| 国产精品2024| 亚洲精品中文字幕在线观看| 欧美日韩一区 二区 三区 久久精品| 日本欧美在线看| 国产视频一区在线播放| 91丨九色丨黑人外教| 天堂久久一区二区三区|