C#点餐系统
一个人的博客@你 人气:0一、概述
美食行业现如今也越利用信息化技术来提高点餐的效率和质量,小小的一个系统不仅可以提高餐厅的档次,也减轻了服务员的工作量,有效的减少了因为人工点菜而容易产生的错误,.....
该系统属于简易版的,适用于初学者学习,主要功能有以下几个模块:1、用户管理;2、菜单管理;3、点餐管理等。具体请详看下面的截图
二、开发环境
语言:C#
数据库:SQLServer 2008 R2
开发工具:Visual Studio 2015
注:对于开发环境并非仅此一种,其他的也OK
三、部分截图展示
Tips
简易版的点餐管理系统基本呈现在上图所示
using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace 点餐管理系统 { public partial class FormMain : Form { public string constr = ConfigurationManager.ConnectionStrings["sqlserver"].ConnectionString; public string UserId = ""; public FormMain() { InitializeComponent(); } private void 用户列表ToolStripMenuItem_Click(object sender, EventArgs e) { FormUserInfo frm = new FormUserInfo(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.UserName = UserId; frm.Show(); } private void 密码修改ToolStripMenuItem_Click(object sender, EventArgs e) { ChangePassword frm = new ChangePassword(UserId); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.Show(); } private void 菜单信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormRoomInfo frm = new FormRoomInfo(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.UserName = UserId; frm.Show(); } private void 点餐管理ToolStripMenuItem_Click(object sender, EventArgs e) { FormCustomerInfo frm = new FormCustomerInfo(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.constr = constr; frm.UserName = UserId; frm.Show(); } private void 关于系统ToolStripMenuItem_Click(object sender, EventArgs e) { FormAbout frm = new FormAbout(); frm.MdiParent = this; frm.StartPosition = FormStartPosition.CenterScreen; frm.Show(); } private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { Application.Exit(); } } }
加载全部内容