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

📄 cardcustomresult.jsp

📁 本套系统采用了业界当前最为流行的beanAction组件
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@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="../js/my.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("3")) {
		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="./cardCustomQuery.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>
			</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>
				</tr>
			</logic:iterate>
		</tbody>
	</table>

	<br>
	<table>
		<tr>
			<td width="2%"></td>
			<td>
				<html:form action="/jsp/goHeadPageCuCard">
					<html:submit value="首页"></html:submit>
				</html:form>
			</td>
			<td>
				<html:form action="/jsp/goToLastPageCuCard">
					<html:submit value="上一页"></html:submit>
				</html:form>
			</td>
			<td>
				<html:form action="/jsp/goToNextPageCuCard">
					<html:submit value="下一页"></html:submit>
				</html:form>
			</td>
			<td>
				<html:form action="/jsp/goEndPageCuCard">
					<html:submit value="尾页"></html:submit>
				</html:form>
			</td>
			<td>
				<html:form action="jsp/goNextPageCuCard">
					总共有
					<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 + -