⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stock_appropriation_timerecord_frame.jsp

📁 医药供应链管理系统
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.dboperation.AppropriationDA"/>
<jsp:directive.page import="com.captainli.dboperation.ProduitDA"/>
<jsp:directive.page import="com.captainli.bean.AppropriationBean"/>
<jsp:directive.page import="com.captainli.dboperation.WarehouseDA"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-right:0px;
	margin-top: 0px;
	background-color: #FFFFFF;
}
a:link {
	color: #1A438E;
	text-decoration: underline;
}
a:visited {
	text-decoration: underline;
}
a:hover {
	text-decoration: none;
	color: #000000;
}
a:active {
	text-decoration: underline;
}
-->
</style>
</head>
<%
	String starttime = "";
	String endtime = "";
	ArrayList arryApp = null;
 %>
<%
	if(request.getParameter("starttime") != null && request.getParameter("endtime") != null){
		if(request.getParameter("starttime").equals("") && request.getParameter("endtime").equals("")){
			arryApp = new AppropriationDA().showApp();
		}else{
			starttime = request.getParameter("starttime").toString();
			endtime = request.getParameter("endtime").toString();
			arryApp = new AppropriationDA().showAppByA_time(starttime, endtime);
		}
	}else{
		arryApp = new AppropriationDA().showApp();
	}
 %>
<%
	int intPageSize; //一页显示的记录数 
	int intRowCount; //记录总数 
	int intPageCount;//总页数 
	int intPage;     //待显示页码
	String strPage;  //请求页码
	
	//设置一页显示的记录数 
	intPageSize = 10; 
	
	//取得显示的页码
	strPage = request.getParameter("page");
	if(strPage == null){//刚打开网页的时候,表明没有参数,此时显示第1页数据 
		intPage = 1;    
	} 
	else{//将字符串转换成整型 
		intPage = Integer.parseInt(strPage); 
	    //if(intPage <= 1)
		//	intPage = 1; 
	   } 
	
	//获取记录总数
	intRowCount = arryApp.size();
	
	//记算总页数 
	intPageCount = (intRowCount + intPageSize-1) / intPageSize; 
	
	int startNum = (intPage - 1) * intPageSize;//当前页起始索引
 	int endNum = startNum + intPageSize;//当前页结束索引	 
  	if(endNum >= arryApp.size()){
 		endNum = arryApp.size();
 	}
 %>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
  <tr>
    <td><img src="../images/system/r_1.gif" alt="" /></td>
    <td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td>&nbsp;</td>
          <td align="right">&nbsp;</td>
        </tr>
    </table></td>
    <td><img src="../images/system/r_2.gif" alt="" /></td>
  </tr>
  <tr>
    <td></td>
    <td><!--startprint-->
        <table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
          <tr align="center">
            <td class="category" width="148">批次号</td>
            <td width="190" height="30" class="category">药品名称</td>
            <td width="160" class="category">调出仓库</td>
            <td width="160" class="category">调拨仓库</td>
            <td width="100" class="category">调拨数量</td>
            <td width="154" class="category">调拨时间</td>
          </tr>
          <%
            	for(int i = startNum;i < endNum;i++){
            		AppropriationBean bean = (AppropriationBean)arryApp.get(i);
             %>
          <tr onMouseOver="this.className='highlight'" onMouseOut="this.className=''">
            <td align="center"><%= bean.getA_r_no() %></td>
            <td align="center" height="25"><%= bean.getP_name() %></td>
            <td align="center"<%String gow = new WarehouseDA().showW_name(bean.getA_gow()); %>><%= gow %></td>
            <td align="center"<%String tow = new WarehouseDA().showW_name(bean.getA_tow()); %>><%= tow %></td>
            <td align="center"><%= bean.getA_quantity() %></td>
            <td align="center"><%= bean.getA_time() %></td>
          </tr>
          <%} %>
          <tr>
            <td colspan="8" height="30" class="category"><table cellpadding=0 cellspacing=0 width="100%">
                <tr>
                  <td width="20%" align="left" style="color:#FF0000;">&nbsp;</td>
                  <td width="80%" align="right"> 第<%= intPage%>页 共<%= intPageCount%>页
                      <% //以下是分页的“上一页”“下一页”,有上一页就有链接,没有就为文字,下一页同理 %>
                      <% if(intPage > 1){ %>
                      <a href="stock_appropriation_timerecord_frame.jsp?page=<%= intPage-1%>&starttime=<%= starttime %>&endtime=<%= endtime %>">上一页</a>
                      <% }else{ %>
                  上一页
                  <%}%>
                  <% if(intPage < intPageCount){ %>
                  <a href="stock_appropriation_timerecord_frame.jsp?page=<%= intPage+1%>&starttime=<%= starttime %>&endtime=<%= endtime %>">下一页</a>
                  <% }else{ %>
                  下一页
                  <%}%></td>
                </tr>
            </table></td>
          </tr>
        </table>
        <!--endprint-->
    </td>
    <td></td>
  </tr>
  <tr>
    <td><img src="../images/system/r_4.gif" alt="" /></td>
    <td></td>
    <td><img src="../images/system/r_3.gif" alt="" /></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -