毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

软件图书管理系统+CDM图+PDM图+表间关系图 第10页

更新时间:2008-7-8:  来源:毕业论文

软件图书管理系统,关联图+DFD图+实体属性图+ER图

document.all.txt_edit.value = "";

          document.all.txt_page.value = "1";

 

          document.all.form1.action = "index.jsp?bm=1";

          document.all.form1.submit();

   }

//跳转到最后一页的函数

   function lastpg()

   {

          document.all.txt_type.value = "<%=strType%>";

          document.all.txt_type1.value = "<%=strType1%>";

          document.all.txt_id.value = "";

          document.all.txt_edit.value = "";

          document.all.txt_page.value = "<%=t%>";

         

          document.all.form1.action = "index.jsp?bm="+<%=t%>;

          document.all.form1.submit();

   }

//跳转到下一页的函数

   function nextpg()

   {

          document.all.txt_type.value = "<%=strType%>";

          document.all.txt_type1.value = "<%=strType1%>";

          document.all.txt_id.value = "";

          document.all.txt_edit.value = "";

          document.all.txt_page.value = "<%=s%>";

 

          document.all.form1.action = "index.jsp?bm="+<%=s%>;

          document.all.form1.submit();

   }

 

   function finalpg()

   {

          document.all.txt_type.value = "<%=strType%>";

          document.all.txt_type1.value = "<%=strType1%>";

          document.all.txt_id.value = "";

          document.all.txt_edit.value = "";

          document.all.txt_page.value = "<%=sum%>";

 

          document.all.form1.action = "index.jsp?bm="+<%=sum%>;

          document.all.form1.submit();

   }

 

   function checkdata()

   {

          if (checkd()) return true;

          document.all.bm.value="";

          return false;

   }

//判断输入的是不是数字

   function checkd()

   {

 

          if(!isDigit(document.all.bm.value))

          {

                 alert("输入的页码不是数字!");

                 return false;

          }

          if(document.all.bm.value=="")

          {

                 alert("请输入页码!");

                 return false;

          }

          else

          {

                 var t = document.all.bm.value;

                 var cur = <%=cur%>;

                 var sum = <%=sum%>;

 

                 if(t<1||t>sum)

                 {

                        alert("请跳至1"+sum+"之间!");

                        return false;

                 }

          }

          document.all.txt_page.value = document.all.bm.value;

          return true;

   }

   document.all.txt_page.value = "";

</script>

<%

   myBean.closeConn();

%>

 

4.2 借阅管理

 

图书归还界面图如图4.2所示

4.2图书归还界面图

关于还书的Java代码:

//还书,参数为索取号

   public int[] backBorrow(String sqh)

   {

          System.out.println("批量处理还书。。。。。");

          String sql="";

          String strBOOKID=ds.toString((String)toName("KJB2_KJXX_STORE","SQH","BOOKID",sqh));

 

          String strNow = ds.getDateTime();

          strNow = strNow.substring(0,10);

 

          createStatement();

             closeStm();

          return result;

   }

 

   //根据所还书的索取号取得,此书的信息和是否过期等信息

   public Hashtable checkBook(String sqh)

   {

          String sql="";

          String strBOOKID=ds.toString((String)toName("KJB2_KJXX_STORE","SQH","BOOKID",sqh));

          if(strBOOKID.equals("")) strBOOKID="-1";

          String strBOOKCLASSID=ds.toString((String)toName("KJB2_KJXX_STORE","SQH","BOOKCLASSID",sqh));

          if(strBOOKCLASSID.equals("")) strBOOKCLASSID="-1";

          sql="select TITLE,AUTHOR,ISBN,CBSJ,DJ,PCJE,READERID,JYSJ,DQSJ "

                 +" from KJB2_KJXX_BOOK,KJB2_KJXX_JYB "

                 +" where KJB2_KJXX_BOOK.BOOKCLASSID="+strBOOKCLASSID+" and KJB2_KJXX_JYB.BOOKID="+strBOOKID+" and KJB2_KJXX_JYB.ZT='"+strZero+"'";

          return searchOneData(sql);

   }

 

归还的JSP代码:

调用的JavaBeankjb2.library.bean.BorrowBean

<jsp:useBean id="myBean" scope="page" class="kjb2.library.bean.BorrowBean"/>

界面的JSP代码:

<div align=center>

<hr>

    <table  width="100%" cellspacing=1 cellpadding=0 class="tbg" align=center>

          <tr><td  align="center" class=bgtable colspan=2 style="font:bold 20px"><br><br></td></tr>

   </table>

   <br>

    <table  width="100%" cellspacing=1 cellpadding=0 class="tbg">

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ... 下一页  >> 

软件图书管理系统+CDM图+PDM图+表间关系图 第10页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。