分享
分销 收藏 举报 申诉 / 18
播放页_导航下方通栏广告

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

  • 上传人:快乐****生活
  • 文档编号:4586965
  • 上传时间:2024-09-30
  • 格式:DOCX
  • 页数:18
  • 大小:400.86KB
  • 下载积分:8 金币
  • 播放页_非在线预览资源立即下载上方广告
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    图书馆 管理 系统管理员 功能模块
    资源描述:
    图书馆管理系统管理员功能模块 资料仅供参考 图书管理系统管理员功能点图 一、 引言 对于图书馆来说,如何简化图书流通的操作流程,提高图书管理的工作效率是关键因素。因此,需要引入图书馆管理系统来实现图书馆的现代化管理。作为一个图书馆管理系统,首先,必须要有友好的、美观的操作界面,人机对话操作方式简单。其次,图书信息和读者信息分类管理,能实现综合查询。再次,对图书借阅信息,图书借阅排行榜信息实现全程数据跟踪,保证数据的真实性和及时性。最后,能实现及时的提醒用户归还即将到期的图书,做到图书借阅管理流程规范且流畅。 更具图书管日常图书管理的需求和图书借阅的管理流程,如下图,图书馆管理系统功能模块主要包括系统设置、读者管理功能、图书管理功能、图书借阅功能和相关的查询功能。其中管理员功能模块如下图: 管理员功能模块 1.2 图书管理系统的可行性分析 本次课程设计题目:“图书管理系统的开发”主要目的是利用数据库软件编制一个管理软件,用以实现图书、读者以及日常工作等多项管理。同时对整个系统的分析、设计过程给出一个完整论证。图书管理系统是一种基于集中统一规划的数据库数据管理新模式。在对图书、读者的管理,其实是对图书、读者数据的管理。本系统的建成无疑会为管理者对图书管理系统提供极大的帮助。本系统的设计主要从以下几方面做起:系统业务流程分析、系统的功能设计、系统的数据库结构设计等。作这些工作需对数据库知识有足够认识,并深入的了解c#的使用和管理系统的相关知识。在信息时代的今天,人类需要对在政治、经济、军事、文化、科研、教育等领域产生的大量信息进行管理,并对数据进行加工处理,数据库技术则是信息管理与数据处理的先进技术。随着信息量的不断增加,作为计算机的三大主要应用(科学计算、过程控制和数据处理)之一的数据处理,已迅速上升为计算机应用的主要方面,数据库技术则成为人们日常生活中处理数据不可缺少的有力工具,而且现代的信息管理系统几乎都以数据库技术作为核心。 现在大多数的图书管理方式为手工处理,重复劳动多,劳动强度大,而且容易出错,新系统的使用能否能够很好的解决这些问题要看系统的可行性,可行性研究的目的是用最小的代价在尽可能短的时间内确定问题是否能够解决。系统的可行性分析有以下几个方面: (1)技术可行性:处理速度快、准确经过权限的设置,数据的安全性好、方便查询、借阅管理等。 (2)经济可行性:系统建设不需要很大的投入、可缩减人力投入。 (3)运行上可行性:本系统作为一个小型的图书馆信息管理系统,所耗费的 资源非常的小。 (4)从各种社会因素可行性分析:可降低工作人员工作强度,提高效率,会 得到学校工作人员的一致同意的。 综上所述经过可行性分析认为新系统的开发方案切实可行,可进行开发。 1.3 系统开发运行环境 系统开发环境:Microsoft Visual Studio 系统开发语言:c# 运行平台:Windows 8 数据库:sql 二、 图书管理系统模块分析 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管理员登录代码 protected void Button1_Click(object sender, EventArgs e) { /*取得帐号密码信息*/ string userName = this.txtName.Text; string password = this.txtPwd.Text; string identify = this.Identify.SelectedValue; if ("管理员" == identify) { AdminModel adminModel = new AdminModel(); adminModel.AdminUsername = userName; adminModel.AdminPassword = password; AdminLogic adminLogic = new AdminLogic(); /*如果管理员帐号信息正确*/ if (adminLogic.IsExistAdminInfo(adminModel)) { Session["adminFlag"] = true; Session["adminUsername"] = userName; Response.Redirect("Admin/index.aspx"); } /*如果管理员帐号信息不正确*/ else { Response.Write("<script>alert('" + adminLogic.ErrMessage + "');</script>"); } } else { ReaderModel readerModel = new ReaderModel(); readerModel.ReaderId = userName; readerModel.ReaderPassword = password; ReaderLogic readerLogic = new ReaderLogic(); /*如果读者帐号信息正确*/ if (readerLogic.IsExistReaderInfo(readerModel)) { Session["readerFlag"] = true; Session["readerId"] = userName; Response.Redirect("Reader/index.aspx"); } /*如果读者帐号信息不正确*/ else { Response.Write("<script>alert('" + readerLogic.ErrMessage + "');</script>"); } } } } 3.2管理员图书管理部分核心代码 protected void BindData() { string keyword = this.Keyword.Text; int diskTypeId = Int32.Parse(this.DiskType.SelectedValue); string isRecommend = this.IsRecommend.SelectedValue; /*调用业务层进行查询*/ this.GridView1.DataSourceID = ""; this.GridView1.DataSource = (new DiskLogic()).QueryDiskInfo(keyword, diskTypeId, isRecommend); this.GridView1.DataBind(); } protected void Btn_Query_Click(object sender, EventArgs e) { /*取得查询的各个参数*/ string keyword = this.Keyword.Text; int diskTypeId = Int32.Parse(this.DiskType.SelectedValue); string isRecommend = this.IsRecommend.SelectedValue; /*调用业务层进行查询*/ this.GridView1.DataSourceID = ""; this.GridView1.DataSource = (new DiskLogic()).QueryDiskInfo(keyword, diskTypeId, isRecommend); this.GridView1.DataBind(); } protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { /*取得查询的各个参数*/ string keyword = this.Keyword.Text; int diskTypeId = Int32.Parse(this.DiskType.SelectedValue); string isRecommend = this.IsRecommend.SelectedValue; /*调用业务层得到查询的结果数据集*/ DataSet ds = new DataSet(); ds = (new DiskLogic()).QueryDiskInfo(keyword, diskTypeId, isRecommend); /*将查询结果集绑定到gridview控件上*/ this.GridView1.DataSourceID = null; this.GridView1.DataSource = ds; this.GridView1.PageIndex = e.NewPageIndex; ; this.GridView1.DataBind(); } protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { 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添加图书类型部分核心代码 protected void Btn_Add_Click(object sender, EventArgs e) { DiskTypeModel diskTypeModel = new DiskTypeModel(); diskTypeModel.DiskTypeName = this.DiskTypeName.Text; DiskTypeLogic diskTypeLogic = new DiskTypeLogic(); if (diskTypeLogic.InsertDiskTypeInfo(diskTypeModel)) { Response.Write("<script>alert('图书类型信息添加成功!');location.href='diskTypeAdd.aspx';</script>"); } else { Response.Write("<script>alert('" + diskTypeLogic.ErrMessage + "');</script>"); } } 3.4读者类型添加管理核心代码 protected void Btn_Add_Click(object sender, EventArgs e) { /*建立读者类型对象模型并传入界面上的各个参数*/ ReaderTypeModel readerModel = new ReaderTypeModel(); 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); /*调用业务层进行添加*/ ReaderTypeLogic readerTypeLogic = new ReaderTypeLogic(); if (readerTypeLogic.AddNewReaderType(readerModel)) { Response.Write("<script>alert('读者类别信息添加成功!');location.href='readerTypeManage.aspx';</script>"); } else { Response.Write("<script>alert('" + readerTypeLogic.ErrMessage + "');</script>"); } 3.5 读者信息添加核心代码 protected void Btn_Upload_Click(object sender, EventArgs e) { /*如果上传了文件*/ if (this.ReaderPhotoUpload.PostedFile.ContentLength > 0) { /*验证上传的文件格式,只能为gif和jpeg格式*/ string mimeType = this.ReaderPhotoUpload.PostedFile.ContentType; if (String.Compare(mimeType, "image/gif", true) == 0 || String.Compare(mimeType, "image/pjpeg", true) == 0) { //this.DeviceImagePath.Text = "上传文件中...."; string extFileString = System.IO.Path.GetExtension(this.ReaderPhotoUpload.PostedFile.FileName); /*获取文件扩展名*/ string saveFileName = this.MakeFileName(extFileString); /*根据扩展名生成文件名*/ string imagePath = "ReaderPhoto\\" + saveFileName;/*图片路径*/ this.ReaderPhotoUpload.PostedFile.SaveAs(Server.MapPath(imagePath)); this.ReaderPhoto.ImageUrl = imagePath; this.ReaderPhotoUrl.Text = imagePath; } else { Response.Write("<script>alert('上传文件格式不正确!');</script>"); } } } /*根据当前系统时间生成一个文件名*/ private string MakeFileName(string exeFileString) { System.DateTime now = System.DateTime.Now; int year = now.Year; int month = now.Month; int day = now.Day; int hour = now.Hour; int minute = now.Minute; int second = now.Second; string yearString = year.ToString(); string monthString = month < 10 ? ("0" + month) : month.ToString(); string dayString = day < 10 ? ("0" + day) : day.ToString(); string hourString = hour < 10 ? ("0" + hour) : hour.ToString(); string minuteString = minute < 10 ? ("0" + minute) : minute.ToString(); string secondString = second < 10 ? ("0" + second) : second.ToString(); /*根据当前时间的年月日时分秒生成文件名*/ string fileName = yearString + monthString + dayString + hourString + minuteString + secondString + exeFileString; return fileName; } protected void Btn_Add_Click(object sender, EventArgs e) { /*建立读者对象模型,将读者的各个信息传入模型的对应属性中*/ ReaderModel readerModel = new ReaderModel(); 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; /*调用业务层执行新读者信息的添加*/ ReaderLogic readerLogic = new ReaderLogic(); if (readerLogic.AddNewReaderInfo(readerModel)) { Response.Write("<script>alert('读者信息添加成功!');location.href='readerAdd.aspx';</script>"); } else Response.Write("<script>alert('" + readerLogic.ErrMessage + "');</script>"); } protected void Btn_Cancle_Click(object sender, EventArgs e) { Response.Write("<script>location.href='index.aspx';</script>"); } 3.6 图书借阅部分代码 protected void Btn_Add_Click(object sender, EventArgs e) { string readerId = this.ReaderId.Text; string diskIndex = this.DiskIndex.Text; DiskLogic diskLogic = new DiskLogic(); DiskModel diskModel = diskLogic.GetDiskInfo(diskIndex); LoanLogic loanLogic = new LoanLogic(); if (loanLogic.AddNewLoanInfo(diskIndex, readerId, Session["adminUsername"].ToString())) { diskLogic.UpdateDiskLoanNum(diskModel.Id); (new ReaderLogic()).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图书归还部分代码 protected void Btn_Add_Click(object sender, EventArgs e) { string readerId = this.ReaderId.Text; string diskIndex = this.DiskIndex.Text; DiskLogic diskLogic = new DiskLogic(); DiskModel diskModel = diskLogic.GetDiskInfo(diskIndex); LoanLogic loanLogic = new LoanLogic(); 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图书预约代码 protected void Btn_Query_Click(object sender, EventArgs e) { ArrayList reserveInfoList = ReserveLogic.QueryReserveInfo(this.ReaderId.Text,this.DiskIndex.Text); ShowReserveInfoList(reserveInfoList); } private void ShowReserveInfoList(ArrayList reserveInfoList) { if (reserveInfoList.Count == 0) this.Result.Text = "<tr><td colspan=5 align=center><font color=red>没有图书预约信息</font></td></tr>"; else { this.Result.Text = ""; for (int i = 0; i < reserveInfoList.Count; i++) { ReserveModel reserveModel = (ReserveModel)reserveInfoList[i]; int diskId = reserveModel.DiskId; DiskLogic diskLogic = new DiskLogic(); DiskModel diskModel = diskLogic.GetDiskInfo(diskId); this.Result.Text += "<tr><td><font color=red>" + reserveModel.ReserveId + "</font></td>"; this.Result.Text += "<td><font color=red>" + reserveModel.ReaderId + "</font></td>"; this.Result.Text += "<td><font color=red>" + ReaderLogic.GetReaderNameById(reserveModel.ReaderId) + "</font></td>"; this.Result.Text += "<td><font color=red>" + diskModel.DiskIndex + "</font></td>"; this.Result.Text += "<td><font color=red>" + diskModel.DiskName + "</font></td>"; this.Result.Text += "<td><font color=red>" + reserveModel.ReserveTime.ToLongDateString() + " " + reserveModel.ReserveTime.ToLongTimeString() + "</font></td>"; this.Result.Text += "<td><font color=red><a href=diskReserveHandle.aspx?reserveId=" + reserveModel.ReserveId + ">图书借阅</a></font></td></tr>"; } } } 3.9用户修改权限部分核心代码 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { 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;"); /*获取当前记录的管理员账号名然后获取权限信息*/ string adminUsername = this.GridView1.DataKeys[e.Row.RowIndex].Value.ToString(); AdminLogic adminLogic = new AdminLogic(); AdminModel adminModel = adminLogic.GetAdmin(adminUsername); Literal DiskType = (Literal)e.Row.Cells[1].FindControl("DiskType"); DiskType.Text = adminModel.DiskTypeFlag == 1 ? "YES" : "NO"; Literal Disk = (Literal)e.Row.Cells[2].FindControl("Disk"); Disk.Text = adminModel.DiskFlag == 1 ? "YES" : "NO"; Literal ReaderType = (Literal)e.Row.Cells[3].FindControl("ReaderType"); ReaderType.Text = adminModel.ReaderTypeFlag == 1 ? "YES" : "NO"; Literal Reader = (Literal)e.Row.Cells[4].FindControl("Reader"); Reader.Text = adminModel.ReaderFlag == 1 ? "YES" : "NO"; Literal Lend = (Literal)e
    展开阅读全文
    提示  咨信网温馨提示:
    1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
    2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
    3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
    4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
    5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
    6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

    开通VIP折扣优惠下载文档

    自信AI创作助手
    关于本文
    本文标题:图书馆管理系统管理员功能模块.docx
    链接地址:https://www.zixin.com.cn/doc/4586965.html
    页脚通栏广告

    Copyright ©2010-2026   All Rights Reserved  宁波自信网络信息技术有限公司 版权所有   |  客服电话:0574-28810668    微信客服:咨信网客服    投诉电话:18658249818   

    违法和不良信息举报邮箱:help@zixin.com.cn    文档合作和网站合作邮箱:fuwu@zixin.com.cn    意见反馈和侵权处理邮箱:1219186828@qq.com   | 证照中心

    12321jubao.png12321网络举报中心 电话:010-12321  jubao.png中国互联网举报中心 电话:12377   gongan.png浙公网安备33021202000488号  icp.png浙ICP备2021020529号-1 浙B2-20240490   


    关注我们 :微信公众号  抖音  微博  LOFTER               

    自信网络  |  ZixinNetwork