资源简介

1 图书管理系统包括,借阅,归还,续借,读者类别管理,读者管理,图书类别管理,图书管理,管理员权限管理,排行榜管理 2 本项目为JAVA WEB开发,数据库为mysql数据库文件,直接放到data文件夹下即可名为db_library(内含详细部署说明书) 3 论文按照国外软件工程Higher National Group Award Graded Unit Specification格式编写目录如下 Project Document History 2 Introduction 4 1.1 Using this Document 4 1.2 Purpose of Document 5 1.3 Background 5 Planning: 5 2.1 Terms of Reference 5 2.2 Project Scope 6 2.3 Project Name 6 Analysis of the Project 7 3.1 Fact Finding 7 3.2 Findings 8 Requirement Specification 19 4.1 Introduction 19 4.2 The Program Model 19 4.3 Functional Requirements 20 4.4 Non-Functional Requirements 20 4.5 User Interface 21 Management of Project 21 5.1 Project Life Cycle 21 5.2 Project Plan 21 5.2.5 The Plan 23 Developing: 24 Analysis 24 6.1 Selection of Software 24 6.2 Identification of Objects(the main part) 25 6.3 Class Initial 27 6.4 Class Responsibilities 27 6.5 Class Attributes and Methods(part of main Class) 28 6.6 Limitations 30 6.7 Behavioural and Structural Models 31 Design 36 7.1 User Interface and Outputs 36 7.2 Data Dictionary 37 7.3 DataStructure Design 38 7.4 Test Strategy 41 Implementation 42 8.1. Code Solution 42 8.2. Test Solution 55 Evaluation 60 9.1. Product Evaluation 60 Appendix A 64 Progress report 1 64 Appendix B 65 Progress report 2 65 Appendix C 65 Higher National Group Award Graded Unit Specification 65

资源截图

代码片段和文件信息

package com.action;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import com.actionForm.BookForm;
import org.apache.struts.action.Action;
import com.dao.BookDAO;
import java.util.Date;

public class Book extends Action {
    private BookDAO bookDAO = null;
    public Book() {
        this.bookDAO = new BookDAO();
    }

    public ActionForward perform(ActionMapping mapping ActionForm form
                                 HttpServletRequest request
                                 HttpServletResponse response) {
        String action =request.getParameter(“action“);
        System.out.println(“\nbook*********************action=“+action);
        if(action==null||““.equals(action)){
            request.setAttribute(“error““operating illegally!“);
            return mapping.findForward(“error“);
        }else if(“bookAdd“.equals(action)){
            return bookAdd(mappingformrequestresponse);
        }else if(“bookQuery“.equals(action)){
            return bookQuery(mappingformrequestresponse);
        }else if(“bookModifyQuery“.equals(action)){
            return bookModifyQuery(mappingformrequestresponse);
        }else if(“bookModify“.equals(action)){
            return bookModify(mappingformrequestresponse);
        }else if(“bookDel“.equals(action)){
            return bookDel(mappingformrequestresponse);
        }else if(“bookDetail“.equals(action)){
            return bookDetail(mappingformrequestresponse);
        }else if(“bookifQuery“.equals(action)){
            return bookifQuery(mappingformrequestresponse);
        }
        request.setAttribute(“error““operation failed!“);
        return mapping.findForward(“error“);
    }
    /***********************Add book infromation**************************/
    private ActionForward bookAdd(ActionMapping mapping ActionForm form
                              HttpServletRequest request
                              HttpServletResponse response){
           BookForm bookForm = (BookForm) form;
           bookForm.setBarcode(bookForm.getBarcode());
           bookForm.setBookName(bookForm.getBookName());
           bookForm.setTypeId(bookForm.getTypeId());
           bookForm.setAuthor(bookForm.getAuthor());
           bookForm.setTranslator(bookForm.getTranslator());
           bookForm.setIsbn(bookForm.getIsbn());
           bookForm.setPrice(bookForm.getPrice());
           bookForm.setPage(bookForm.getPage());
           bookForm.setBookcaseid(bookForm.getBookcaseid());
           bookForm.setStorage(bookForm.getStorage());
           //get date
           Date date1=new Date();
           java.sql.Date date=new java.sql.Date(date1.getTime());
           bookForm.setInTime(date.toString());
           bookForm.setOperato

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件     1995898  2014-02-16 16:33  Library Management System.docx
     文件      373760  2014-02-16 16:32  程序使用说明书.doc
     文件        8620  2007-01-15 11:16  db_library mysql file\tb_readertype.frm
     文件        2048  2014-02-14 15:09  db_library mysql file\tb_readertype.MYI
     文件         148  2014-02-14 15:09  db_library mysql file\tb_readertype.MYD
     文件        9010  2014-02-14 04:40  db_library mysql file\tb_reader.frm
     文件        2048  2014-02-16 03:01  db_library mysql file\tb_reader.MYI
     文件         876  2014-02-16 03:01  db_library mysql file\tb_reader.MYD
     文件        8746  2007-01-15 11:16  db_library mysql file\tb_purview.frm
     文件        2048  2014-02-16 03:31  db_library mysql file\tb_purview.MYI
     文件          60  2014-02-16 03:31  db_library mysql file\tb_purview.MYD
     文件        8596  2007-01-15 11:16  db_library mysql file\tb_publishing.frm
     文件        1024  2014-02-14 09:39  db_library mysql file\tb_publishing.MYI
     文件         152  2014-02-14 09:39  db_library mysql file\tb_publishing.MYD
     文件        8624  2007-01-15 11:16  db_library mysql file\tb_parameter.frm
     文件        2048  2007-01-15 11:16  db_library mysql file\tb_parameter.MYI
     文件          13  2007-01-15 11:16  db_library mysql file\tb_parameter.MYD
     文件        8614  2007-01-15 11:16  db_library mysql file\tb_manager.frm
     文件        2048  2014-02-14 15:09  db_library mysql file\tb_manager.MYI
     文件         180  2014-02-14 15:09  db_library mysql file\tb_manager.MYD
     文件        8842  2007-01-15 11:16  db_library mysql file\tb_library.frm
     文件        2048  2014-02-14 15:09  db_library mysql file\tb_library.MYI
     文件         124  2014-02-14 14:44  db_library mysql file\tb_library.MYD
     文件        8704  2007-01-15 11:16  db_library mysql file\tb_giveback.frm
     文件        2048  2014-02-16 03:31  db_library mysql file\tb_giveback.MYI
     文件         512  2014-02-16 03:05  db_library mysql file\tb_giveback.MYD
     文件        8780  2007-01-15 11:16  db_library mysql file\tb_borrow.frm
     文件        2048  2014-02-16 03:31  db_library mysql file\tb_borrow.MYI
     文件         476  2014-02-16 03:31  db_library mysql file\tb_borrow.MYD
     文件        8624  2007-01-15 11:16  db_library mysql file\tb_booktype.frm
     文件        2048  2014-02-14 15:09  db_library mysql file\tb_booktype.MYI
............此处省略247个文件信息

评论

共有 条评论