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

📄 elecuseinfobysearch.jsp

📁 JSP移动商品管理平台源代码.........
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<jsp:directive.page import="imis_elec.ElecUseInfoTO"/>

<jsp:directive.page import="java.text.DecimalFormat"/>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	String p = request.getParameter("d-7804-p");
	if(p == null) {
		p = "1";
	}
	
	int start = Integer.parseInt(p) * 15 - 15;
	int end = Integer.parseInt(p) * 15 - 1;
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>查询结果</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <link rel="stylesheet" type="text/css" href="/Imis/imis_elec/css/style.css">
  
  <body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling="auto" background="/Imis/imis_elec/images/bg_main.png" class="ziti">

		<table width="90%"  border="0" align="center">
			<tr>
				<td align="center"><img border="0" src="/Imis/imis_elec/images/logomain.gif" width="934" height="65"></td>
			</tr>
			<tr>
				<td>
				<c:set var="nowReading" value="0.0"></c:set>
				<c:set var="elecMeterReading" value="0.0"></c:set>
				<c:set var="xianLoss" value="0.0"></c:set>
				<c:set var="bianLoss" value="0.0"></c:set>
				<c:set var="tuiBu" value="0.0"></c:set>
				<c:set var="sumElec" value="0.0"></c:set>
				<c:set var="sum" value="0.0" scope="request"></c:set>
				
				<c:forEach items="${sessionScope.ElecUseInfoList}" var="item" begin="<%=start %>" end="<%=end %>">
					<c:set var="nowReading" value="${item.nowReading + nowReading}"></c:set>
					<c:set var="elecMeterReading" value="${item.elecMeterReading + elecMeterReading}"></c:set>
					<c:set var="xianLoss" value="${item.xianLoss + xianLoss}"></c:set>
					<c:set var="bianLoss" value="${item.bianLoss + bianLoss}"></c:set>
					<c:set var="tuiBu" value="${item.tuiBu + tuiBu}"></c:set>
					<c:set var="sumElec" value="${item.sumElec + sumElec}"></c:set>
					<c:set var="sum" value="${item.sum + sum}" scope="request"></c:set>
				</c:forEach>
				<%
					String s = request.getAttribute("sum").toString();
					DecimalFormat format = new DecimalFormat("#########.###");
					s = format.format(Double.parseDouble(s));
					request.setAttribute("sum", s);
				 %>
				</td>
			</tr>		
  			<tr>
    			<td>	
					<c:if test="${sessionScope.ElecUseInfoList!=null}"> 
					    <hr/><br/>
			            <h3 align="center">查&nbsp;&nbsp;询&nbsp;&nbsp;结&nbsp;&nbsp;果</h3>
			            <display:table name="sessionScope.ElecUseInfoList" id="elecUseInfo" pagesize="15"
			                           requestURI="/Imis/imis_elec/elecUseInfoBySearch.jsp"  export="true" class="ziti" >
			                <display:column property="userId" title="户号" width="130" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="elecMeterRegNo" title="电表编号" width="130" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="nowReading" title="本月指数" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="elecMeterReading" title="上月指数" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="readOn" title="读数单位" width="60" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="xianLoss" title="线损" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="bianLoss" title="变损" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="tuiBu" title="退补电量" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="sumElec" title="计费电量" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="priceUnit" title="单价" width="80" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="readDate" title="结算日期" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			<%--                <display:column property="reMark" title="标志" width="100"/>--%>
							<display:column property="sum" title="金额" width="100" bgcolor="#FFFFFF" headerClass="chaxun"/>
			                <display:column property="memo" title="备注" width="100" bgcolor="#FFFFFF" headerClass="chaxun" />
			                
<%--			                <display:setProperty name="sort.behavior" value="list"/>--%>
			                <display:setProperty name="paging.banner.include_first_last" value=""/>
			                <display:setProperty name="paging.banner.placement" value="bottom"/>
			                <display:setProperty name="export.csv" value="false"/>
			                <display:setProperty name="export.xml" value="false"/>
			                <display:footer>
  						<tr bgcolor="#FFFFFF">
  							<td width="260" colspan="2" align="center" class="chaxun">当前页合计</td>
  							<td width="100">${nowReading }</td>
  							<td width="100">${elecMeterReading }</td>
  							<td width="100"></td>
  							<td width="100">${xianLoss }</td>
  							<td width="100">${bianLoss }</td>
  							<td width="100">${tuiBu }</td>
  							<td width="100">${sumElec }</td>
  							<td width="100"></td>
  							<td width="100"></td>
  							<td width="100">${requestScope.sum }</td>
  							<td width="100"></td>
  						</tr>
  					</display:footer>
			            </display:table>
			        </c:if>
			      </td>
  			</tr>
  			<tr>
  				<td colspan="1">&nbsp;&nbsp;</td>
  			</tr>
  			<tr>
    			<td align="center" valign="middle">
    				<script language="JavaScript">
						function shutwin(){
						window.close();
						return;}
					</script>
				<input type="submit" name="Submit" value="关  闭" class="anniu" onclick="shutwin()"/>
  			</tr>
        </table>
  </body>
</html>

⌨️ 快捷键说明

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