《图书馆管理系统powerdesigner.doc》由会员分享,可在线阅读,更多相关《图书馆管理系统powerdesigner.doc(11页珍藏版)》请在金锄头文库上搜索。
1、本科学生设计性实验报告数据库课程设计学 院: 软通学院 课程名称: 数据库课程设计 专业班级: 姓 名: 学 号: 开课学期 2013 至 2014 学年 第二 学期学生实验报告(一)学生姓名 学号同组人:实验项目图书馆系统必修选修 演示性实验 验证性实验 操作性实验 综合性实验实验地点 实验仪器台号指导教师陈辉实验日期及节次一、实验综述 一、实验任务1) 以图书信息管理系统为例,开展数据库系统设计2) 使用Java语言开发相关系统界面,实现系统相关功能3) 完成系统测试二、实验要求(系统功能要求)1) 人员管理:读者、图书管理员、系统管理员,管理的内容包括人员增、删、查、改;2) 书籍管理:
2、采购、入库、预约、借阅、续借、归还、查询、统计、读书评论。3) 仓库管理:管理图书馆藏信息4) 供应商管理:管理图书供应商5) 财务管理:管理图书采购帐目三、实验仪器、设备或软件仪器设备:电脑一台数据库系统设计:PowerdesignerJava开发工具:JDK1.6或以上Eclipse或者NetBeans系统测试:人工测试二、实验过程(编程,调试,运行;请写上源码,要求要有注释)1.1.ER图2.逻辑结构3.物理结构代码部分建表命令/*=*/* Table: 仓库 */*=*/create table 仓库 ( 仓库编号 char(10) not null, 图书数量 int null, c
3、onstraint PK_仓库 primary key nonclustered (仓库编号)go/*=*/* Table: 供货单位 */*=*/create table 供货单位 ( 供货单位编号 char(10) not null, 供货单位名称 char(10) null, 供货单位地址 char(15) null, 供货单位电话 char(11) null, constraint PK_供货单位 primary key nonclustered (供货单位编号)go/*=*/* Table: 借阅 */*=*/create table 借阅 ( 借书证号 char(10) not n
4、ull, 图书编号 char(10) not null, 借出日期 datetime null, constraint PK_借阅 primary key nonclustered (借书证号, 图书编号)go/*=*/* Table: 借阅者 */*=*/create table 借阅者 ( 借书证号 char(10) not null, 读者班级 char(8) null, 读者性别 char(2) not null, 办证日期 char(10) null, 图书数量 int null, 读者姓名 varchar(8) not null, constraint PK_借阅者 primary
5、 key nonclustered (借书证号)go/*=*/* Table: 图书 */*=*/create table 图书 ( 图书编号 char(10) not null, 作者 varchar(8) null, 书名 char(10) null, 借出日期 datetime null, 出版社 char(15) null, 库存数 int null, 价格 int null, constraint PK_图书 primary key nonclustered (图书编号)go/*=*/* Table: 图书管理 */*=*/create table 图书管理 ( 图书管理编号 cha
6、r(10) not null, 图书编号 char(10) not null, constraint PK_图书管理 primary key nonclustered (图书管理编号, 图书编号)go/*=*/* Table: 图书管理员 */*=*/create table 图书管理员 ( 图书管理编号 char(10) not null, 图书管理姓名 varchar(8) not null, 图书管理性别 char(2) not null, constraint PK_图书管理员 primary key nonclustered (图书管理编号)go/*=*/* Table: 存入 */*=*/create table 存入 ( 仓库编号 char(10) not null, 图书编号 char(10) not null, constraint PK_存入 primary key nonclustered (仓库编号, 图书编号)go/*=*/* Table: 归还 */*=*/create table 归还 ( 借书证号 char(10) not null, 图书管理编号 char(10) not null, 归还日期