小型餐饮管理系统.doc_第1页
小型餐饮管理系统.doc_第2页
小型餐饮管理系统.doc_第3页
小型餐饮管理系统.doc_第4页
小型餐饮管理系统.doc_第5页
已阅读5页,还剩18页未读 继续免费阅读

下载本文档

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

文档简介

数据库原理与应用数据库原理与应用 课程设计课程设计 分析与设计报告分析与设计报告 题题 目目 小型餐饮管理系统小型餐饮管理系统 专业班级专业班级 学学 号号 姓姓 名名 指导老师指导老师 完成时间完成时间 2012 1 132012 1 13 目目 录录 1 设计任务与要求设计任务与要求 1 2 需求分析需求分析 1 2 1 功能需求 1 2 2 性能需求 1 2 3 数据需求 1 2 4 运行需求 1 3 系统总体设计系统总体设计 2 3 1 系统总体框架设计 2 3 2 各模块功能分析 2 2 系统主界面主要功能 系统主界面主要功能 3 4 数据库设计数据库设计 4 4 1 概念结构设计 4 4 2 逻辑结构设计 4 4 3 物理结构设计 5 5 运行结果和测试运行结果和测试 16 6 参考资料参考资料 21 1 1 设计任务与要求设计任务与要求 主要说明所选课题的目的 任务和意义 使用软件工程的思路确定总体方案 使学生掌握数据库的基本概念 完成详细的需求分析 涉及合理的数据库 能够实现对小型餐饮业的日常业务管理 包括客户信息 餐饮信息的增加 删除 修改和查询 客户消费的结账和查询等操作 采用设计工具完成概念结构设计 形成清晰的 ER 模型 建立规范化程度较高的关系模 型 编码测试 最终完成开发任务 具体过程包括 系统方案的确定 数据库设计 数据库结构的实现 系统主界面设计 模块功能的详细实现 调试完成系统 撰写并提交设计报告 设计报告内容包括 设计题目 任务要求 系统总体方案 各个模块实现和数据流图 心得体会和参考资料 2 需求分析需求分析 2 1 功能需求功能需求 餐饮管理系统中主要包括对以下几种管理 账单管理 财务管理 订餐管理 菜品 管理 系统管理 1 系统管理 系统管理包括用户名和密码 主要用于用户登陆界面登陆和查询 2 账单管理 账单管理包括账单号和餐台 每一个餐台对应一个一个账单号 通过 餐台号的记录来对对应的餐台进行记账管理 即就是记录每一个餐台的消费金额 账单 管理是财务管理的一个小分支 是服务于财务管理的 3 财务管理 包括账单号 时间和账目 账目用于记录账单号的消费金额及时间 以便用于结算和汇总 每日的结算要通过对每个餐台号的消费金额汇总来记录 然后由 每日的结算汇总得出每月的结算 帐务系统功能的完整性 一旦该系统正式运行 餐厅 每日营业帐和全部往来客户帐务的操作结算都将依靠计算机 该系统面对当前餐饮业各 种复杂的结算要求应具有很强的应变能力 4 订餐管理 订餐管理仅包括单价 订餐管理是便于顾客订餐和账单管理时对各个 菜品消费金额的记录 这样便于账单管理和财务汇总 5 菜品管理 菜品管理包括菜名 菜品类别和菜品品种 菜品管理便于顾客点菜和 记录各个餐台的消费记账 菜品品种也便于餐馆的食材采购 2 2 性能需求性能需求 该餐饮系统操作简单方便可适应各类中小型餐馆 2 3 数据需求数据需求 账单管理中账单号是主键 每一个餐台对应一个账单号 财务管理中账单号是主键 每一个账单号都有对应的时间和账目记录 订餐管理中单价就是主键 菜品管理中菜名是 主键 系统管理中用户名是主键 2 4 运行需求运行需求 2 4 1 用户界面 本界面是由人工按菜单提示输入信号 软件对其进行处理 2 4 2 硬件接口 2 此系统存在点菜机按键与屏幕映射方面的接口 2 4 3 软件接口 本软件同外部无软件接口 2 4 4 故障处理 软件故障 系统运行过程中可能在输入密码后并无任何提示信息 或者查询详单时无 输出信息 内存泄漏等 这些都给用户带来不必要的麻烦 故在程序设计中 代码编写以 及测试的时候都要仔细关注这些方面的问题 硬件故障 某些硬件故障无法解决 应与相关部门及时联系 解决问题 3 系统总体设计系统总体设计 3 1 系统总体框架设计系统总体框架设计 根据业务情况 该系统共分为开台管理 客人买单 菜谱信息设置 客户点菜 酒水 信息设置等模块 系统结构图如图 3 1 所示 小型餐饮业管理系统 系统管理账单管理订餐管理财务管理 菜品管理 用 户 管 理 密 码 管 理 账 单 号 管 理 餐 台 管 理 订 单 查 询 餐 台 点 餐 管 理 每 日 账 目 管 理 账 目 时 间 管 理 菜 名 管 理 菜 品 管 理 菜 价 管 理 类 别 管 理 图图 3 13 1 餐饮管理系统结构图餐饮管理系统结构图 3 2 各模块功能分析各模块功能分析 1 系统登录窗口主要功能 系统登录窗口主要功能 1 以图标形式显示数据库中操作员 并凭口令登入到主界面 2 操作员输入错误密码提醒错误并返回 三次输入错误口令则退出系统 3 实现权限登录 系统管理员拥有一切权利 其他操作员则被限制一些操作权限 2 系统主界面主要功能 系统主界面主要功能 3 1 根据操作员权限设置相应权限的菜单和工具栏功能 2 可通过菜单或快捷键进入相应子界面 3 显示了系统当前时间和相应操作员 3 系统菜谱信息设置界面主要功能 系统菜谱信息设置界面主要功能 实现对菜谱信息的添加 修改 删除 查询的功能 4 4 系统开台管理界面主要功能 系统开台管理界面主要功能 1 以图标模式显示空台 营业台 点击台号图标则自动显示相应台号信息 2 通过输入台号检索符合条件的台号 3 点击空房自动弹出与昂查询窗口从而自动开台 5 5 系统点菜界面主要功能 系统点菜界面主要功能 1 实现菜谱 酒水查询的链接 2 点击 开始点菜 按钮台号状态自动变为开台 并聚焦到编号栏 3 在编号栏输入菜编号按回车自动录入菜的信息 4 自动生成结账编号 输入菜数量自动计算合计消费金额 5 可实现挂单 读单 放弃开台和点菜完毕返回的功能 4 数据库设计数据库设计 4 1 概念结构设计概念结构设计 关联 属于 进货 总收入 登录 用户名 用户密码 power Variable characters 10 Variable characters 12 Integer Identifier 1 进货单 商品名 商品价格 进货日期 进货数量 Variable characters 12 Float Date if exists select 1 from sys sysforeignkey where role FK JINHUO JINHUO JINHU ODA then alter table jinhuo delete foreign key FK JINHUO JINHUO JINHUODA end if if exists select 1 from sys sysforeignkey where role FK JINHUO JINHUO2 SHAN GPIN then alter table jinhuo delete foreign key FK JINHUO JINHUO2 SHANGPIN end if if exists select 1 from sys sysforeignkey where role FK XIAOFEID GUANLIAN2 ZHUOHAO then alter table xiaofeidan delete foreign key FK XIAOFEID GUANLIAN2 ZHUOHAO end if if exists select 1 from sys sysforeignkey where role FK XIAOFEID ZONGSHOUR SHOURU then alter table xiaofeidan delete foreign key FK XIAOFEID ZONGSHOUR SHOURU end if if exists select 1 from sys sysforeignkey where role FK ZHUOHAO GUANLIAN XI AOFEID then alter table zhuohao delete foreign key FK ZHUOHAO GUANLIAN XIAOFEID end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name shuyu FK and t table name caishi then drop index caishi shuyu FK end if if exists select 1 from sys sysindex i sys systable t 6 where i table id t table id and i index name caishi PK and t table name caishi then drop index caishi caishi PK end if if exists select 1 from sys systable where table name caishi and table type in BASE GBL TEMP then drop table caishi end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name denglu PK and t table name denglu then drop index denglu denglu PK end if if exists select 1 from sys systable where table name denglu and table type in BASE GBL TEMP then drop table denglu end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name jinhuo2 FK and t table name jinhuo then drop index jinhuo jinhuo2 FK end if if exists select 1 from sys sysindex i sys systable t where i table id t table id 7 and i index name jinhuo FK and t table name jinhuo then drop index jinhuo jinhuo FK end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name jinhuo PK and t table name jinhuo then drop index jinhuo jinhuo PK end if if exists select 1 from sys systable where table name jinhuo and table type in BASE GBL TEMP then drop table jinhuo end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name jinhuodan PK and t table name jinhuodan then drop index jinhuodan jinhuodan PK end if if exists select 1 from sys systable where table name jinhuodan and table type in BASE GBL TEMP then drop table jinhuodan end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name shangpin PK 8 and t table name shangpin then drop index shangpin shangpin PK end if if exists select 1 from sys systable where table name shangpin and table type in BASE GBL TEMP then drop table shangpin end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name shouru PK and t table name shouru then drop index shouru shouru PK end if if exists select 1 from sys systable where table name shouru and table type in BASE GBL TEMP then drop table shouru end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name zongshouru FK and t table name xiaofeidan then drop index xiaofeidan zongshouru FK end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name guanlian2 FK and t table name xiaofeidan 9 then drop index xiaofeidan guanlian2 FK end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name xiaofeidan PK and t table name xiaofeidan then drop index xiaofeidan xiaofeidan PK end if if exists select 1 from sys systable where table name xiaofeidan and table type in BASE GBL TEMP then drop table xiaofeidan end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name guanlian FK and t table name zhuohao then drop index zhuohao guanlian FK end if if exists select 1 from sys sysindex i sys systable t where i table id t table id and i index name zhuohao PK and t table name zhuohao then drop index zhuohao zhuohao PK end if if exists select 1 from sys systable where table name zhuohao and table type in BASE GBL TEMP then 10 drop table zhuohao end if Table caishi create table caishi caiming varchar 12 not null ID integer null zhuohao integer null caijia numeric 10 null constraint PK CAISHI primary key caiming Index caishi PK create unique index caishi PK on caishi caiming ASC Index shuyu FK create index shuyu FK on caishi ID ASC zhuohao ASC Table denglu create table denglu Uname varchar 10 not null Upasswd varchar 12 not null power integer null constraint PK DENGLU primary key Uname Upasswd Index denglu PK 11 create unique index denglu PK on denglu Uname ASC Upasswd ASC Table jinhuo create table jinhuo shangpinming varchar 12 not null sahngpinming varchar 12 not null constraint PK JINHUO primary key clustered shangpinming sahngpinming Index jinhuo PK create unique clustered index jinhuo PK on jinhuo shangpinming ASC sahngpinming ASC Index jinhuo FK create index jinhuo FK on jinhuo shangpinming ASC Index jinhuo2 FK create index jinhuo2 FK on jinhuo sahngpinming ASC Table jinhuodan create table jinhuodan shangpinming varchar 12 not null sahngpinjiage float null 12 jinhuoriqi timestamp null jinhuoshuliang integer null constraint PK JINHUODAN primary key shangpinming Index jinhuodan PK create unique index jinhuodan PK on jinhuodan shangpinming ASC Table shangpin create table shangpin sahngpinming varchar 12 not null shangpindanjia numeric 10 null constraint PK SHANGPIN primary key sahngpinming Index shangpin PK create unique index shangpin PK on shangpin sahngpinming ASC Table shouru create table shouru ID integer not null rishouru numeric 10 null shijian timestamp null yueshouru numeric 12 null constraint PK SHOURU primary key ID Index shouru PK 13 create unique index shouru PK on shouru ID ASC Table xiaofeidan create table xiaofeidan ID integer not null zhuohao integer not null zhuohao integer null caiming varchar 12 null shulaing integer null xiaofei numeric 12 null constraint PK XIAOFEIDAN primary key ID zhuohao Index xiaofeidan PK create unique index xiaofeidan PK on xiaofeidan ID ASC zhuohao ASC Index guanlian2 FK create index guanlian2 FK on xiaofeidan zhuohao ASC Index zongshouru FK create index zongshouru FK on xiaofeidan ID ASC Table zhuohao create table zhuohao 14 zhuohao integer not null ID integer null zhuohao integer null shiyongzhuangtai smallint null constraint PK ZHUOHAO primary key zhuohao Index zhuohao PK create unique index zhuohao PK on zhuohao zhuohao ASC Index guanlian FK create index guanlian FK on zhuohao ID ASC zhuohao ASC alter table caishi add constraint FK CAISHI SHUYU XIAOFEID foreign key ID zhuohao references xiaofeidan ID zhuohao on update restrict on delete restrict alter table jinhuo add constraint FK JINHUO JINHUO JINHUODA foreign key shangpinming references jinhuodan shangpinming on update restrict on delete restrict alter table jinhuo add constraint FK JINHUO JINHUO2 SHANGPIN foreign key sahngpinming references shangpin sahngpinming on update restrict on delete restrict alter table xiaofeidan add constraint FK XIAOFEID GUANLIAN2 ZHUOHAO foreign key zhuohao references zhuohao zhuohao 15 on update restrict on delete restrict alter table xiaofeidan add constraint FK XIAOFEID ZONGSHOUR SHOURU foreign key ID references shouru ID on update restrict on delete restrict alter table zhuohao add constraint FK ZHUOHAO GUANLIAN XIAOFEID foreign key ID zhuohao references xiaofeidan ID zhuohao on update restrict on delete restrict 2 2 数据库前台的设计数据库前台的设计 根据数据库的设计 该餐饮业管理系统可以分成四个子模块 根据数据库的设计 该餐饮业管理系统可以分成四个子模块 订餐管理订餐管理 根据客户的点菜单 从已有菜品中选定菜品 并记录 菜品管理菜品管理 用户可以根据餐馆现行情况动态管理菜品 可以对菜品进行品种 类别 的分类 并可以即时调整菜价 对菜品的调整 如添加删除 会级联添加和删除订 餐管理中菜单一栏中的内容 账单管理账单管理 用户根据现餐馆内的用餐情况对各餐台进行管理 同时可以查询客户的 点餐情况 财务管理财务管理 记录餐馆的营业情况 按时间 账单号进行管理 同时可用于客户结账 系统管理系统管理 数据库备份 初始化 恢复功能 5 运行结果和测试运行结果和测试 一 一 系统运行系统运行 1 系

温馨提示

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

最新文档

评论

0/150

提交评论