餐饮管理系统代码大全_第1页
餐饮管理系统代码大全_第2页
餐饮管理系统代码大全_第3页
餐饮管理系统代码大全_第4页
餐饮管理系统代码大全_第5页
已阅读5页,还剩8页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 餐饮管理系统代码 1 using System; 2using System.Collections.Generic; 4using System.Data; 5using System.Drawing; 6using System.Text; 7using System.Windows.Forms; 8using System.Collections; 9namespace 餐饮管理系统 10. 11public partial class frmManagement : Form 12 13 14 15 16 17 18 19 20 . ArrayList RoomStatus = ne

2、w ArrayList(); ArrayList VipClass = new ArrayList(); public frmManagement() . InitializeComponent(); private void 房间类型 BindingNavigatorSaveItem_Click(object sender, EventArgs e) 21 . 22 this.Validate(); 23 this. 房间类型 BindingSource.EndEdit(); 24 this. 房间类型 TableAdapter.Update(this.dieteticManagementD

3、ataSet. 房间类 型); 25 26 27 private void frmManagement_Load(object sender, EventArgs e) 28 . 29 / TODO: 这行代码将数据加载到表 “ dieteticManagementDataSet. 管理员”中。 您可以根据需要移动或移除它。 30 this.管理员 TableAdapter.Fill(this. dieteticManagementDataSet.管理员); 31 / TODO:这行代码将数据加载到表dieteticManagementDataSet.Vip ”中。 您可以根据需要移动或移除它

4、。 32 this.vipTableAdapter.Fill(this.dieteticManagementDataSet.Vip); 33 33 / TODO: 这行代码将数据加载到表“ dieteticManagementDataSet. 餐牌”中。 您可以根据需要移动或移除它。 34 this.餐牌 TableAdapter.Fill(this.dieteticManagementDataSet.餐牌); 35 II TODO:这行代码将数据加载到表dieteticManagementDataSet.食品类别” 中。您可以根据需要移动或移除它。 36 this. 食 品 类 别 Tabl

5、eAdapter.Fill(this.dieteticManagementDataSet. 食 品 类 别) ; 37 II TODO: 这行代码将数据加载到表“ dieteticManagementDataSet. 商品”中。 您可以根据需要移动或移除它。 39 38 II TODO: 这行代码将数据加载到表“ dieteticManagementDataSet. 餐房”中。 您可以根据需要移动或移除它。 39 this.餐房 TableAdapter.Fill(this.dieteticManagementDataSet.餐房); 40 II TODO:这行代码将数据加载到表dieteti

6、cManagementDataSet.房间类型” 中。您可以根据需要移动或移除它。 41 this. 房 间 类 型 TableAdapter.Fill(this.dieteticManagementDataSet. 房 间 类 型); 42 VipClass.Add( 普通会员 ); 43 VipClass.Add( 中级会员 ); 44 VipClass.Add( 高级会员 ); 45 RoomStatus.Add( 可供); 46 RoomStatus.Add( 预订); 47 RoomStatus.Add( 占用); 48 RoomStatus.Add( 停用); 49 RoomSta

7、tus.Add( 脏台); 50 性别 ComboBox.Items.Add( 男); 51 性别 ComboBox.Items.Add( 女); 52 级别 ComboBox.Items.Clear(); 53 foreach (string s in VipClass) 54 级别 ComboBox.Items.Add(s); 55 餐台状态 ComboBox.Items.Clear(); 56 foreach (string s in RoomStatus) 57 餐台状态 ComboBox.Items.Add(s); 58 string sdata = Program.DBOperto

8、r.GetRoomClass(); 59 房间类型 ComboBox.Items.Clear(); 60 for (int i = 0; i sdata.Length; i+) 61 房间类型 ComboBox.Items.Add(sdatai); 76 77 78 79 80 81 82 83 84 85 86 MessageBoxButtons.YesNo) = DialogResult.Yes) 90. 91 string no 餐房 65 66 private void 餐房 BindingNavigatorSaveItem_Click(object sender, EventArgs

9、 e) 67 . 68 this.Validate(); 69 this. 餐房 BindingSource.EndEdit(); 70 this. 餐房 TableAdapter.Update(this.dieteticManagementDataSet. 餐房 ); 71 72 73 private void Add_Click(object sender, EventArgs e) 74 . 75 /new frmAddAndModification( 餐 房 DataGridView, this.dieteticManagementDataSet. 餐房 ).Show(); frm 餐

