




已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
华东交通大学软件学院课程设计课程设计(论文)任务书 软件 学院软件(网络工程) 专业 20123班 一、课程设计(论文)题目 二、课程设计(论文)工作自 2015 年 1 月 5日起至 2015 年 1 月 9 日止。三、课程设计(论文) 地点: 创新大楼机房 四、课程设计(论文)内容要求:1本课程设计的目的 (1)通过课程设计把课堂上讲的内容融会贯通,学会设计程序、开发应用软件等各项工作。 (2)通过课程设计掌握语言的语法,理解类和对象的概念,准确的使用各种数据类型,在程序中提高代码的重用性,使设计的程序结构清晰、易于维护。(3)通过课程设计掌握C#应用程序的编写方法和步骤;掌握程序开发的基本技术。2课程设计的任务及要求1)基本要求:1、根据题目要求设计好类及相应的功能2、代码开发过程中注意几条原则:代码不重复、开闭原则和针对接口编程原则。3、完成题目要求的所有功能2)创新要求: 在基本要求达到后,可进行创新设计,如改善用户体验、友好的人机界面或增加特色功能等。3)课程设计论文编写要求(1)要按照书稿的规格打印与写课程设计论文 (2)论文包括目录、正文、小结和参考文献四个部分;其中正文包括功能描述、设计思路、具体实现及调试和运行结果等四个部分 (3)课程设计论文装订按学校的统一要求完成4)答辩与评分标准: (1)考勤与学习态度:20分; (2)设计思路:20分;(3)代码实现:20分;(4)演示答辩:20分;(5)论文规范性:20分。5)课程设计进度安排内容 天数地点构思及收集资料 1 图书馆设计、编码与调试 3实验室、图书馆撰写论文 1图书馆、实验室学生签名: 2015 年 1月 5 日课程设计(论文)评审意见(1)考勤与态度 (20分):优()、良()、中()、一般()、差(); (2)设计思路(20分):优()、良()、中()、一般()、差(); (3)代码实现(20分):优()、良()、中()、一般()、差();(4)演示答辩 (20分):优()、良()、中()、一般()、差();(5)论文规范性 (20分):优()、良()、中()、一般()、差();评阅人: 职称: 讲师 2015年 1月 12日- 3 -目 录目 录- 1 -正 文- 2 -一、功能描述- 2 -二、设计思路-4 -三、具体实现-6 -四、调试和运行结果-16 -小 结 - 22 -参考文献 -23 -正 文一、功能描述学生登入系统:(1) 查找图书信息图书信息查找,可以根据图书代码,图书名称,作者,出版日期和出版社进行查找。查询图书所在位置,以便学生容易找到图书。(2) 查询图书借还情况查询学生需要借阅图书的借还情况。管理员登入系统:(1) 管理图书信息对图书增添、修改与删除,包括图书的书名、出版号、价格、分类、作者、简介、出版社、出版日期、编号、数量等;(2) 管理读者信息对学生借书证登记、注销。(3) 对借阅情况进行更新对于借出、归还、续借、报废、丢失等信息的记录进行更新。(4) 对超期、破损及丢失处理 对学生借阅图书超期、破损及丢失等处理。功能模块流程图:二、设计思路数据库设计:1、需求分析在数据库小型图书管理系统中需要设计如下所示的数据字段和数据表:图书信息表-dbo.libary,包括:图书编号、图书名称、作者、出版日期、出版社和简介。借阅登记表-dbo.jy,包括:读者编号、图书编号、借书日期、应还书日期。读者表-dbo.reader,包括:读者编号、读者姓名、性别、所在系、年龄。 2、根据数据库需求分析以及功能描述分析可以画出E-R图三、具体实现小型图书管理系统功能模块示意图:图书借阅管理系统图书借阅管理图书基本信息管理读者信息管理系统管理借阅查询借阅情况图书入库图书查询读者信息查询读者信息系统帮助系统退出1、系统管理模块系统帮助:让用户知道使用该系统的操作方法。系统退出:安全的退出系统,以方便再次进入,否则再次进入系统肯能会出错。代码:namespace 登陆 partial class Help / / Required designer variable. / private System.ComponentModel.IContainer components = null; / / Clean up any resources being used. / / true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) if (disposing & (components != null) components.Dispose(); base.Dispose(disposing); #region Windows Form Designer generated code / / Required method for Designer support - do not modify / the contents of this method with the code editor. / private void InitializeComponent() this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.SuspendLayout(); this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font(宋体, 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label1.Location = new System.Drawing.Point(154, 29); this.label1.Name = label1; this.label1.Size = new System.Drawing.Size(123, 19); this.label1.TabIndex = 0; this.label1.Text = 图书管理系统; this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font(宋体, 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label2.Location = new System.Drawing.Point(34, 78); this.label2.Name = label2; this.label2.Size = new System.Drawing.Size(368, 32); this.label2.TabIndex = 1; this.label2.Text = 打开SQL Server企业管理器,启动SQL相关服务,rn连接数据库。rn; this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font(宋体, 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label3.Location = new System.Drawing.Point(34, 140); this.label3.Name = label3; this.label3.Size = new System.Drawing.Size(400, 64); this.label3.TabIndex = 2; this.label3.Text = 鼠标右键点击【数据库】【附加(A).】,然后rn单击【.】按钮,选择本程序所在文件夹下的中的rnDataBase文件夹下的Library.mdf文 + 件,其他采用默认设rn置,然后单击【确定】按钮; this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font(宋体, 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)(134); this.label4.Location = new System.Drawing.Point(34, 233); this.label4.Name = label4; this.label4.Size = new System.Drawing.Size(272, 16); this.label4.TabIndex = 3; this.label4.Text = 如需帮助请登; this.label4.Click += new System.EventHandler(this.label4_Click); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Olive; this.ClientSize = new System.Drawing.Size(472, 349); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Name = Help; this.Text = Help; this.ResumeLayout(false); this.PerformLayout(); #endregion private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; 2、图书信息模块图书信息模块包含图书入库和图书查询两个子模块图书入库:添加新的图书并保存信息。图书查询:可按图书代码,图书名称,作者,出版日期,出版社五项进行查询,可删除一些废弃图书的信息,并将修改后的数据入库保存。代码:namespace 登陆 class LibraryManage private SqlConnection sqlConnection1 = null; private SqlCommand sqlCommand1 = null; private string strSql = null; public LibraryManage() this.sqlConnection1 = new SqlConnection(dbconnection.connection); this.sqlCommand1 = new SqlCommand(); this.sqlCommand1.CommandType = CommandType.Text; this.sqlCommand1.Connection = this.sqlConnection1; / TODO: 在此处添加构造函数逻辑 / public void Library_add(string Lno, string Lname, string Wr, string Lpress, string Lbz) DateTime Ldate = Convert.ToDateTime(DateTime.Now.ToString(yyyy-MM-dd HH:mm:ss); this.strSql = insert into Library (Lno,Lname,Wr,Ldate,Lpress,Lbz) + values( + Lno + , + Lname + , + Wr + , + Ldate + , + Lpress + , + Lbz + ); this.sqlCommand1.CommandText = this.strSql; try this.sqlConnection1.Open(); this.sqlCommand1.ExecuteNonQuery(); /Lno_add(Lno); catch (System.Exception E) Console.WriteLine(E.ToString(); finally this.sqlConnection1.Close(); public void ts_del(string Lno) this.strSql = delete from Library where Lno= + + Lno + ; this.sqlCommand1.CommandText = this.strSql; try this.sqlConnection1.Open(); this.sqlCommand1.ExecuteNonQuery(); catch (System.Exception E) Console.WriteLine(E.ToString(); finally this.sqlConnection1.Close(); 3、借阅信息模块图书信息模块包含借阅情况和借阅查询两个子模块。借阅情况:添加新的借阅信息,将读者号,图书号,借书日期和应还书日期保存。借阅查询:可更具读者号和图书编号进行查询,还书时在此模块中删除该读者的借阅信息,并将修改后的信息保存。代码:namespace 登陆 class jieyue private SqlConnection sqlConnection1 = null; private SqlCommand sqlCommand1 = null; private string strSql = null; public jieyue() this.sqlConnection1 = new SqlConnection(dbconnection.connection); this.sqlCommand1 = new SqlCommand(); this.sqlCommand1.CommandType = CommandType.Text; this.sqlCommand1.Connection = this.sqlConnection1; / TODO: 在此处添加构造函数逻辑 / public void Jieyue_add(string Rno, string Lno) DateTime Date = Convert.ToDateTime(DateTime.Now.ToString(yyyy-MM-dd HH:mm:ss); DateTime Redate = Convert.ToDateTime(DateTime.Now.ToString(yyyy-MM-dd HH:mm:ss); this.strSql = insert into jy (Rno,Lno,Date,Redate) + values( + Rno + , + Lno + , + Date + , + Redate + ); this.sqlCommand1.CommandText = this.strSql; try this.sqlConnection1.Open(); this.sqlCommand1.ExecuteNonQuery(); /Lno_add(Lno); catch (System.Exception E) Console.WriteLine(E.ToString(); finally this.sqlConnection1.Close(); public void jieyue_del(string Lno) this.strSql = delete from jy where Lno= + + Lno + ; /this.strSql = delete from jy where Rno= + + Rno + ;this.sqlCommand1.CommandText=this.strSql;trythis.sqlConnection1.Open();this.sqlCommand1.ExecuteNonQuery();catch(System.Exception E)Console.WriteLine(E.ToString();finallythis.sqlConnection1.Close(); 4、读者信息模块读者信息模块包含了读者信息和读者信息查询两个子模块读者信息:添加新读者的读者号,姓名,性别,所在系,年龄并将修改后的信息入库保存读者信息查询:可按照读者号,姓名,性别,所在系,年龄五种类型进行查询,可删除读者的信息并将修改后的信息保存。代码: namespace 登陆 class duzhe private SqlConnection sqlConnection1 = null; private SqlCommand sqlCommand1 = null; private string strSql = null; public duzhe() this.sqlConnection1 = new SqlConnection(dbconnection.connection); this.sqlCommand1 = new SqlCommand(); this.sqlCommand1.CommandType = CommandType.Text; this.sqlCommand1.Connection = this.sqlConnection1; / TODO: 在此处添加构造函数逻辑 / public void dz_add(string Rno, string Rname, string Rsex, string Rdep, int Rage) /DateTime Ldate = Convert.ToDateTime(DateTime.Now.ToString(yyyy-MM-dd HH:mm:ss); this.strSql = insert into Reader (Rno,Rname,Rsex,Rdep,Rage) + values( + Rno + , + Rname + , + Rsex + , + Rdep + , + Rage + ); this.sqlCommand1.CommandText = this.strSql; try this.sqlConnection1.Open(); this.sqlCommand1.ExecuteNonQuery(); /Lno_add(Lno); catch (System.Exception E) Console.WriteLine(E.ToString(); finally t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 矿产资源管理与利用考核试卷
- 石膏在光伏支架制造中的应用考核试卷
- 室内设计公装方案
- 2025年初级银行从业资格之初级风险管理能力提升试卷B卷附答案
- 2019-2025年统计师之初级统计基础理论及相关知识题库练习试卷A卷附答案
- 幼儿园大班社会《服装的由来》
- 狼文化课件教学课件
- 2025年不见面审批项目发展计划
- 小学选校考试试题及答案
- 北京公务员面试题及答案
- 合伙人协议书模板
- 2025年中考第一次模拟考试卷:生物(成都卷)解析版
- 岁月不负母亲时光留住温情 课件高二下学期母亲节(5月11日)主题班会
- Unit 5 Animals Lesson 3 教学设计-人教精通版三年级英语下册
- 2025年河南空港数字城市开发建设有限公司第一批社会招聘20人笔试参考题库附带答案详解
- 2024年四川公安厅招聘警务辅助人员笔试真题
- 网站联盟广告专题报告
- 广东入团考试试题及答案
- 2025年上半年重庆合川区招考事业单位工作人员易考易错模拟试题(共500题)试卷后附参考答案
- 平安人寿代理合同协议
- 贵州烟草专卖局招聘笔试题库2025
评论
0/150
提交评论