网上书店购物系统需求文档.docVIP

  • 6
  • 0
  • 约3.74千字
  • 约 5页
  • 2018-01-04 发布于河南
  • 举报
网上书店购物系统需求文档

网上书店购物系统需求文档 写明需求分析文档(200字)、写明系统功能需求(可加入UML的用例图) 1)网上书店购物系统包括了用户模块(其功能模块有:登陆、注销模块、注册模块)、图书管理模块(其功能模块有:显示分类、浏览图书)、购物模块(其功能模块有:加入购物车、查看购物车、结账) 2)功能模块 网上书店是一个典型的基于Web网站的Java EE软件系统,集成了诸多的功能模块,主要包括: (1)显示图书分类。 (2)用户可以根据分类浏览某一类图书列表。 (3)用户可以查看具体某一本书的简介。 (4)在图书浏览页只要单击【购买】按钮,就可把选定的图书加入购物车中。 (5)用户可以随时单击 ,查看车中已购图书的信息。 (6)已登录的用户可以单击【结账】按钮下订单。 (7)使用需先注册,在注册页填写个人信息,确认有效后成为新用户。 (8)用户在登录页填写用户名和密码,确认正确后才可结账。 功能模块和展现 2 系统设计文档 (500字、至少包含一个主要模块的内容设计) 1)系统数据库设计 包括ER图,数据 创建数据库 网上书店有以下5个实体:用户、图书分类、图书、订单、订单项,因此,本系统的数据库设计,如下图 数据库的初始数据 create table book ( bookid int auto_increment not null, catalogid int not null, bookname varchar(20) not null, price int not null, picture varchar(30) not null, primary key (bookid) ); create table catalog ( catalogid int auto_increment not null, catalogname varchar(20) not null, primary key (catalogid) ); create table orderitem ( orderitemid int auto_increment not null, bookid int not null, orderid int not null, quantity int not null, primary key (orderitemid) ); create table orders ( orderid int auto_increment not null, userid int not null, orderdate timestamp not null, primary key (orderid) ); create table user ( userid int auto_increment not null, username varchar(20) not null, password varchar(20) not null, sex varchar(4), age int, primary key (userid) ); alter table book add constraint FK_Relationship_3 foreign key (catalogid) references catalog (catalogid) on delete restrict on update restrict; alter table orderitem add constraint FK_Relationship_2 foreign key (orderid) references orders (orderid) on delete restrict on update restrict; alter table orderitem add constraint FK_Relationship_4 foreign key (bookid) reference

文档评论(0)

1亿VIP精品文档

相关文档