数据模型封装--行列都不固定(jsp)

不管后台怎么封装,最好是封装成易于前台展示的模型。。。

 

<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/jsp/inc/cr_inc.jsp"%>
<%@ include file="/jsp/creditreportview2010/layout/left/leftHead.jsp"%>

<div class="Content">
<div class="heading" id="jinchukou"><%=WebUtils.getMessage("jsp_IE_.00002") %><%--进出口情况 --%></div>
<table width="100%" class="listStyle04" border="0" cellspacing="0" cellpadding="0">
<c:if test="${not empty reportSumBean.IEPermit}">
<tr >
  <td valign="top" align="left" ><%=WebUtils.getMessage("jsp_CRV_.L_00007") %><%--进出口权: --%></td>
  <td valign="top" align="left" >${reportSumBean.IEPermit}</td>
</tr>
</c:if>
<c:if test="${not empty reportSumBean.filingNumber}">
<tr >
  <td valign="top" align="left" ><%=WebUtils.getMessage("java_.CCM_00044") %><%--备案文号: --%></td>
  <td valign="top" align="left" >${reportSumBean.filingNumber}</td>
</tr>
</c:if>
<c:if test="${not empty reportSumBean.sfilingDate}">
<tr >
  <td  valign="top" align="left" ><%=WebUtils.getMessage("java_.CCM_00045") %><%--备案时间: --%></td>
  <td valign="top" align="left" >${reportSumBean.sfilingDate}</td>
</tr>
</c:if>
<c:if test="${not empty reportSumBean.filingOrgan}">
<tr >
  <td  valign="top" align="left" ><%=WebUtils.getMessage("java_.CCM_00046") %><%--备案机关: --%></td>
  <td valign="top" align="left" >${reportSumBean.filingOrgan}</td>
</tr>
</c:if>
</table>
<br />
<c:if test="${not empty importExportBean}">
	<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
		<p><%=WebUtils.getMessage("java_.CCM_00047")%><%--主要自营进口商品: --%></p>
		<tr>
		<th  class="textright"><%=WebUtils.getMessage("java_h.FBD_00000")%></th><%--/*商品编码*/--%>
		<th width="18%" style="text-align:right; padding-right:10px;"><%=WebUtils.getMessage("java_h.FBD_00001")%></th><%--/*单位*/ --%>
		<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">		
			<th width="18%" style="text-align:right; padding-right:10px;">${year}</th>		
		</c:forEach>
		</tr>
			<c:forEach items="${importExportBean.importProduceMap}" var="data">	
				<tr>	
					<td >${data.key}</td>
					<td class="textright">${data.value.unit}</td>
					<c:forEach var="count" items="${data.value.importproduct}">
						<c:choose>
							<c:when test="${not empty count}">
								<td class="textright">${count}</td>
							</c:when>
							<c:otherwise>
								<td class="textright">--</td>
							</c:otherwise>	
						</c:choose>						
					</c:forEach>
				</tr>								
			</c:forEach>								
	</table>
	<p></p>
	<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
		<p><%=WebUtils.getMessage("java_.CCM_00048") %><%--主要自营出口商品: --%></p>
		<tr>
		<th class="textright"><%=WebUtils.getMessage("java_h.FBD_00000")%></th><%--/*商品编码*/--%>
		<th width="18%" style="text-align:right; padding-right:10px;"><%=WebUtils.getMessage("java_h.FBD_00001")%></th><%--/*单位*/ --%>
		<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">		
			<th width="18%" style="text-align:right; padding-right:10px;">${year}</th>		
		</c:forEach>
		</tr>
			<c:forEach items="${importExportBean.exportProduceMap}" var="data">	
				<tr>	
					<td >${data.key}</td>
					<td class="textright">${data.value.unit}</td>
					<c:forEach var="count" items="${data.value.exportproduct}">
						<c:choose>
							<c:when test="${not empty count}">
								<td class="textright">${count}</td>
							</c:when>
							<c:otherwise>
								<td class="textright">--</td>
							</c:otherwise>	
						</c:choose>
					</c:forEach>
				</tr>								
			</c:forEach>								
	</table>
	<p></p>
	<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<th class="textright"></th>
		<th width="18%" style="text-align:right; padding-right:10px;"><%=WebUtils.getMessage("java_Util_.coin")%></th><%--/*货币*/ --%>
		<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">		
			<th width="18%" style="text-align:right; padding-right:10px;">${year}</th>		
		</c:forEach>
		</tr>
		<tr>	
			<td ><%=WebUtils.getMessage("java_h.FBD_00002") %></td><%-- 自营进口商品总额--%>
			<td class="textright"><%=WebUtils.getMessage("currency.3") %></td><%--/*美元*/ --%>
			<c:forEach var="count" items="${importExportBean.showImportTradeSum}">
				<c:choose>
					<c:when test="${not empty count}">
						<td class="textright">${count}</td>
					</c:when>
					<c:otherwise>
						<td class="textright">--</td>
					</c:otherwise>	
				</c:choose>
			</c:forEach>
		</tr>
		<tr>	
			<td ><%=WebUtils.getMessage("java_h.FBD_00003") %></td><%-- 自营出口商品总额--%>
			<td class="textright"><%=WebUtils.getMessage("currency.3") %></td><%--/*美元*/ --%>
			<c:forEach var="count" items="${importExportBean.showExportTradeSum}">
				<c:choose>
					<c:when test="${not empty count}">
						<td class="textright">${count}</td>
					</c:when>
					<c:otherwise>
						<td class="textright">--</td>
					</c:otherwise>	
				</c:choose>
			</c:forEach>
		</tr>																
	</table>
	<p></p>
	<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<th class="textright"><%=WebUtils.getMessage("java_.CCM_20343")%></th><%--/*主要自营进口地区*/--%>
		<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">		
			<th width="23%" style="text-align:right; padding-right:10px;">${year}</th>		
		</c:forEach>
		</tr>
		<c:forEach var="count" items="${importExportBean.importCountryData}">
			<tr>
				<td > </td>
				<c:forEach var="data" items="${count}">
					<td class="textright">${data}</td>
				</c:forEach>
			</tr>
		</c:forEach>
																	
	</table>
	<p></p>
	<table width="100%" id="list016" class="listStyle02" border="0" cellspacing="0" cellpadding="0">
		<tr>
		<th style="text-align:left; padding-left:10px;"><%=WebUtils.getMessage("java_.CCM_20344")%></th><%--/*主要自营出口地区*/--%>
		<c:forEach items ="${importExportBean.yearOfImportAndExport}" var = "year">		
			<th width="23%" style="text-align:right; padding-right:10px;">${year}</th>		
		</c:forEach>
		</tr>
		<c:forEach var="count" items="${importExportBean.exportCountryData}">
			<tr>
				<td > </td>
				<c:forEach var="data" items="${count}">
					<td class="textright">${data}</td>
				</c:forEach>
			</tr>
		</c:forEach>																			
	</table>	
</c:if>
</div>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值