图书馆管理系统管理员功能模块.docx

上传人:b****6 文档编号:7021432 上传时间:2023-01-16 格式:DOCX 页数:19 大小:324.39KB
下载 相关 举报
图书馆管理系统管理员功能模块.docx_第1页
第1页 / 共19页
图书馆管理系统管理员功能模块.docx_第2页
第2页 / 共19页
图书馆管理系统管理员功能模块.docx_第3页
第3页 / 共19页
图书馆管理系统管理员功能模块.docx_第4页
第4页 / 共19页
图书馆管理系统管理员功能模块.docx_第5页
第5页 / 共19页
点击查看更多>>
下载资源
资源描述

图书馆管理系统管理员功能模块.docx

《图书馆管理系统管理员功能模块.docx》由会员分享,可在线阅读,更多相关《图书馆管理系统管理员功能模块.docx(19页珍藏版)》请在冰豆网上搜索。

图书馆管理系统管理员功能模块.docx

图书馆管理系统管理员功能模块

图书管理系统管理员功能点图

一、引言

对于图书馆来说,如何简化图书流通的操作流程,提高图书管理的工作效率是关键因素。

因此,需要引入图书馆管理系统来实现图书馆的现代化管理。

作为一个图书馆管理系统,首先,必须要有友好的、美观的操作界面,人机对话操作方式简单。

其次,图书信息和读者信息分类管理,能实现综合查询。

再次,对图书借阅信息,图书借阅排行榜信息实现全程数据跟踪,保证数据的真实性和及时性。

最后,能实现及时的提醒用户归还即将到期的图书,做到图书借阅管理流程规范且流畅。

更具图书管日常图书管理的需求和图书借阅的管理流程,如下图,图书馆管理系统功能模块主要包括系统设置、读者管理功能、图书管理功能、图书借阅功能和相关的查询功能。

其中管理员功能模块如下图:

管理员功能模块

1.2图书管理系统的可行性分析

本次课程设计题目:

“图书管理系统的开发”主要目的是利用数据库软件编制一个管理软件,用以实现图书、读者以及日常工作等多项管理。

同时对整个系统的分析、设计过程给出一个完整论证。

图书管理系统是一种基于集中统一规划的数据库数据管理新模式。

在对图书、读者的管理,其实是对图书、读者数据的管理。

本系统的建成无疑会为管理者对图书管理系统提供极大的帮助。

本系统的设计主要从以下几方面做起:

系统业务流程分析、系统的功能设计、系统的数据库结构设计等。

作这些工作需对数据库知识有足够认识,并深入的了解c#的使用和管理系统的相关知识。

在信息时代的今天,人类需要对在政治、经济、军事、文化、科研、教育等领域产生的大量信息进行管理,并对数据进行加工处理,数据库技术则是信息管理与数据处理的先进技术。

随着信息量的不断增加,作为计算机的三大主要应用(科学计算、过程控制和数据处理)之一的数据处理,已迅速上升为计算机应用的主要方面,数据库技术则成为人们日常生活中处理数据不可缺少的有力工具,并且现代的信息管理系统几乎都以数据库技术作为核心。

现在大多数的图书管理方式为手工处理,重复劳动多,劳动强度大,而且容易出错,新系统的使用能否可以很好的解决这些问题要看系统的可行性,可行性研究的目的是用最小的代价在尽可能短的时间内确定问题是否能够解决。

系统的可行性分析有以下几个方面:

(1)技术可行性:

处理速度快、准确通过权限的设置,数据的安全性好、方便查询、借阅管理等。

(2)经济可行性:

系统建设不需要很大的投入、可缩减人力投入。

(3)运行上可行性:

本系统作为一个小型的图书馆信息管理系统,所耗费的

资源非常的小。

(4)从各种社会因素可行性分析:

可降低工作人员工作强度,提高效率,会

得到学校工作人员的一致同意的。

综上所述通过可行性分析认为新系统的开发方案切实可行,可进行开发。

1.3系统开发运行环境

系统开发环境:

MicrosoftVisualStudio2010

系统开发语言:

c#

运行平台:

Windows8

数据库:

sql2012

二、图书管理系统模块分析

2.1管理员数据流图

(1)图书档案管理系统为用户提供图书档案信息其数据流图如图2-1所示。

图2-1图书档案管理数据流图

(2)读者档案系统用于记录读者的详细信息其数据流图如图2-2所示。

图2-2读者档案管理数据流图

2.2管理员用例图

2.2.1管理员用例图

2.3管理员E-R图

管理员总体E-R图

三、管理员各功能及实现

3.1管理员登录代码

protectedvoidButton1_Click(objectsender,EventArgse)

