4.3 子界面——用户注册界面......................................................................................XIII
4.4 子界面——菜品详情介绍界面..............................................................................XIV
4.5 子界面——单个菜品信息界面..............................................................................XIV
4.6 子界面——购物车信息界面...................................................................................XV
4.7 子界面——管理员对菜的管理界面........................................................................XV
4.7 子界面——管理员对菜的更改界面.......................................................................XVI
4.8退出界面................................................................................................................. XVI
4.10美学设计...............................................................................................................XVI
4.11界面资源设计........................................................................................................XVI
5 系统设计................................................................................................................... XVIII
5.1 模块命名规则......................................................................................................XVIII
5.2 模块汇总.............................................................................................................. XVIII
5.2.1
模块汇总表
....................................................................................................XVIII
5.2.2
模块关系图
........................................................................................................XX
5.3 程序结构.................................................................................................................XX
5.3.1
数据库连接类
....................................................................................................XX
5.3.2
用户相关操作类
...............................................................................................XXI
5.3.3
菜单信息管理类
...............................................................................................XXII
5.3.4
购物车信息管理类
...........................................................................................XXII
5.3.5
管理员操作管理类
.........................................................................................XXIII
5.3.6
用户信息实体类
.............................................................................................XXIV
5.3.7
菜单信息实体类
.............................................................................................XXIV
5.3.8
购物车信息实体类
.........................................................................................XXIV
5.3.9
管理员信息实体类
.........................................................................................XXIV
6 系统实现.................................................................................................................... XXVI
6.1 连接数据库.......................................................................................................... XXVI
6.2 关闭数据库.......................................................................................................... XXVI
6.2.1
关闭
Connection
对象
.......................................................................................XXVI
6.2.2
关闭
PreparedStatement
对象
...........................................................................XXVI
6.2.3
关闭
ResultSet
对象
.........................................................................................XXVII
6.3 用户登录PUBLIC INT ISEXIST(STRING NAME, STRING PASSWORD).........................XXVII
6.4 查询菜单信息PUBLIC ARRAYLIST SHOWMENU(...................................................XXVII
6.5 查询购物车信息PUBLIC ARRAYLIST SHOWCART(STRING TIME)..........................XXVIII
6.6 添加购物车中菜品信息PUBLIC INT ADDCART(CARTBEAN CB)...........................XXVIII
6.7 修改购物车中已购买的菜品信息PUBLIC INT UPCART(CARTBEAN CB, INT NUM). .XXIX
6.8 查看购物车中是否已购买某菜品PUBLIC INT SAMECART(CARTBEAN CB).............XXIX
6.9 获得当前用户登录时间PUBLIC STRING TIME()......................................................XXX
6.10 显示菜单MENUSHOWSERVLET.............................................................................XXX