?? elec_005fjfree_jsp.java
字號:
package org.apache.jsp.imis_005felec;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import imis_elec.*;
import imis_elec.DAOFactory;
import imis_elec.TreeDemo;
import java.text.SimpleDateFormat;
public final class elec_005fJFree_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_forEach_var_items.release();
_jspx_tagPool_c_if_test.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
out.write("\r\n");
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);
out.write("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n ");
out.write("<head>\r\n ");
out.write("<base href=\"");
out.print(basePath);
out.write("\">\r\n \r\n ");
out.write("<title>My JSP 'elec_JFree.jsp' starting page");
out.write("</title>\r\n ");
out.write("<script language=\"JavaScript\" src=\"/Imis/imis_elec/js/checkdata.js\">");
out.write("</script>\r\n ");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_elec/css/style.css\">\r\n\t");
out.write("<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"expires\" content=\"0\"> \r\n\t");
out.write("<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n\t");
out.write("<meta http-equiv=\"description\" content=\"This is my page\">\r\n\t");
out.write("<!--\r\n\t");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n\t-->\r\n\r\n ");
out.write("</head>\r\n \t");
out.write("<script type=\"text/javascript\">\r\n\t\tfunction piepie(){\r\n\t\tform1.action=\"/Imis/servlet/Elec_JFreeChart?displayType=pie\";\r\n\t\tform1.target=\"_self\";\r\n\t\t}\r\n\t\tfunction barbar(){\r\n\t\tform1.action=\"/Imis/servlet/Elec_JFreeChart?displayType=bar\";\r\n\t\tform1.target=\"_self\";\r\n\t\t} \r\n\t\tfunction tabletable(){\r\n\t\tform1.action=\"/Imis/servlet/Elec_JFreeChart?displayType=line\";\r\n\t\tform1.target=\"_self\";\r\n\t\t} \r\n\t\tfunction duibi(){\r\n\t\tform1.action=\"/Imis/servlet/Elec_JFreeChart?displayType=duibi\";\r\n\t\tform1.target=\"blank\";\r\n\t\t} \r\n\t");
out.write("</script>\r\n \r\n ");
out.write("<body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling=\"auto\" background=\"/Imis/imis_elec/images/bg_main.png\">\r\n ");
out.write("<form name=\"form1\" action=\"\" method=\"post\">\r\n ");
out.write("<table class=\"ziti\" width=\"733\">\r\n \t");
out.write("<tr>\r\n\t\t\t");
out.write("<td width=\"100%\" height=\"20\" valign=\"bottom\" align=\"left\" colspan=\"4\" background=\"/Imis/imis_elec/images/bg_main2.png\" >");
out.write("<font color=\"black\">用電信息統(tǒng)計");
out.write("</font>");
out.write("</td>\r\n \t ");
out.write("</tr>\r\n \t ");
out.write("<tr>\r\n \t \t");
out.write("<td colspan=\"4\"> ");
out.write("<input type=\"hidden\" name=\"OrganOf\" value=");
out.print( session.getAttribute("OrganID") );
out.write(" /> ");
out.write("</td>\r\n \t ");
out.write("</tr>\r\n \t");
out.write("<tr>\r\n \t\t");
out.write("<td width=\"30%\" align=\"right\">戶 號:");
out.write("</td>\r\n \t\t");
out.write("<td width=\"20%\">\r\n \t\t\t\r\n \t\t\t");
out.write("<select name=\"userId\" id=\"userId\" class=\"text1\">\r\n \t\t\t\t");
out.write("<option value=\"all\">全部用戶");
out.write("</option>\r\n \t\t\t\t");
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(pageContext);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setItems(list );
_jspx_th_c_forEach_0.setVar("user");
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n \t\t\t\t\t");
out.write("<option value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.userId }", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.userId }", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("</option>\r\n \t\t\t\t");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = pageContext.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
out.write("\r\n \t\t\t");
out.write("</select>\r\n \t\t");
out.write("</td>\r\n \t\t");
out.write("<td align=\"right\" width=\"10%\">查詢類型:");
out.write("</td>\r\n \t\t");
out.write("<td>\r\n \t\t\t");
out.write("<select name=\"type\" id=\"type\" class=\"text1\">\r\n \t\t\t\t");
out.write("<option value=\"1\" selected=\"selected\">電量");
out.write("</option>\r\n \t\t\t\t");
out.write("<option value=\"2\">價格");
out.write("</option>\r\n \t\t\t");
out.write("</select>\r\n \t\t");
out.write("</td>\r\n \t");
out.write("</tr>\r\n \t");
out.write("<tr>\r\n \t\t");
out.write("<td align=\"right\">起始日期:");
out.write("</td>\r\n \t\t");
out.write("<td>\r\n \t\t");
out.write("<input name=\"startDate\" id=\"startDate\" size=\"10\" maxlength=\"10\" type=\"text\" value=\"");
out.print(today );
out.write("\" onmousedown=\"javascript:setday(form1.startDate);\" readonly=\"readonly\">\r\n \t\t");
out.write("</td>\r\n \t\t");
out.write("<td align=\"right\">結(jié)束日期:");
out.write("</td>\r\n \t\t");
out.write("<td>\r\n \t\t");
out.write("<input name=\"endDate\" id=\"endDate\" size=\"10\" maxlength=\"10\" type=\"text\" value=\"");
out.print(today );
out.write("\" onmousedown=\"javascript:setday(form1.endDate);\" readonly=\"readonly\">\r\n \t\t");
out.write("</td>\r\n \t");
out.write("</tr>\r\n \t \t ");
out.write("<tr>\r\n \t \t");
out.write("<td colspan=\"4\"> ");
out.write("</td>\r\n \t ");
out.write("</tr>\r\n \t");
out.write("<tr>\r\n \t\t");
out.write("<td colspan=\"4\" align=\"center\">\r\n\t\t ");
out.write("<input type=\"submit\" name=\"Submit\" value=\"餅圖顯示\" onclick=\"piepie()\" class=\"anniu\"/>\r\n\t\t ");
out.write("<input type=\"submit\" name=\"Submit\" value=\"柱狀圖顯示\" onclick=\"barbar()\" class=\"anniu\"/>\r\n\t\t ");
out.write("<input type=\"submit\" name=\"Submit\" value=\"趨勢圖顯示\" onclick=\"tabletable()\" class=\"anniu\"/>\r\n\t\t ");
out.write("<input type=\"submit\" name=\"Submit\" value=\"往年同期對比\" onclick=\"duibi()\" class=\"anniu\"/>\r\n\t\t \r\n\t\t ");
out.write("</td>\r\n \t");
out.write("</tr>\r\n ");
out.write("</table>\r\n ");
out.write("</form>\r\n \r\n ");
if (_jspx_meth_c_if_0(pageContext))
return;
out.write("\r\n ");
out.write("</body>\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
private boolean _jspx_meth_c_if_0(PageContext pageContext)
throws Throwable {
JspWriter out = pageContext.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(pageContext);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.graphURL!=null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n \t");
out.write("<table>\r\n\t ");
out.write("<tr>\r\n\t\t");
out.write("<td>");
out.write("<img src=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.graphURL }", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" width=500 height=300 border=0 >");
out.write("</td>\t\r\n\t ");
out.write("</tr>\r\n\t");
out.write("</table>\r\n\t");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -