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

📄 elec_jfree.jsp

📁 JSP移动商品管理平台源代码.........
💻 JSP
字号:
<%@ page language="java" import="java.util.*, imis_elec.*" pageEncoding="gb2312"%>
<jsp:directive.page import="imis_elec.DAOFactory"/>
<jsp:directive.page import="imis_elec.TreeDemo"/>
<jsp:directive.page import="java.text.SimpleDateFormat"/>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	ElecInfoDAOImpl elec = (ElecInfoDAOImpl) DAOFactory.getInstance().getElecInfoDAO();
	
	ElecInfoTO eto = new ElecInfoTO();
	eto.setBuyDep(session.getAttribute("OrganID").toString());
	
	
		
	ArrayList list = elec.searchElecInfos(eto);
	
	Date date = new Date();
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
	String today = format.format(date);	
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'elec_JFree.jsp' starting page</title>
    <script language="JavaScript" src="/Imis/imis_elec/js/checkdata.js"></script>
    <link rel="stylesheet" type="text/css" href="/Imis/imis_elec/css/style.css">
	<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>
  	<script type="text/javascript">
		function piepie(){
		form1.action="/Imis/servlet/Elec_JFreeChart?displayType=pie";
		form1.target="_self";
		}
		function barbar(){
		form1.action="/Imis/servlet/Elec_JFreeChart?displayType=bar";
		form1.target="_self";
		} 
		function tabletable(){
		form1.action="/Imis/servlet/Elec_JFreeChart?displayType=line";
		form1.target="_self";
		} 
		function duibi(){
		form1.action="/Imis/servlet/Elec_JFreeChart?displayType=duibi";
		form1.target="blank";
		} 
	</script>
  
  <body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling="auto" background="/Imis/imis_elec/images/bg_main.png">
    <form name="form1" action="" method="post">
    <table class="ziti" width="733">
    	<tr>
			<td width="100%" height="20" valign="bottom" align="left" colspan="4"  background="/Imis/imis_elec/images/bg_main2.png" ><font color="black">用电信息统计</font></td>
   	    </tr>
   	    <tr>
   	    	<td colspan="4">&nbsp;&nbsp; <input type="hidden" name="OrganOf" value=<%= session.getAttribute("OrganID") %> />         </td>
   	    </tr>
    	<tr>
    		<td width="30%" align="right">户&nbsp;&nbsp;&nbsp;&nbsp;号:</td>
    		<td width="20%">
    			
    			<select name="userId" id="userId" class="text1">
    				<option value="all">全部用户</option>
    				<c:forEach items="<%=list %>" var="user">
    					<option value="${user.userId }">${user.userId }</option>
    				</c:forEach>
    			</select>
    		</td>
    		<td align="right" width="10%">查询类型:</td>
    		<td>
    			<select name="type" id="type" class="text1">
    				<option value="1" selected="selected">电量</option>
    				<option value="2">价格</option>
    			</select>
    		</td>
    	</tr>
    	<tr>
    		<td align="right">起始日期:</td>
    		<td>
    		<input name="startDate" id="startDate" size="10" maxlength="10" type="text" value="<%=today %>" onmousedown="javascript:setday(form1.startDate);" readonly="readonly">
    		</td>
    		<td align="right">结束日期:</td>
    		<td>
    		<input name="endDate" id="endDate" size="10" maxlength="10" type="text" value="<%=today %>" onmousedown="javascript:setday(form1.endDate);" readonly="readonly">
    		</td>
    	</tr>
    	   	    <tr>
   	    	<td colspan="4">&nbsp;&nbsp;</td>
   	    </tr>
    	<tr>
    		<td colspan="4" align="center">
		        <input type="submit" name="Submit" value="饼图显示"  onclick="piepie()" class="anniu"/>
		        <input type="submit" name="Submit" value="柱状图显示"  onclick="barbar()" class="anniu"/>
		        <input type="submit" name="Submit" value="趋势图显示" onclick="tabletable()" class="anniu"/>
		        <input type="submit" name="Submit" value="往年同期对比" onclick="duibi()" class="anniu"/>
		     
		    </td>
    	</tr>
    </table>
    </form>
    
    <c:if test="${requestScope.graphURL!=null}">
  	<table>
	  <tr>
		<td><img src="${requestScope.graphURL }" width=500 height=300 border=0 ></td>	
	  </tr>
	</table>
	</c:if>
  </body>
</html>

⌨️ 快捷键说明

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