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

📄 locationstatelist.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="product" class="src.wuyang.Production" scope="page"/>
<jsp:useBean id="locationState" class="src.wuyang.LocationState" scope="session"/>
<jsp:useBean id="wearhouse" class="src.wuyang.Wearhouse" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>

<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" > 
	<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<%	}
%>


<html>
<head>
<title> 仓库盘存信息列表</title>
<link rel="stylesheet" href="css.css" type="text/css">
</head>

<%				
    	if (request.getParameter("balance") != null) {
    		locationState.setGlobal(global);
%>
<jsp:setProperty name="locationState" property = "*" />
<%
    		int rtcode = locationState.balance();
    	}

	int position,state,curPage,totalPage;    
	int numInOnePage = locationState.getNumInOnePage();
	locationState.listPage(request);
	
	position = locationState.listPosition;
    	state = locationState.state;
    	curPage = locationState.curPage;
    	totalPage = locationState.totalPage;
    	
	locationState.next();
	String wearhouseId = locationState.getWearhouseId();
	wearhouse.load(wearhouseId);
	locationState.previous();
%>
<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 <table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
  <tr> 
    <td valign="top">
      <blockquote><br>
        <table width="75%" border="0">
          <tr>
            <td><b><span class="textb">仓库编码:</span></b><span class="textb"><%=wearhouseId%></span></td>
            <td><span class="textb"><b>仓库名称:</b><%=wearhouse.getWearhouseName()%></span></td>
          </tr>
        </table>
        <table width="90%" border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
          <tr bgcolor="#949b93"> 
            <td class="text"> 
              <div align="center"><b>货位编码</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>产品名称</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>规格/型号</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>帐面数量</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>帐面件数</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>上次盘存日期</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>盘存数量</b></div>
            </td>
            <td class="text"> 
              <div align="center"><b>盘存件数</b></div>
            </td>
            <td class="text"> 
              <div align="center">&nbsp; </div>
            </td>
          </tr>
<%
	for(int listCount = 0 ; listCount < numInOnePage && (locationState.next() > 0); listCount++) {		
		String productId = locationState.getProductId();
		product.load(productId);
%>
          <tr class="textb"> 
            <form method="post" class="textb" action="LocationStateList.jsp?browseMode=nex&position=<%=position%>&curPage=<%=curPage%>" >
              <input type="hidden" name="wearhouseId" value="<%=wearhouseId%>">
              <input type="hidden" name="locationId" value="<%=locationState.getLocationId()%>">
              <input type="hidden" name="productId" value="<%=product.getProductId()%>">
              <input type="hidden" name="quantity" value= "<%=locationState.getQuantity()%>">
              <input type="hidden" name="counting" value="<%=locationState.getCounting()%>">
              <td><%= locationState.getLocationId() %> </td>
              <td><%= product.getProductName() %></td>
              <td><%= product.getProductDesc() %></td>
              <td><%= locationState.getQuantity()%></td>
              <td><%= locationState.getCounting()%></td>
              <td><%= locationState.getStringDate(locationState.getBalanceDate(),0)%></td>
              <td> 
                <input type="text" name="newQuantity" value="<%=locationState.getQuantity()%>"/ size="12" maxlength="12">
              </td>
              <td> 
                <input type="text" name="newCounting" value="<%=locationState.getCounting()%>"/ size="8" maxlength="8">
              </td>
              <td> 
                <input type="submit" name="balance" value="盘存">
              </td>
            </form>
          </tr>
          <%
	}
%> 
        </table>
        <p class="textb"> <%
	if (position==0&&state==0){
 %> 记录数 <%=curPage %>&nbsp/&nbsp<%=totalPage%> <% 
	} else if (position==0&&state==2){ 
%> <a href="LocationStateList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>" target="window">下一页</a>&nbsp&nbsp&nbsp页码 
          <%=curPage %>&nbsp/&nbsp<%=totalPage%> <% 
	} else if (position>0&&state==-1){ 
%> <a href="LocationStateList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>" target="window">上一页</a>&nbsp&nbsp&nbsp&nbsp&nbsp页码 
          <%=curPage%>&nbsp/&nbsp<%=totalPage%> <% 
	} else if (position>0&&state==1){ 
%> <a href="LocationStateList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>" target="window">上一页</a>&nbsp&nbsp<a href="LocationStateList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>" target="window">下一页</a>&nbsp&nbsp页码 
          <%=curPage %>&nbsp/&nbsp<%=totalPage%> <%
	 } 
%> 
      </blockquote>
    </td>
  </tr>
</table>
</body>
</html>



⌨️ 快捷键说明

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