{

/*取得帐号密码信息*/

stringuserName=this.txtName.Text;

stringpassword=this.txtPwd.Text;

stringidentify=this.Identify.SelectedValue;

if("管理员"==identify)

{

AdminModeladminModel=newAdminModel();

adminModel.AdminUsername=userName;

adminModel.AdminPassword=password;

AdminLogicadminLogic=newAdminLogic();

/*如果管理员帐号信息正确*/

if(adminLogic.IsExistAdminInfo(adminModel))

{

Session["adminFlag"]=true;

Session["adminUsername"]=userName;

Response.Redirect("Admin/index.aspx");

}

/*如果管理员帐号信息不正确*/

else

{

Response.Write("");

}

}

else

{

ReaderModelreaderModel=newReaderModel();

readerModel.ReaderId=userName;

readerModel.ReaderPassword=password;

ReaderLogicreaderLogic=newReaderLogic();

/*如果读者帐号信息正确*/

if(readerLogic.IsExistReaderInfo(readerModel))

{

Session["readerFlag"]=true;

Session["readerId"]=userName;

Response.Redirect("Reader/index.aspx");

}

/*如果读者帐号信息不正确*/

else

{

Response.Write("");

}

}

}

}

3.2管理员图书管理部分核心代码

protectedvoidBindData()

{

stringkeyword=this.Keyword.Text;

intdiskTypeId=Int32.Parse(this.DiskType.SelectedValue);

stringisRecommend=this.IsRecommend.SelectedValue;

/*调用业务层进行查询*/

this.GridView1.DataSourceID="";

this.GridView1.DataSource=(newDiskLogic()).QueryDiskInfo(keyword,diskTypeId,isRecommend);

this.GridView1.DataBind();

}

protectedvoidBtn_Query_Click(objectsender,EventArgse)

{

/*取得查询的各个参数*/

stringkeyword=this.Keyword.Text;

intdiskTypeId=Int32.Parse(this.DiskType.SelectedValue);

stringisRecommend=this.IsRecommend.SelectedValue;

/*调用业务层进行查询*/

this.GridView1.DataSourceID="";

this.GridView1.DataSource=(newDiskLogic()).QueryDiskInfo(keyword,diskTypeId,isRecommend);

this.GridView1.DataBind();

}

protectedvoidGridView1_PageIndexChanging(objectsender,GridViewPageEventArgse)

{

/*取得查询的各个参数*/

stringkeyword=this.Keyword.Text;

intdiskTypeId=Int32.Parse(this.DiskType.SelectedValue);

stringisRecommend=this.IsRecommend.SelectedValue;

/*调用业务层得到查询的结果数据集*/

DataSetds=newDataSet();

ds=(newDiskLogic()).QueryDiskInfo(keyword,diskTypeId,isRecommend);

/*将查询结果集绑定到gridview控件上*/

this.GridView1.DataSourceID=null;

this.GridView1.DataSource=ds;

this.GridView1.PageIndex=e.NewPageIndex;;

this.GridView1.DataBind();

}

protectedvoidGridView1_RowDataBound(objectsender,GridViewRowEventArgse)

{

if(e.Row.RowType==DataControlRowType.DataRow)

{

//当鼠标选择某行时变颜色

e.Row.Attributes.Add("onmouseover","c=this.style.backgroundColor;this.style.backgroundColor='#00ffee';");

e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=c;");

}

}

3.3添加图书类型部分核心代码

protectedvoidBtn_Add_Click(objectsender,EventArgse)

{

DiskTypeModeldiskTypeModel=newDiskTypeModel();

diskTypeModel.DiskTypeName=this.DiskTypeName.Text;

DiskTypeLogicdiskTypeLogic=newDiskTypeLogic();

if(diskTypeLogic.InsertDiskTypeInfo(diskTypeModel))

{

Response.Write("");

}

else

{

Response.Write("");

}

}

3.4读者类型添加管理核心代码

protectedvoidBtn_Add_Click(objectsender,EventArgse)

{

/*建立读者类型对象模型并传入界面上的各个参数*/

ReaderTypeModelreaderModel=newReaderTypeModel();

readerModel.ReaderTypeName=this.ReaderTypeName.Text;

readerModel.LoanNum=Int32.Parse(this.LoanNum.Text);

readerModel.LoanDays=Int32.Parse(this.LoanDays.Text);

readerModel.ContinueDays=Int32.Parse(this.ContinueDays.Text);

readerModel.ReserverNum=Int32.Parse(this.ReserveNum.Text);

/*调用业务层进行添加*/

ReaderTypeLogicreaderTypeLogic=newReaderTypeLogic();

if(readerTypeLogic.AddNewReaderType(readerModel))

{

Response.Write("");

}

else

{

Response.Write("");

}

3.5读者信息添加核心代码

protectedvoidBtn_Upload_Click(objectsender,EventArgse)

{

/*如果上传了文件*/

if(this.ReaderPhotoUpload.PostedFile.ContentLength>0)

{

/*验证上传的文件格式,只能为gif和jpeg格式*/

stringmimeType=this.ReaderPhotoUpload.PostedFile.ContentType;

if(String.Compare(mimeType,"image/gif",true)==0||String.Compare(mimeType,"image/pjpeg",true)==0)

{

//this.DeviceImagePath.Text="上传文件中....";

stringextFileString=System.IO.Path.GetExtension(this.ReaderPhotoUpload.PostedFile.FileName);/*获取文件扩展名*/

stringsaveFileName=this.MakeFileName(extFileString);/*根据扩展名生成文件名*/

stringimagePath="ReaderPhoto\\"+saveFileName;/*图片路径*/

this.ReaderPhotoUpload.PostedFile.SaveAs(Server.MapPath(imagePath));

this.ReaderPhoto.ImageUrl=imagePath;

this.ReaderPhotoUrl.Text=imagePath;

}

else

{

Response.Write("");

}

}

}

/*根据当前系统时间生成一个文件名*/

privatestringMakeFileName(stringexeFileString)

{

System.DateTimenow=System.DateTime.Now;

intyear=now.Year;

intmonth=now.Month;

intday=now.Day;

inthour=now.Hour;

intminute=now.Minute;

intsecond=now.Second;

stringyearString=year.ToString();

stringmonthString=month<10?

("0"+month):

month.ToString();

stringdayString=day<10?

("0"+day):

day.ToString();

stringhourString=hour<10?

("0"+hour):

hour.ToString();

stringminuteString=minute<10?

("0"+minute):

minute.ToString();

stringsecondString=second<10?

("0"+second):

second.ToString();

/*根据当前时间的年月日时分秒生成文件名*/

stringfileName=yearString+monthString+dayString+hourString+minuteString+secondString+exeFileString;

returnfileName;

}

protectedvoidBtn_Add_Click(objectsender,EventArgse)

{

/*建立读者对象模型,将读者的各个信息传入模型的对应属性中*/

ReaderModelreaderModel=newReaderModel();

readerModel.ReaderId=this.ReaderId.Text;

readerModel.ReaderPassword=this.ReaderPassword.Text;

readerModel.ReaderName=this.ReaderName.Text;

readerModel.ReaderSex=this.ReaderSex.SelectedValue;

if(this.ReaderBirthday.Text!

="")

readerModel.ReaderBirthday=Convert.ToDateTime(this.ReaderBirthday.Text);

readerModel.ReaderTypeId=Int32.Parse(this.ReaderType.SelectedValue);

readerModel.ReaderPhone=this.ReaderPhone.Text;

readerModel.ReaderEmail=this.ReaderEmail.Text;

readerModel.ReaderAddress=this.ReaderAddress.Text;

readerModel.ReaderPhotoUrl=this.ReaderPhotoUrl.Text;

readerModel.ReaderMemo=this.ReaderMemo.Text;

/*调用业务层执行新读者信息的添加*/

ReaderLogicreaderLogic=newReaderLogic();

if(readerLogic.AddNewReaderInfo(readerModel))

{

Response.Write("");

}

else

Response.Write("");

}

protectedvoidBtn_Cancle_Click(objectsender,EventArgse)

{

Response.Write("");

}

3.6图书借阅部分代码

protectedvoidBtn_Add_Click(objectsender,EventArgse)

{

stringreaderId=this.ReaderId.Text;

stringdiskIndex=this.DiskIndex.Text;

DiskLogicdiskLogic=newDiskLogic();

DiskModeldiskModel=diskLogic.GetDiskInfo(diskIndex);

LoanLogicloanLogic=newLoanLogic();

if(loanLogic.AddNewLoanInfo(diskIndex,readerId,Session["adminUsername"].ToString()))

{

diskLogic.UpdateDiskLoanNum(diskModel.Id);

(newReaderLogic()).UpdateReaderLoanNum(readerId);

this.Result.Text="读者:

"+ReaderLogic.GetReaderNameById(readerId)+"借阅图书:

"+DiskLogic.GetDiskNameById(diskModel.Id)+"成功!

";

}

else

this.Result.Text=loanLogic.ErrMessage;

this.ReaderId.Text="";

this.DiskIndex.Text="";

}

3.7图书归还部分代码

protectedvoidBtn_Add_Click(objectsender,EventArgse)

{

stringreaderId=this.ReaderId.Text;

stringdiskIndex=this.DiskIndex.Text;

DiskLogicdiskLogic=newDiskLogic();

DiskModeldiskModel=diskLogic.GetDiskInfo(diskIndex);

LoanLogicloanLogic=newLoanLogic();

if(loanLogic.ReturnDisk(diskModel.Id,readerId,Session["adminUsername"].ToString()))

this.Result.Text="读者:

"+ReaderLogic.GetReaderNameById(readerId)+"归还图书:

"+diskModel.DiskName+"成功!

";

else

this.Result.Text=loanLogic.ErrMessage;

this.ReaderId.Text="";

this.DiskIndex.Text="";

}

3.8图书预约代码

protectedvoidBtn_Query_Click(o

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > PPT模板 > 自然景观

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

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