?? cardcheckerresult.jsp
字號:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@page import="teleReport.domain.CardInfo"%>
<%@page import="org.apache.struts.util.LabelValueBean"%>
<%@page import="java.util.*" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html:html lang="true">
<head>
<bean:define id="totalPId" name="cardBean" property="totalPage" />
<bean:define id="curPId" name="cardBean" property="currentPage" />
<link rel="stylesheet" type="text/css" href="../common/css/common.css" />
<title>卡銷售信息查詢結果</title>
<script type="text/javascript" src="../common/js/cardSale.js"></script>
<%
String str = totalPId.toString();
int n = Integer.parseInt(str);
List v = new ArrayList();
for (int i = 1; i <= n; i++) {
v.add(new LabelValueBean(Integer.toString(i), Integer.toString(i)));
}
pageContext.setAttribute("v", v);
%>
<%
String type =(String)session.getAttribute("userClass");
if (!type.equals("2")) {
session.setAttribute("notLogin", true);
out.print("<script language=javascript>window.location.href='/TeleReport/jsp/login.jsp';</script>");
}
%>
<html:base />
</head>
<body>
<div style="position:absolute;margin:15px,0px,0px,0px;width:1085px;">
<logic:empty name="cardBean" property="pageCardList">
沒有符合要求的選項,請
<html:link href="./cardCheckerQuery.jsp">返回</html:link>
</logic:empty>
<logic:notEmpty name="cardBean"
property="pageCardList">
<br>
<table width="200" border="1">
<tbody>
<tr>
<td class="item">
卡銷售單編號
</td>
<td class="item">
產品編號
</td>
<td class="item">
城市
</td>
<td class="item">
銷售日期
</td>
<td class="item">
卡單張面值
</td>
<td class="item">
卡銷售數量
</td>
<td class="item">
折扣后金額
</td>
<td class="item">
稽查狀態
</td>
<td class="item">
稽查者
</td>
<td class="item">
稽查時間
</td>
<td class="item">
稽查
</td>
</tr>
<logic:iterate id="element" name="cardBean" property="pageCardList">
<tr>
<td class="item_value">
<bean:write name="element" property="cardSaleId" />
</td>
<td class="item_value">
<bean:write name="element" property="proName" />
</td>
<td class="item_value">
<bean:write name="element" property="cityName" />
</td>
<td class="item_value">
<bean:write name="element" property="saleDate" />
</td>
<td class="item_value">
<bean:write name="element" property="singleV" />
</td>
<td class="item_value">
<bean:write name="element" property="proNumber" />
</td>
<td class="item_value">
<bean:write name="element" property="discordV" />
</td>
<td class="item_value">
<logic:equal value="0" property="state" name="element">未稽核</logic:equal>
<logic:equal value="1" property="state" name="element">已稽核</logic:equal>
<logic:equal value="2" property="state" name="element">未通過</logic:equal>
</td>
<td class="item_value">
<bean:write name="element" property="checkId" />
</td>
<td class="item_value">
<bean:write name="element" property="checkTime" />
</td>
<td class="item_value">
<div id="operation"
<%if( !((CardInfo) element).getState().equals("2")){%>
style="visibility: hidden" <%} %>>
<a
href="./updateCardState.do?cardSaleId=<%=((CardInfo) element).getCardSaleId()%>&newState=1">
通過 </a>
<a
href="./updateCardState.do?cardSaleId=<%=((CardInfo) element).getCardSaleId()%>&newState=0">
不通過 </a>
</div>
</td>
</tr>
</logic:iterate>
</tbody>
</table>
<br>
<table>
<tr>
<td width="2%"></td>
<td>
<html:form action="/jsp/goHeadPageChCard">
<html:submit value="首頁"></html:submit>
</html:form>
</td>
<td>
<html:form action="/jsp/goToLastPageChCard">
<html:submit value="上一頁"></html:submit>
</html:form>
</td>
<td>
<html:form action="/jsp/goToNextPageChCard">
<html:submit value="下一頁"></html:submit>
</html:form>
</td>
<td>
<html:form action="/jsp/goEndPageChCard">
<html:submit value="尾頁"></html:submit>
</html:form>
</td>
<td>
<html:form action="jsp/goNextPageChCard">
總共有
<bean:write name="cardBean" property="totalPage"></bean:write>
頁, 第
<html:select property="currentPage">
<html:options collection="v" labelProperty="label"
property="value" />
</html:select>
頁
<html:submit value="跳轉"></html:submit>
</html:form>
</td>
<td width="55%"></td>
</tr>
</table>
</logic:notEmpty>
</div>
</body>
</html:html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -