餐飲管理方案系統(tǒng)實訓報告_第1頁
餐飲管理方案系統(tǒng)實訓報告_第2頁
餐飲管理方案系統(tǒng)實訓報告_第3頁
餐飲管理方案系統(tǒng)實訓報告_第4頁
餐飲管理方案系統(tǒng)實訓報告_第5頁
已閱讀5頁,還剩16頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、餐飲管理系統(tǒng)1、緒論近年來,隨著人們生活水平的不斷提高,餐飲業(yè)的消費持續(xù)增長,競爭越來越激烈。然而,傳統(tǒng)餐飲企業(yè)的日常運作是靠人工管理,從原材料入庫到客人點單,再到結(jié)賬基本上由人工完場記錄,這樣不僅耗費人力資源而且容易導致記錄 丟失或重復等錯誤,造成管理水平低下。2、需求分析本系統(tǒng)應用計算機對餐飲企業(yè)信息進行管理,具有手工管理所無法比擬多的優(yōu)點,極大地提高了信息管理的效率。本系統(tǒng)運用Microsoft SQL Server2005為后臺數(shù)據(jù)庫,以C#為前臺開發(fā)工具,系統(tǒng)實現(xiàn)了前臺管理、食物類型管理、食 物管理、桌臺管理、開臺信息、點菜、結(jié)賬的功能。餐廳管理部分:實現(xiàn)菜單類別管理、菜式管理、桌臺

2、管理和預訂管理。菜單類別管理:實現(xiàn)食物類別的添加和刪除,刪除時要將此食物類別下的食物一 并刪除(給出用戶提示);菜式管理:實現(xiàn)菜式的添加和刪除;3、設(shè)計3.1數(shù)據(jù)庫設(shè)計數(shù)據(jù)表設(shè)計用戶表W user 表:列名:類型說明備注UseridNvarchar(50)用戶ID主鍵User nameNvarchar(50)用戶名Useride ntityNvarchar(50)身份證User birthdayDate生日Pho neNvarchar(50)電話Gen derInt性別UseraddressNvarchar(50)地址UsertypeInt用戶類型0為普通用戶,1 為超級管理員PwdNvarc

3、har(50)用戶密碼桌子表W table 表列名:類型說明備注TidNvarchar(50)桌了編號主鍵Tn ameNvarchar(50)餐桌名Positi onNvarchar(100)餐桌位置DescribeNvarchar(500)描述Statusint1正在使用,0為空 閑開臺記錄(用餐記錄)W orders 表列名:類型說明備注OrderedInt訂單ID主鍵timeNvarchar(50)用餐時間或者預 定用餐時間NumbersInt用餐人數(shù)TidNvarchar(50)外鍵,來自w tableUseridNvarchar(50)接待人員外鍵,來自W USERAmountDec

4、imal(18,2)實收金額客戶用餐明細W guestfood 表列名:類型說明備注IdInt自增主鍵FoodidInt外鍵,來自w foodNumberint數(shù)量RemarkNvarchar(50)備注Orderedint訂單IDLin epriceDecimal(18,2)行計算價UseridNvarchar(50)服務(wù)人員食物類型W_foodtype 表列名:類型說明備注TypeidInt食物類別ID主鍵FoodtypeNvarchar(50)食物類別名餐廳食物W food 表列名:類型說明備注FoodidInt食物ID主鍵TypeidInt食物類別IDFood nameNvarchar

5、(50)名稱FoodpriceNvarchar(50)價格UniteNvarchar(50)單位圖1業(yè)務(wù)流程圖圖2餐飲管理系統(tǒng)功能結(jié)構(gòu)圖3.2前臺設(shè)計3.2.1登陸界面:功能:用戶可以通過此界面登陸系統(tǒng)圖3.1登陸界面3.2.2 main界面的實現(xiàn)功能:前臺管理,實現(xiàn)各種界面管理,可以通過圖片信息查看桌子是否已使用, 也可選中圖標單擊右鍵選擇相應業(yè)務(wù)圖3.2主界面3.2.3食物類型管理功能:可自動添加食物類別,刪除食物類別的同時也刪除該類別下的食物dfoodtype2菜單類別:添加取消類別卬蒸單類別名稱刪除圖3.3食物類型管理3.2.4食物管理功能:可添加刪除食物圖3.4食物管理3.2.5桌臺

6、信息功能:可查看桌子的具體信息及使用狀態(tài)(0為空閑,1為使用)圖3.5桌臺管理3.2.6開臺功能:此界面可也選擇用餐人數(shù)及服務(wù)員和用餐時間圖3.6開臺界面3.2.7點菜功能:單擊左邊菜譜,輸入數(shù)量選擇服務(wù)人員,注明備注單擊保存即完成點菜功能圖3.7點菜界面3.2.8結(jié)賬功能:根據(jù)訂單號結(jié)賬圖3.8結(jié)賬界面4、具體實現(xiàn)前臺程序設(shè)計4.1Cdb類:實現(xiàn)C#與數(shù)據(jù)庫連接,調(diào)用相應存儲過程public class Cdbprivate string appsettingk1=System.Configuration. ConfigurationManager .AppSettings "k1

7、" ;private SqlConnection conn = null ;public Cdb()conn = new SqlConnection (appsettingk1);public DataSet getDataset( String storename, SqlParameter parameters) SqlCommandcmd = new SqlCommand(storename, conn); cmd.CommandType = CommandTyp.eStoredProcedure;SqlDataAdapter ad = new SqlDataAdapter (

8、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 ExcuteStore( String storename, SqlParameter parameters) conn.Open();SqlCommandcmd = new SqlCommand(storename, conn); cmd.CommandTy

