?? queryinventory.jsp
字號:
<jsp:useBean id="stockInfoTra" class="src.wuyang.StockInfoTra" 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>
</head>
<%
/*
0 出庫(銷售)
1 入庫(采購)
2 調撥
3 調整
4 完成
*/
String flag[]={"銷售","采購","調撥"};
String str[]={"SalesReceiptList.jsp","AllocatReceiptList.jsp","PurchReceiptList.jsp"};
String str2[]={"slipId","allocatId","purchId"};
String whereClause="state !=3 and state != 4";
stockInfoTra.query(whereClause,"");
%>
<body>
<table border="1">
<tr>
<td>憑證</td>
<td>憑證類型</td>
</tr>
<%
while (stockInfoTra.next()>0) {
%>
<tr>
<td><a href="<%=str[stockInfoTra.getReceiptType()]%>?<%=str2[stockInfoTra.getReceiptType()]%>=<%=stockInfoTra.getReceiptId()%>"><%=stockInfoTra.getReceiptId()%></a></td>
<td><%=flag[stockInfoTra.getReceiptType()]%></td>
</tr>
<%
}
%>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -