




版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 餐飲管理理念陳列餐飲管理系統(tǒng)1、緒論近年來(lái),隨著人們生活水平的不斷提高,餐飲業(yè)的消費(fèi)持續(xù)增長(zhǎng),競(jìng)爭(zhēng)越來(lái)越激烈。然而,傳統(tǒng)餐飲企業(yè)的日常運(yùn)作是靠人工管理,從原材料入庫(kù)到客人點(diǎn)單,再到結(jié)賬基本上由人工完場(chǎng)記錄,這樣不僅耗費(fèi)人力資源而且容易導(dǎo)致記錄丟失或重復(fù)等錯(cuò)誤,造成管理水平低下。2、需求分析本系統(tǒng)應(yīng)用計(jì)算機(jī)對(duì)餐飲企業(yè)信息進(jìn)行管理,具有手工管理所無(wú)法比擬多的優(yōu)點(diǎn),極大地提高了信息管理的效率。本系統(tǒng)運(yùn)用 Microsoft SQL Server2005 為后臺(tái)數(shù)據(jù)庫(kù),以 C#為前臺(tái)開(kāi)發(fā)工具,系統(tǒng)實(shí)現(xiàn)了前臺(tái)管理、食物類(lèi)型管理、食物管理、桌臺(tái)管理、開(kāi)臺(tái)信息、點(diǎn)菜、結(jié)賬的功能。餐廳管理部分:實(shí)現(xiàn)菜單類(lèi)別
2、管理、菜式管理、桌臺(tái)管理和預(yù)訂管理。菜單類(lèi)別管理:實(shí)現(xiàn)食物類(lèi)別的添加和刪除,刪除時(shí)要將此食物類(lèi)別下的食物一并刪除(給出用戶(hù)提示);菜式管理:實(shí)現(xiàn)菜式的添加和刪除;3、設(shè)計(jì)數(shù)據(jù)庫(kù)設(shè)計(jì)3.1數(shù)據(jù)表設(shè)計(jì)用戶(hù)表W_user 表:列名:Nvarchar(50)IntGender0 為 普 通 用戶(hù),1 為超級(jí)管理員PwdNvarchar(50)用戶(hù)密碼頁(yè)腳內(nèi)容1 餐飲管理理念陳列用 戶(hù)用 戶(hù)用 戶(hù)桌子表W_table 表列名:TidDescribeStatusNvarchar(500int1 正在使用 ,0為空閑描桌 子餐 桌餐 桌開(kāi)臺(tái)記錄(用餐記錄)W_orders 表列名:者預(yù)定用餐時(shí)間用餐人數(shù)外
3、鍵 , 來(lái) 自w_table頁(yè)腳內(nèi)容2 餐飲管理理念陳列Nvarchar(50)Decimal(18,2)接待人員實(shí)收金額外 鍵 , 來(lái) 自Amount開(kāi) 臺(tái) 記 錄訂 單客戶(hù)用餐明細(xì)W_guestfood 表列名:w_foodNumberRemarkOrderedLinepriceUserid訂單 ID行計(jì)算價(jià)服務(wù)人員Decimal(18,2)Nvarchar(50)客 戶(hù) 用 餐 明 細(xì)信息數(shù)食 物系 統(tǒng)食物類(lèi)型W_foodtype 表頁(yè)腳內(nèi)容3 餐飲管理理念陳列食物類(lèi)別 ID食物類(lèi)別名FoodtypeNvarchar(50)食 物 類(lèi) 別 信 息 表w_foodtype類(lèi) 別食 物餐廳食
4、物W_food 表列名:FoodnameFoodpriceUniteNvarchar(50)Nvarchar(50)Nvarchar(50)單位單ID名價(jià)格頁(yè)腳內(nèi)容4 餐飲管理理念陳列系統(tǒng)登超 級(jí)進(jìn)入主窗體結(jié)束圖 1 業(yè)務(wù)流程圖餐飲管理用 戶(hù) 管食退退出桌食臺(tái)管理物管理物類(lèi)型管理圖 2 餐飲管理系統(tǒng)功能結(jié)構(gòu)圖3.2 前臺(tái)設(shè)計(jì)3.2.1 登陸界面:頁(yè)腳內(nèi)容5 餐飲管理理念陳列功能:用戶(hù)可以通過(guò)此界面登陸系統(tǒng)圖 3.1 登陸界面3.2.2 main 界面的實(shí)現(xiàn)功能:前臺(tái)管理,實(shí)現(xiàn)各種界面管理,可以通過(guò)圖片信息查看桌子是否已使用,也可選中圖標(biāo)單擊右鍵選擇相應(yīng)業(yè)務(wù)圖 3.2 主界面3.2.3 食物類(lèi)型
5、管理功能:可自動(dòng)添加食物類(lèi)別,刪除食物類(lèi)別的同時(shí)也刪除該類(lèi)別下的食物頁(yè)腳內(nèi)容6 餐飲管理理念陳列圖 3.3 食物類(lèi)型管理3.2.4 食物管理功能:可添加刪除食物圖 3.4 食物管理3.2.5 桌臺(tái)信息功能:可查看桌子的具體信息及使用狀態(tài)(0 為空閑,1 為使用)頁(yè)腳內(nèi)容7 餐飲管理理念陳列圖 3.5 桌臺(tái)管理3.2.6 開(kāi)臺(tái)功能:此界面可也選擇用餐人數(shù)及服務(wù)員和用餐時(shí)間圖 3.6 開(kāi)臺(tái)界面3.2.7 點(diǎn)菜功能:?jiǎn)螕糇筮叢俗V,輸入數(shù)量選擇服務(wù)人員,注明備注單擊保存即完成點(diǎn)頁(yè)腳內(nèi)容8 餐飲管理理念陳列菜功能圖 3.7 點(diǎn)菜界面3.2.8 結(jié)賬功能:根據(jù)訂單號(hào)結(jié)賬圖 3.8 結(jié)賬界面4、具體實(shí)現(xiàn)前臺(tái)
6、程序設(shè)計(jì)4.1Cdb 類(lèi):實(shí)現(xiàn) C#與數(shù)據(jù)庫(kù)連接,調(diào)用相應(yīng)存儲(chǔ)過(guò)程public class Cdb頁(yè)腳內(nèi)容9 餐飲管理理念陳列private stringappsettingk1=System.Configuration.ConfigurationManager.AppSettingsk1;private SqlConnection conn = null;public Cdb()conn = new SqlConnection(appsettingk1);public DataSet getDataset(String storename, SqlParameter parameters)S
7、qlCommand cmd = new SqlCommand(storename, conn);cmd.CommandType = CommandType.StoredProcedure;SqlDataAdapter ad = new SqlDataAdapter(cmd);DataSet ds = new DataSet();if (parameters != null)for (int i = 0; i parameters.Length; i+)cmd.Parameters.Add(parametersi);ad.Fill(ds);return ds;public int ExcuteS
8、tore(String storename, SqlParameter parameters)conn.Open();SqlCommand cmd = new SqlCommand(storename, conn);cmd.CommandType = CommandType.StoredProcedure;if (parameters != null)for (int i = 0; i parameters.Length; i+)cmd.Parameters.Add(parametersi);try頁(yè)腳內(nèi)容10 餐飲管理理念陳列cmd.ExecuteNonQuery();return 0;ca
9、tch (Exception k)string m = k.Message;return -1;finallyconn.Close();4.2 登陸界面:public login()InitializeComponent();private void button1_Click(object sender, EventArgs e)if (textUid.Text = | textPwd.Text = )MessageBox.Show(請(qǐng)輸入用戶(hù)名和密碼);return;Business.CtablesAdmin db = new _1217.Business.CtablesAdmin();i
10、f (db.login(textUid.Text, textPwd.Text) = 1)MessageBox.Show(超級(jí)用戶(hù));this.Hide();Main m2 = new Main();m2.ShowDialog();if (db.login (textUid .Text ,textPwd .Text )=0)MessageBox.Show(普通用戶(hù),請(qǐng)通過(guò)PID登陸!);if (db.login(textUid.Text, textPwd.Text) = -1)頁(yè)腳內(nèi)容11 餐飲管理理念陳列MessageBox.Show(對(duì)不起,您沒(méi)有訪(fǎng)問(wèn)權(quán)限!);private void bu
11、tton2_Click(object sender, EventArgs e)Application.Exit();4.3 食物類(lèi)型管理、食物管理、開(kāi)臺(tái)、結(jié)賬/添加食物類(lèi)型private void button1_Click(object sender, EventArgs e)if (textBox1.Text = )MessageBox.Show(不能為空!);return;Business.CtablesAdmin tb = new _1217.Business.CtablesAdmin();if (tb.addfoodtype(textBox1.Text) = 0)MessageBox
12、.Show(添加成功);bindGridView();/刪除食物類(lèi)型private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgse)if (e.ColumnIndex = 0)if (MessageBox.Show(確定要?jiǎng)h除嗎,若刪除則會(huì)刪除該類(lèi)下所有的菜名!,添加成功MessageBoxButtons.OKCancel, MessageBoxIcon.Warning)=DialogResult .Cancel )return;int typeid= int.Parse(dataGri
13、dView1.SelectedCells1.Value.ToString();Business.CtablesAdmin tb = new _1217.Business.CtablesAdmin();if (tb.delfoodtype(typeid) = 0)MessageBox.Show(刪除成功!);頁(yè)腳內(nèi)容12 餐飲管理理念陳列bindGridView();elseMessageBox.Show(刪除失敗!);/添加食物private void button1_Click(object sender, EventArgs e)if (textname.Text = | textunit
14、e.Text = |foodtype.Text = )MessageBox.Show(填寫(xiě)不完整,請(qǐng)重新輸入!);return;Business.CtablesAdmin tb1 = new _1217.Business.CtablesAdmin();Business.CtablesAdmin tb2 = new _1217.Business.CtablesAdmin();int c = int.Parse(tb2.atypeid(foodtype.Text).Rows00.ToString();if (tb1.addfood(c,textname.Text, textunite.Text,
15、textprice.ToString() = 0)MessageBox.Show(食物添加成功!);bindGridView1();elseMessageBox.Show(食物添加失?。?;/刪除食物?private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgse)dataGridView1.AutoGenerateColumns = false;if (MessageBox.Show(確定要?jiǎng)h除嗎?”,”提示, MessageBoxButtons.OKCancel,MessageBox
16、Icon.Warning) = DialogResult.Cancel)return;elseint foodid = int.Parse(dataGridView1.SelectedCells1.Value.ToString();Business.CtablesAdmin tb = new _1217.Business.CtablesAdmin();if (tb.delfoodtype(foodid) = 0)頁(yè)腳內(nèi)容13 餐飲管理理念陳列MessageBox.Show(刪除成功);bindGridView1();elseMessageBox.Show(刪除失敗);/開(kāi)臺(tái)private vo
17、id button1_Click(object sender, EventArgs e)if (numbers.Text = )MessageBox.Show(請(qǐng)輸入用餐人數(shù));int uid = int.Parse(comboBox1.SelectedValue.ToString();if (uid = 0)MessageBox.Show(請(qǐng)選擇服務(wù)員);return;Business.CtablesAdmin t = new CtablesAdmin();t.usetable1(dateTimePicker1.Text, int.Parse(numbers.Text), _tid,comb
18、oBox1.SelectedValue.ToString();t.upstatus(_tid);MessageBox.Show(保存成功);this.Close();private void 取消開(kāi)臺(tái)ToolStripMenuItem_Click(object sender, EventArgs e)if (listView1.SelectedItems.Count != 1)MessageBox.Show(請(qǐng)選擇一張桌子);return;string tid = listView1.SelectedItems0.SubItems1.Text;Business.CtablesAdmin t =
19、 new _1217.Business.CtablesAdmin();if (t.cancleusetable(tid) = 0)Business.CtablesAdmin b = new Business.CtablesAdmin();b.cancleusetable(tid);頁(yè)腳內(nèi)容14 餐飲管理理念陳列b.updatestatus(tid);MessageBox.Show(取消成功);4.4點(diǎn)菜、結(jié)賬/點(diǎn)菜private void button2_Click(object sender, EventArgs e)if (textBox2.Text = | textBox3.Text =
20、 | textBox4.Text = | textBox5.Text= )MessageBox.Show(請(qǐng)?zhí)顚?xiě)完整);return;if (comboBox1.Text = 請(qǐng)選擇)MessageBox.Show(請(qǐng)?zhí)顚?xiě)服務(wù)人員);return;Business.CtablesAdmin t = new _1217.Business.CtablesAdmin();dataGridView1.DataSource = t.getorder(int.Parse(this.id.ToString();common.Cdb c = new common.Cdb();DataSet dt = c.ge
21、tDataset(getorder,new SqlParameter newSqlParameter(ordered,id);common.Cdb ss = new common.Cdb();int aa = int.Parse(ss.getDataset(addorder,new SqlParameternewSqlParameter(tid,id).Tables0.Rows00.ToString();/獲取訂單號(hào)?float lineprice = float.Parse(textBox4.Text.ToString() *int.Parse(textBox5.Text.ToString();int foodid = int.Parse(treeView1.SelectedNode.Tag.ToString();string ud = comboBox1.SelectedValue.ToString();t.guestfood(foodid, int.Parse(textBox5.Text), textBox6.Text, aa,lineprice.ToString(), ud);MessageBox.Show(保存成功);/結(jié)賬private
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 買(mǎi)賣(mài)種子合同范本
- 農(nóng)業(yè)委托種植合同范本
- 體育新城租房合同范本
- 剩余瓷磚售賣(mài)合同范本
- 人工包給勞務(wù)公司合同范本
- 協(xié)助出口退稅合同范本
- 農(nóng)資經(jīng)營(yíng)聘用合同范本
- 3人共同合作合同范本
- lng承運(yùn)合同范本
- 醫(yī)保專(zhuān)員勞動(dòng)合同范本
- 2024年高考真題-政治(福建卷) 含解析
- 大模型技術(shù)深度賦能保險(xiǎn)行業(yè)白皮書(shū)2024
- (蘇少版)綜合實(shí)踐一年級(jí)下冊(cè)第四單元電子教案
- 中國(guó)老年危重患者營(yíng)養(yǎng)支持治療指南2023解讀課件
- 《光伏電站運(yùn)行與維護(hù)》試題及答案一
- DBJ∕T 15-19-2020 建筑防水工程技術(shù)規(guī)程
- 二十四式太極拳教案高一上學(xué)期體育與健康人教版
- 2024-2025學(xué)年外研版(2024)七年級(jí)英語(yǔ)上冊(cè)英語(yǔ)各單元教學(xué)設(shè)計(jì)
- 國(guó)家病案質(zhì)控死亡病例自查表
- 一年級(jí)體育教案全冊(cè)(水平一)下冊(cè)
- 全身麻醉后護(hù)理常規(guī)
評(píng)論
0/150
提交評(píng)論