9、pe =CommandTyp.eStoredProcedure;if (parameters !=null )for ( int i = 0; i < parameters.Length; i+) cmd.Parameters.Add(parametersi);trycmd.ExecuteNonQuery();return 0;catch ( Exception k)string m = k.Message;return -1;finally conn.Close();4.2 登陸界面:public login()InitializeComponent();private void bu

10、tton1_Click( object sender, EventArgs e)if (textUid.Text = "" | textPwd.Text = "" )MessageBox.Show( "請輸入用戶名和密碼 "); return ;Business. CtablesAdmin db = new_1217.Business. CtablesAdmin (); if (db.login(textUid.Text, textPwd.Text) = 1)MessageBox.Show( "超級用戶 ");th

11、is .Hide();Main m2 = new Main();m2.ShowDialog();if (db.login (textUid .Text ,textPwd .Text )=0)MessageBoxShow(”普通用戶,請通過 PID登陸! ”);if (db.login(textUid.Text, textPwd.Text) = -1)MessageBox.Show( " 對不起,您沒有訪問權(quán)限! ");private void button2_Click( object sender, EventArgs e)Application .Exit();4.3

12、食物類型管理、食物管理、開臺、結(jié)賬/ 添加食物類型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.Show( " 添加成功 ")

13、; bindGridView();/ 刪除食物類型private void dataGridView1_CellContentClick( object sender, DataGridViewCellEventArgs e)if (e.ColumnIndex = 0)"," 添加.Cancel )if ( MessageBox.Show( "確定要刪除嗎,若刪除則會刪除該類下所有的菜名! 成功 " MessageBoxButtons .OKCancel, MessageBoxIcon .Warning)= DialogResult return ;in

14、t typeid= int .Parse(dataGridView1.SelectedCells1.Value.ToString();Business. CtablesAdmin tb = new _1217.Business. CtablesAdmin (); if (tb.delfoodtype(typeid) = 0)MessageBox.Show( " 刪除成功! ");bindGridView();elseMessageBox.Show( " 刪除失??! ");/ 添加食物private void button1_Click( object s

15、ender, EventArgs e)if (textname.Text = "" | textunite.Text = "" |foodtype.Text = "" ) MessageBox.Show( "填寫不完整,請重新輸入! "); return ;Business.CtablesAdmin tb1 = new_1217.Business. CtablesAdmin ();Business.CtablesAdmin tb2 = new_1217.Business. CtablesAdmin ();int c

16、 = int .Parse(tb2.atypeid(foodtype.Text).Rows00.ToString();if (tb1.addfood(c,textname.Text, textunite.Text, textprice.ToString() = 0)MessageBox.Show( "食物添加成功! ");bindGridView1();elseMessageBox.Show( "食物添加失敗! ");/ 刪除食物 ?private void dataGridView1_CellContentClick( object sender, D

17、ataGridViewCellEventArgs e) dataGridView1.AutoGenerateColumns =false ;if ( MessageBox.Show( "確定要刪除嗎?” ,”提示 ", MessageBoxButtons .OKCancel, MessageBoxIcon.Warning) = DialogResult .Cancel) return ;elseint foodid = int .Parse(dataGridView1.SelectedCells1.Value.ToString(); Business. CtablesAdm

18、in tb = new_1217.Business. CtablesAdmin ();if (tb.delfoodtype(foodid) = 0)MessageBox.Show( "刪除成功 "); bindGridView1();else MessageBoxShow(“刪除失敗");/ 開臺private void button1_Click( object sender, EventArgs e)if (numbers.Text ="" )MessageBoxShow("請輸入用餐人數(shù)");int uid = int

19、 .Parse(comboBox1.SelectedValue.ToString();if (uid = 0)MessageBoxShow("請選擇服務(wù)員");return ;Business.CtablesAdmin t = new CtablesAdmin ();t.usetable1(dateTimePicker1.Text,int .Parse(numbers.Text), _tid,comboBox1.SelectedValue.ToString();t.upstatus(_tid);MessageBoxShow("保存成功"); this .

20、Close();private void 取消開臺 ToolStripMenuItem_Click( object sender, EventArgs e) if (listView1.SelectedItems.Count != 1)MessageBoxShow("請選擇一張桌子");return ;string tid = listView1.SelectedItems0.SubItems1.Text;Business. CtablesAdmin t = new _1217.Business. CtablesAdmin (); if (t.cancleusetable(

21、tid) = 0)Business.CtablesAdmin b = new Business. CtablesAdmin ();b.cancleusetable(tid);b.updatestatus(tid);MessageBox.Show( "取消成功 ");4.4 點菜、結(jié)賬/ 點菜private void button2_Click( object sender, EventArgs e)if (textBox2.Text = "" | textBox3.Text = "" | textBox4.Text ="&q

22、uot; |textBox5.Text = "" )MessageBox.Show( "請?zhí)顚懲暾?"); return ;if (comboBox1.Text = " 請選擇 ")MessageBox.Show( "請?zhí)顚懛?wù)人員 "); return ;Business. CtablesAdmin t = new _1217.Business. CtablesAdmin (); dataGridView1.DataSource = t.getorder(int .Parse( this .id.ToString

23、();common. Cdbc = new common.Cdb();DataSet dt = c.getDataset("getorder" , new SqlParameter newSqlParameter ( "ordered" ,id);common. Cdbss = newcommon.Cdb();int aa = int .Parse(ss.getDataset( "addorder" ,new SqlParameter newSqlParameter ( "tid" ,id).Tables0.Row

24、s00.ToString();/ 獲取訂單號 ?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);Me

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論