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

📄 mate_005fjfree_jsp.java

📁 JSP移动商品管理平台源代码.........
💻 JAVA
字号:
package org.apache.jsp.imis_005fmate;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import common.*;
import imis_mate.common.*;
import imis_mate.DAO.*;
import imis_mate.bean.*;
import java.text.SimpleDateFormat;

public final class mate_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,
      			"error.jsp", 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");

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

      out.write("\r\n");

	MaterialTypeDAO mate = (MaterialTypeDAO) DAOFactory.getInstance().getMaterialTypeDAO();
	ArrayList list = mate.searchMaterialType(new MaterialTypeBean());	
 
      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 'mate_JFree.jsp' starting page");
      out.write("</title>\r\n    ");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/checkdata.js\">");
      out.write("</script>\r\n    ");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_mate/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");
Date date = new Date();
	SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
	String today = format.format(date);	 
      out.write("\r\n  ");
      out.write("</head>\r\n  \t");
      out.write("<script type=\"text/javascript\">\r\n\t\tfunction piepie(){\r\n\t\tif(checkTwoDate()){\r\n");
      out.write("\r\n\t\t\t\tform1.action = \"/Imis/servlet/Mate_JFreeChartServlet?pattern=jfreePag&&displayType=pie\"}\r\n\t\t}\r\n\t\tfunction barbar(){\r\n\t\tif(checkTwoDate()){\r\n");
      out.write("\r\n\t\t\t\tform1.action = \"/Imis/servlet/Mate_JFreeChartServlet?pattern=jfreePag&&displayType=bar\"}\r\n\t\t} \r\n\t\tfunction tabletable(){\r\n\t\tif(checkTwoDate()){\r\n");
      out.write("\r\n\t\t\t\tform1.action = \"/Imis/servlet/Mate_JFreeChartServlet?pattern=jfreePag&&displayType=line\"}\r\n\t\t}  \r\n\r\n        \tfunction checkTwoDate() { \r\n        \t\t\t\tvar startDate = document.form1.startDate.value;\r\n        \t\t\t\tvar endDate = document.form1.endDate.value;\r\n\t\t\t\t\t\t\t \tif( startDate > endDate ) { \r\n                                alert(\"起始日期不能大于终止日期!\"); \r\n                                return false; \r\n                               } \r\n                                return true; \r\n                               } \r\n                               \r\n         function buyJfreePag() {\r\n\t\t\t//采购统计\r\n\t\t\t\tform2.action = \"/Imis/servlet/Mate_JFreeChartServlet?pattern=buyJfreePag\"\r\n\t\t\t}\r\n\t\tfunction outJfreePag() {\r\n\t\t\t//领用统计 \r\n\t\t\t\tform2.action = \"/Imis/servlet/Mate_JFreeChartServlet?pattern=outJfreePag\";\t\r\n\t\t\t} \r\n   \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_mate/images/bg_main.png\">\r\n    \t");
      out.write("<form name=\"form2\" method=\"post\" action=\"\">\r\n\t\t  ");
      out.write("<table width=\"100%\"  border=\"0\">\r\n\t\t  \t");
      out.write("<tr>\r\n\t\t\t\t");
      out.write("<td height=\"20\" valign=\"left\" align=\"left\" colspan=\"4\"  background=\"/Imis/imis_mate/images/bg_main2.png\" class=\"tubiao\">");
      out.write("<font color=\"black\">采购信息统计");
      out.write("</font>");
      out.write("</td>\r\n   \t   \t\t");
      out.write("</tr>\r\n            ");
      out.write("<tr>\r\n              ");
      out.write("<td width=\"12%\">");
      out.write("<input type=\"submit\" name=\"Submit3\" value=\"采 购 统 计\" onclick=\"buyJfreePag()\" class=\"anniu\"/>");
      out.write("</td>\r\n              ");
      out.write("<td width=\"88%\">");
      out.write("<input type=\"submit\" name=\"Submit2\" value=\"领 用 统 计\" onclick=\"outJfreePag()\" class=\"anniu\"/>");
      out.write("</td>\r\n");
      out.write("\r\n            ");
      out.write("</tr>\r\n          ");
      out.write("</table>\r\n            ");
      out.write("</form>\r\n\t");
      out.write("<form name=\"form1\" action=\"\" method=\"post\">\r\n\t");
      out.write("<table class=\"ziti\" width=\"100%\">\r\n\r\n    \t");
      out.write("<tr>\r\n    \t\t");
      out.write("<td width=\"26%\" align=\"right\">物品类型:");
      out.write("</td>\r\n    \t\t");
      out.write("<td width=\"27%\">\r\n    \t\t\t\r\n    \t\t\t");
      out.write("<select name=\"materialTypeNo\" 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("mateType");
      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("${mateType.materialTypeNo}", java.lang.String.class, (PageContext)pageContext, null, false));
            out.write("\">");
            out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${mateType.materialTypeName}", 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 width=\"17%\">");
      out.write("</td>\r\n    \t\t");
      out.write("<td width=\"30%\">");
      out.write("</td>\r\n    \t");
      out.write("</tr>\r\n    \t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">\r\n\t\t\t\t\t\t起始时间:\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>\r\n\t\t\t\t\t\t");
      out.write("<input name=\"startDate\" id=\"startDate\" size=\"10\" maxlength=\"10\"\r\n\t\t\t\t\t\t\ttype=\"text\" class=\"text1\" readonly=\"readonly\"\r\n\t\t\t\t\t\t\tonMouseDown=\"javascript:setday(form1.startDate);\" value=\"");
      out.print(today);
      out.write("\"/>\r\n\r\n\t\t\t\t\t\t");
      out.write("\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">\r\n\t\t\t\t\t\t截止时间:\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>\r\n\t\t\t\t\t\t");
      out.write("<input name=\"endDate\" id=\"endDate\" size=\"10\" maxlength=\"10\"\r\n\t\t\t\t\t\t\ttype=\"text\" class=\"text1\" readonly=\"readonly\"\r\n\t\t\t\t\t\t\tonMouseDown=\"javascript:setday(form1.endDate);\" value=\"");
      out.print(today);
      out.write("\"/>\r\n\t\t\t\t\t\t");
      out.write("\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n    \t");
      out.write("<tr>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n    \t\t");
      out.write("<td align=\"right\">查询类型:");
      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\">数量");
      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>");
      out.write("</td>\r\n    \t\t");
      out.write("<td colspan=\"3\">\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     \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>\r\n");
    } 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
        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;
  }
}

⌨️ 快捷键说明

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