餐饮管理餐饮管理系统代码.docx
- 文档编号:363508
- 上传时间:2022-10-09
- 格式:DOCX
- 页数:13
- 大小:158.12KB
餐饮管理餐饮管理系统代码.docx
《餐饮管理餐饮管理系统代码.docx》由会员分享,可在线阅读,更多相关《餐饮管理餐饮管理系统代码.docx(13页珍藏版)》请在冰豆网上搜索。
餐饮管理餐饮管理系统代码
(餐饮管理)餐饮管理系统代码
餐饮管理系统代码
1usingSystem;
2using.Generic;
3using;
4using;
5using;
6using;
7using.Forms;
8using;
9namespace餐饮管理系统
10...{
11publicpartialclassfrmManagement:
Form
12...{
13ArrayListRoomStatus=newArrayList();
14ArrayListVipClass=newArrayList();
15publicfrmManagement()
16...{
17InitializeComponent();
18}
19
20privatevoid房间类型BindingNavigatorSaveItem_Click(objectsender,EventArgse)
21...{
22();
23this.房间类型();
24this.房间类型(.房间类型);
25}
26
27privatevoidfrmManagement_Load(objectsender,EventArgse)
28...{
29//TODO:
这行代码将数据加载到表“dieteticManagementDataSet.管理员”中。
您可以根据需要移动或移除它。
30this.管理员(.管理员);
31//TODO:
这行代码将数据加载到表“”中。
您可以根据需要移动或移除它。
32.Fill(.Vip);
33
34//TODO:
这行代码将数据加载到表“dieteticManagementDataSet.餐牌”中。
您可以根据需要移动或移除它。
35this.餐牌(.餐牌);
36//TODO:
这行代码将数据加载到表“dieteticManagementDataSet.食品类别”中。
您可以根据需要移动或移除它。
37this.食品类别(.食品类别);
38//TODO:
这行代码将数据加载到表“dieteticManagementDataSet.商品”中。
您可以根据需要移动或移除它。
39
40//TODO:
这行代码将数据加载到表“dieteticManagementDataSet.餐房”中。
您可以根据需要移动或移除它。
41this.餐房(.餐房);
42//TODO:
这行代码将数据加载到表“dieteticManagementDataSet.房间类型”中。
您可以根据需要移动或移除它。
43this.房间类型(.房间类型);
44("普通会员");
45("中级会员");
46("高级会员");
47("可供");
48("预订");
49("占用");
50("停用");
51("脏台");
52性别.Add("男");
53性别.Add("女");
54级别.Clear();
55foreach(stringsinVipClass)
56级别.Add(s);
57餐台状态.Clear();
58foreach(stringsinRoomStatus)
59餐台状态.Add(s);
60string[]sdata=.GetRoomClass();
61房间类型.Clear();
62for(inti=0;i<;i++)
63房间类型.Add(sdata[i]);
64}
65
66privatevoid餐房BindingNavigatorSaveItem_Click(objectsender,EventArgse)
67...{
68();
69this.餐房();
70this.餐房(.餐房);
71}
72
73privatevoidAdd_Click(objectsender,EventArgse)
74...{
75//newfrmAddAndModification(餐房DataGridView,.餐房).Show();
76
77frm餐房f=newfrm餐房(.餐房,"Add");
78foreach(stringsinRoomStatus)
79f.餐台状态.Add(s);
80string[]sdata=.GetRoomClass();
81for(inti=0;i<;i++)
82f.房间类型.Add(sdata[i]);
83f.ShowDialog();
84//f.Dispose();
85}
86
87privatevoidDelete_Click(objectsender,EventArgse)
88...{
89if(("确定要删除吗?
","删除确定",)==)
90...{
91stringno=餐房.Cells[0].();
92.餐房.(no).Delete();
93}
94}
95
96privatevoidModification_Click(objectsender,EventArgse)
97...{
98stringno=餐房.Cells[0].();
99using(frm餐房f=newfrm餐房(.餐房.(no),"Modification"))
100...{
101foreach(stringsinRoomStatus)
102f.餐台状态.Add(s);
103string[]sdata=.GetRoomClass();
104for(inti=0;i<;i++)
105f.房间类型.Add(sdata[i]);
106f.ShowDialog();
107}
108
109}
110
111privatevoidbutton1_Click(objectsender,EventArgse)
112...{
113using(frm房间类型f=newfrm房间类型(.房间类型,"Add"))
114...{
115f.ShowDialog();
116}
117}
118
119privatevoidbutton2_Click(objectsender,EventArgse)
120...{
121if(("确定要删除吗?
","删除确定",)==)
122...{
123stringno=房间类型.Cells[0].();
124.房间类型.(no).Delete();
125}
126}
127
128privatevoidbutton3_Click(objectsender,EventArgse)
129...{
130stringno=房间类型.Cells[0].();
131using(frm房间类型f=newfrm房间类型(.房间类型.(no),"Modification"))
132...{
133f.ShowDialog();
134}
135}
136
137privatevoid商品类型添加_Click(objectsender,EventArgse)
138...{
139using(frm商品类型f=newfrm商品类型(.食品类别,"Add"))
140...{
141f.ShowDialog();
142}
143}
144
145privatevoid商品类型删除_Click(objectsender,EventArgse)
146...{
147if(("确定要删除吗?
","删除确定",)==)
148...{
149stringno=商品类型.Cells[0].();
150.食品类别.(no).Delete();
151}
152}
153
154privatevoid商品类型修改_Click(objectsender,EventArgse)
155...{
156stringno=商品类型.Cells[0].();
157using(frm商品类型f=newfrm商品类型(.食品类别.(no),"Modification"))
158...{
159f.ShowDialog();
160}
161}
162
163privatevoid商品类型保存_Click(objectsender,EventArgse)
164...{
165();
166this.食品类别();
167this.食品类别(.食品类别);
168}
169
170privatevoid餐牌添加_Click(objectsender,EventArgse)
171...{
172using(frm餐牌f=newfrm餐牌(.餐牌,"Add"))
173...{
174DataTableBigClass=.GetBigClass();
175stringSBigClass;
176for(inti=0;i<.Count;i++)
177...{
178SBigClass=[i]["食品类别"].ToString();
179f.食品类别.Add(SBigClass);
180}
181f.ShowDialog();
182}
183}
184
185privatevoid餐牌删除_Click(objectsender,EventArgse)
186...{
187if(("确定要删除吗?
","删除确定",)==)
188...{
189stringno=餐牌.Cells[0].();
190.餐牌.(no).Delete();
191}
192}
193
194privatevoid餐牌修改_Click(objectsender,EventArgse)
195...{
196stringno=餐牌.Cells[0].();
197using(frm餐牌f=newfrm餐牌(.餐牌.(no),"Modification"))
198...{
199f.ShowDialog();
200}
201}
202
203privatevoid餐牌保存_Click(objectsender,EventArgse)
204...{
205();
206this.餐牌();
207this.餐牌(.餐牌);
208}
209
210privatevoid房间类型保存_Click(objectsender,EventArgse)
211...{
212();
213this.房间类型();
214this.房间类型(.房间类型);
215}
216
217privatevoid餐房保存_Click(objectsender,EventArgse)
218...{
219();
220this.餐房();
221this.餐房(.餐房);
222}
223
224privatevoidVip添加_Click(objectsender,EventArgse)
225...{
226using(frmVipf=newfrmVip(.Vip,"Add"))
227...{
228f.性别.Add("男");
229f.性别.Add("女");
230foreach(stringsinVipClass)
231f.级别.Add(s);
232f.ShowDialog();
233}
234}
235
236privatevoidVip修改_Click(objectsender,EventArgse)
237...{
238stringno=.Cells[0].();
239using(frmVipf=newfrmVip(..Find(no),"Modification"))
240...{
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 餐饮 管理 系统 代码