orders_detail.jsp

来自「crm系统 有源码 及相关文档sql2005 数据库 客户反馈模块」· JSP 代码 · 共 81 行

JSP
81
字号
<%@ page language="java" pageEncoding="GBK" %>

<%@ 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" %>
<%@ taglib uri="/WEB-INF/jb-common.tld" prefix="jb"  %>
<script src="validate.js" ></script>
<script src="icommon.js" ></script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <title>查看历史订单明细</title>
	<link rel="stylesheet" type="text/css" href="styles.css" >
  </head>  
  <body>
  	<html:hidden property="o" value="toList" />
  	<input type="hidden" name="id" value="${param.id }" />
  	<div class="page_title">查看历史订单明细</div>
  	<div class="button_bar">
		<button class="common_button" onclick="help('');">帮助</button>
		<button class="common_button" onclick="javascript:window.location.href='?o=toList&id=${param.id }';">返回</button>  
	</div>
	<bean:define id="item" name="item" type="org.jb.y272.team0.entity.VOrders"></bean:define>
		<table class="query_form_table" border="0" cellPadding="3" cellSpacing="0">
			<tr>
				<th>订单编号</th>
				<td>${item.odrId }&nbsp;</td>
				<th>日期</th>
				<td><bean:write name="item" property="odrDate" format="yyyy年MM月dd日" />&nbsp;</td>
			</tr>
			<tr>
				<th>送货地址</th>
				<td>${item.odrAddr }&nbsp;</td>
				<th>状态</th>
				<td><%
					if ("5".equals(item.getOdrStatus())){
						out.print("未回款");
					}else if ("6".equals(item.getOdrStatus())){
						out.print("已回款");
					}
				 %>&nbsp;&nbsp;</td>
			</tr>
		</table>
		<!-- 列表数据 -->
		<br /><% double total = 0; %>
		<table class="data_list_table" border="0" cellPadding="3" cellSpacing="0">
		<tr>
			<th>商品</th>
			<th>数量</th>
			<th>单位</th>
			<th>单价(元)</th>
			<th>金额(元)</th>
		</tr>
		<logic:iterate id="a" name="lines"
			type="org.jb.y272.team0.entity.VOrdersLine"> 
			<%
				total += a.getOddPrice().doubleValue() * a.getOddCount().doubleValue();
			 %>
			<tr>
				<td class="list_data_ltext">${a.oddProdName }&nbsp;</td>
				<td class="list_data_number">${a.oddCount }&nbsp;</td>
				<td class="list_data_text">${a.oddUnit }&nbsp;</td>
				<td class="list_data_number">${a.oddPrice }&nbsp;</td>
				<td class="list_data_number">${a.oddPrice*a.oddCount }&nbsp;</td>
			</tr>
		</logic:iterate>
		<logic:notEmpty name="lines">
			<tr>
				<td colspan="3">&nbsp;</td>
				<td class="list_data_number">合计</td>
				<td class="list_data_number"><%=total %>&nbsp;</td>
			</tr>
		</logic:notEmpty>
		<logic:empty name="lines">
			<tr><td class="data_cell" colspan="20" style="text-align:center;height:40px;">没有记录</td></tr>
		</logic:empty>
		</table>
		
  </body>
</html:html>

⌨️ 快捷键说明

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