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

📄 selordrpt.jsp

📁 阳光超市管理系统 阳光超市管理系统(07.6.12
💻 JSP
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<jsp:directive.page import="finance.FinanceBean;" />
<html>
	<head>
		<title>商品销售排行报表</title>
	</head>

<body text="#666666">
		<div align="center">
			<h3>
				欣欣超市商品销售排行报表
			</h3>
	
		<p>
			<%
				FinanceBean[] fbs = (FinanceBean[]) request.getAttribute("fbs");
				if (fbs != null) {
			%>
			统计日期:
			<%=request.getParameter("fromdate")%>
			<%=request.getParameter("todate")%>
		<table align="center" border="1" width="85%" cellspacing="1"
			cellpadding="1" bordercolor="#DADADA" bordercolordark="EBEBEB">
			<tr bgcolor="#EBEBEB">
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;">
							商品编号</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;">
							商品名称</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;">
							销售数量</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;">
							总销售额</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;"> 利润</span>
					</font>
					<br>
				</th>
			</tr>

			<%
			for (int i = 0; i < fbs.length; i++) {
			%>
			<tr>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;"> <%=fbs[i].getMerchID()%>
					</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;"> <%=fbs[i].getMerchName()%>
					</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;"> <%=fbs[i].getSaleTotal()%>
					</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;"> <%=fbs[i].getSaleAmount()%>
					</span> </font>
					<br>
				</th>
				<th width="%10" align="center">
					<font size="3"><span style="font-weight: normal;"> <%=fbs[i].getSaleAmount()
							- fbs[i].getMerchPrice() * fbs[i].getSaleTotal()%> </span> </font>
					<br>
				</th>
			</tr>
			<%
			}
			%>
		</table>
		<%
		}
		%>
			</div>
	</body>
</html>

⌨️ 快捷键说明

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