ImageVerifierCode 换一换
格式:DOCX , 页数:15 ,大小:115.44KB ,
资源ID:4807687      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/4807687.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(图书馆管理系统powerdesigner.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

图书馆管理系统powerdesigner.docx

1、图书馆管理系统powerdesigner本科学生设计性实验报告数据库课程设计学 院: 软通学院 课程名称: 数据库课程设计 专业班级: 姓 名: 学 号: 开课学期 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 nu

3、ll, 图书数量 int null, constraint 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 借阅 (

4、 借书证号 char(10) not null, 图书编号 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, const

5、raint PK_借阅者 primary 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 tab

6、le 图书管理 ( 图书管理编号 char(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 (图书管理编号)g

7、o/*=*/* 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, 归还日期 datetime null, 图书编号 char(10) null, 书名 char(10) null, const

8、raint PK_归还 primary key nonclustered (借书证号, 图书管理编号)go/*=*/* Table: 管理2 */*=*/create table 管理2 ( 图书管理编号 char(10) not null, 系统管理编号 char(10) not null, constraint PK_管理2 primary key nonclustered (图书管理编号, 系统管理编号)go/*=*/* Table: 管理3 */*=*/create table 管理3 ( 系统管理编号 char(10) not null, 人员编号 char(10) not null

9、, constraint PK_管理3 primary key nonclustered (系统管理编号, 人员编号)go/*=*/* Table: 系统管理 */*=*/create table 系统管理 ( 系统管理编号 char(10) not null, 系统管理性别 char(2) not null, 系统管理姓名 varchar(8) not null, constraint PK_系统管理 primary key nonclustered (系统管理编号)go/*=*/* Table: 读书评论 */*=*/create table 读书评论 ( 借书证号 char(10) no

10、t null, 评论 char(50) null, 图书管理编号 char(10) not null, 图书编号 char(10) null, constraint PK_读书评论 primary key nonclustered (借书证号, 图书管理编号)go/*=*/* Table: 购销 */*=*/create table 购销 ( 人员编号 char(10) not null, 供货单位编号 char(10) not null, 购销价格 int null, constraint PK_购销 primary key nonclustered (人员编号, 供货单位编号)go/*=*

11、/* Table: 采购 */*=*/create table 采购 ( 人员编号 char(10) not null, 仓库编号 char(10) not null, 图书编号 char(10) not null, 采购数量 int null, constraint PK_采购 primary key nonclustered (人员编号, 仓库编号)go/*=*/* Table: 采购人员 */*=*/create table 采购人员 ( 人员编号 char(10) not null, 人员姓名 varchar(8) null, 人员性别 char(2) not null, 人员电话 c

12、har(11) null, constraint PK_采购人员 primary key nonclustered (人员编号)go/*=*/* Table: 预约 */*=*/create table 预约 ( 借书证号 char(10) not null, 图书管理编号 char(10) not null, 图书编号 char(10) null, 书名 char(10) null, constraint PK_预约 primary key nonclustered (借书证号, 图书管理编号)go触发器借书要求(书本没有库存,则无法进行借书操作)use Librarysystem goCR

13、EATE TRIGGER tri_bookon 图书for updateas declare btotal intselect btotal=库存数from inserted if(btotal5) begin rollback transaction print 借阅失败! print对不起,你的借阅总量已经达到本,无法进行本次借书操作!请归还部分书籍后,再进行下次借书操作! end end存储过程读者借阅图书存储过程use Librarysystem gocreate procedure RBorrowBook no varchar(10) ,bno varchar(10) asdecla

14、re bname varchar(50) if exists(select * from 借阅者,图书 where 借书证号=no and 图书编号=bno) begin print对不起,你已经借阅了同一本图书,故而无法进行此次借书操作,请核实! end else begin update 图书 set 库存数=库存数-1 where 图书编号=bnoinsert into 借阅 (借书证号,图书编号,借出日期) values (no,bno,getdate() declare rname varchar(8) select rname=读者姓名 from 借阅者 where 借书证号=no

15、 select bname=书名 from 图书 where 图书编号=bno select 编号为+no+,姓名为+rname+的读者,于+datename(year,GETDATE()+ 年+datename(month,GETDATE()+ 月+datename(day,GETDATE()+ 日+datename(hour,GETDATE()+ 时+datename(minute,GETDATE()+ 分+datename(second,GETDATE()+ 秒,成功地从图书馆借出+bname+一书! as 读者借书成功信息 end go读者还书存储过程use Librarysystem

16、 go create procedure ReturnBook no varchar(10),bno varchar(10) as declare bname varchar(50) if not exists(select * from 借阅 where 借书证号=no and 图书编号=bno) begin print对不起,你没有借阅此书,故而无法进行此次还书操作,请核实! end else begin update 图书 set 库存数=库存数+1 where 图书编号=bnodelete from 借阅 where 借书证号=no and 图书编号=bno declare rname

17、 varchar(8) select rname=读者姓名 from 借阅者 where 借书证号=no select bname=书名from 图书where 图书编号=bno select 编号为+no+,姓名为+rname+的读者,于+datename(year,GETDATE()+ 年+datename(month,GETDATE()+ 月+datename(day,GETDATE()+ 日+datename(hour,GETDATE()+ 时+datename(minute,GETDATE()+ 分+datename(second,GETDATE()+ 秒,成功地向图书馆归还+bname+一书! as 读者还书成功信息 end exec ReturnBook 1234567890,1234567890三, 实验中遇到的困难 在做powerdesigner的过程中,写概念模型时会对实体与实体之间的联系分不清。四、指导教师评语及成绩:成绩: 指导教师签名:陈辉 批阅日期:2013年10月27日

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1