10、房 f=new frm 餐房 (this.dieteticManagementDataSet. 餐房 ,Add); foreach (string s in RoomStatus) f. 餐台状态 ComboBox.Items.Add(s); string sdata = Program.DBOpertor.GetRoomClass(); for (int i = 0; i sdata.Length; i+) f. 房间类型 ComboBox.Items.Add(sdatai); f.ShowDialog(); / f.Dispose(); 87 private void Delete_Cli

11、ck(object sender, EventArgs e) 88 . 89 if (MessageBox.Show( 确 定 要 删 除 吗 ?, 删 除 确 定 , DataGridView.CurrentRow.Cells0.Value.ToString(); 92 this.dieteticManagementDataSet. 餐房 .Rows.Find(no).Delete(); 93 94 95 96 private void Modification_Click(object sender, EventArgs e) 97 . 98 string no = 餐房 DataGrid

12、View.CurrentRow.Cells0.Value.ToString(); 99 using (frm 餐房 f = new frm 餐房 (this.dieteticManagementDataSet. 餐 房 .Rows.Find(no), Modification) 100 . 101 foreach (string s in RoomStatus) 102 f. 餐台状态 ComboBox.Items.Add(s); 103 string sdata = Program.DBOpertor.GetRoomClass(); 104 for (int i = 0; i sdata.L

13、ength; i+) 105 106 107 108 109 110 111 112 113 房间类型 ,Add) 114 115 116 117 118 119 f. 房间类型 ComboBox.Items.Add(sdatai); f.ShowDialog(); private void button1_Click(object sender, EventArgs e) . using (frm 房间类型 f = new frm 房间类型 (this.dieteticManagementDataSet. . f.ShowDialog(); private void button2_Clic

14、k(object sender, EventArgs e) . 120 121 MessageBoxButtons.YesNo) = DialogResult.Yes) 122. if (MessageBox.Show( 确 定 要 删 除 吗 ?, 删 除 确 定 , 123 DataGridView.CurrentRow.Cells0.Value.ToString(); 124 125 126 127 string no 房间类型 this.dieteticManagementDataSet. 房间类型 .Rows.Find(no).Delete(); private void butto

15、n3_Click(object sender, EventArgs e) . 128 129 130 DataGridView.CurrentRow.Cells0.Value.ToString(); 131 using (frm 房间类型 f = new frm 房间类型 (this.dieteticManagementDataSet. 房间类型 .Rows.Find(no), Modification) 132 133 string no 房间类型 134 135 . f.ShowDialog(); 136 137 138 139 食品类别 , Add) private void 商品类型添

16、加 _Click(object sender, EventArgs e) . using (frm 商品类型 f = new frm 商品类型 (this.dieteticManagementDataSet. 140. 141 f.ShowDialog(); 143 144 145 private void 商品类型删除 _Click(object sender, EventArgs e) 146 . 147 if (MessageBox.Show( 确 定 要 删 除 吗 ?, 删 除 确 定 , MessageBoxButtons.YesNo) = DialogResult.Yes) 14

17、8 . 149 string no = 商 品 类 型 DataGridView.CurrentRow.Cells0.Value.ToString(); 150 this.dieteticManagementDataSet. 食品类别 .Rows.Find(no).Delete(); 151 152 153 154 private void商品类型修改 _Click(object sender, EventArgs e) 155 . 156 string no = 商 品 类 型 DataGridView.CurrentRow.Cells0.Value.ToString(); 157 usin

18、g (frm 商品类型 f = new frm 商品类型 (this.dieteticManagementDataSet. 食品类别 .Rows.Find(no), Modification) 158 159 160 161 162 163 164 . f.ShowDialog(); private void 商品类型保存 _Click(object sender, EventArgs e) . 165 this.Validate(); 166 this.食品类别 BindingSource.EndEdit(); 167 this.食品类别 TableAdapter.Update(this.dieteticManagementDataSet.食品类 别) ; 168 169 170 171 172 Add) private void 餐牌添加 _Click(object send

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论