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

📄 main_jsp.java

📁 企业进销存源码
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.business.*;
import com.common.util.*;
import com.common.resource.*;
import java.util.*;
import com.web.util.*;

public final class main_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(4);
    _jspx_dependants.add("/WEB-INF/struts-bean.tld");
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
    _jspx_dependants.add("/WEB-INF/Page.tld");
    _jspx_dependants.add("/include/include.inc");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_myTag_place_name;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_myTag_place_name = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_myTag_place_name.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;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GB2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      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("\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("<META http-equiv=\"Content-Type\" content=\"text/html; charset=GB2312\">\r\n");
      out.write("<META name=\"GENERATOR\" content=\"IBM WebSphere Studio\">\r\n");
      out.write("<LINK href=\"");
      out.print(request.getContextPath());
      out.write("/style/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<script language=javascript src=\"");
      out.print(request.getContextPath());
      out.write("/js/layer.js\"></script>\r\n");
      out.write("<script language=javascript src=\"");
      out.print(request.getContextPath());
      out.write("/js/style.js\"></script>\r\n");
      out.write("<script language=javascript src=\"");
      out.print(request.getContextPath());
      out.write("/js/univerify.js\"></script>\r\n");
      out.write("<script language=javascript src=\"");
      out.print(request.getContextPath());
      out.write("/js/manage.js\"></script>\r\n");
      out.write("<script language=javascript src=\"");
      out.print(request.getContextPath());
      out.write("/js/DateInput.js\"></script>\r\n");
      out.write("\r\n");
      out.write("<title></title>\r\n");
      out.write("<base target=\"_self\">\r\n");
      out.write("</head>\r\n");
      out.write("<div align=center>\r\n");
      out.write("<body>\r\n");
      if (_jspx_meth_myTag_place_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("<TABLE class=table-top03 cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
      out.write("\t<TBODY>\r\n");
      out.write("\t\t<TR>\r\n");
      out.write("\t\t\t<TD>\r\n");
      out.write("\t\t\t<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
      out.write("\t\t\t\t<TBODY>\r\n");
      out.write("\t\t\t\t\t<TR>\r\n");
      out.write("\t\t\t\t\t\t<TD width=\"3%\"></TD>\r\n");
      out.write("\t\t\t\t\t\t<TD width=\"90%\">最新库存信息</TD>\r\n");
      out.write("\t\t\t\t\t\t<TD align=right width=\"7%\">\r\n");
      out.write("\t\t\t\t\t\t\t<IMG class=img01 onmouseover=\"this.style.cursor = 'hand';\"onclick=showdetailMin(this,searchTable1) height=12 src=\"images/title_minimize.gif\" width=12>&nbsp; \r\n");
      out.write("\t\t\t\t\t\t\t<IMG class=img01 onmouseover=\"this.style.cursor = 'hand';\"onclick=showdetailMax(this,searchTable1) height=12\tsrc=\"images/title_maximize.gif\" width=12>&nbsp;\r\n");
      out.write("\t\t\t\t\t\t</TD>\r\n");
      out.write("\t\t\t\t\t</TR>\r\n");
      out.write("\t\t\t\t</TBODY>\r\n");
      out.write("\t\t\t</TABLE>\r\n");
      out.write("\t\t\t</TD>\r\n");
      out.write("\t\t</TR>\r\n");
      out.write("\t</TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("<TABLE class=\"table-min01\" align=\"center\" width=100%\tborder=0 cellpadding=0 cellspacing=0 id=searchTable1>\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t\t<TD class=\"min-td01\">货品名称</TD>\r\n");
      out.write("\t\t<TD class=\"min-td01\">货品类型</TD>\r\n");
      out.write("\t\t<TD class=\"min-td01\">库存数量</TD>\r\n");
      out.write("\t</TR>\r\n");
								
	GoodsTypeBusiness bs = new GoodsTypeBusiness();
	KuCunBusiness cs = new KuCunBusiness();	
	List list = cs.select();	
	for(int i=0;i<9;i++){
		if(i<list.size()){
			HashMap map = (HashMap)list.get(i);					       

      out.write("\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<TD class=\"min-td02\">");
      out.print(WebTools.showEx(map.get("NAME")));
      out.write("&nbsp;</TD>\r\n");
      out.write("\t\t<TD class=\"min-td02\">");
      out.print(bs.getNameById(WebTools.showEx(map.get("TYPE"))));
      out.write("&nbsp;</TD>\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t<TD class=\"min-td02\">");
      out.print(WebTools.showEx(map.get("NUM")));
      out.write("&nbsp;</TD>\r\n");
      out.write("\t</tr>\r\n");
}else{
      out.write("\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<TD class=\"min-td02\">&nbsp;</TD>\r\n");
      out.write("\t\t<TD class=\"min-td02\">&nbsp;</TD>\r\n");
      out.write("\t\t<TD class=\"min-td02\">&nbsp;</TD>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\r\n");
}}
      out.write("\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("<TABLE class=table-top03 cellSpacing=0 cellPadding=0 width=\"100%\" align=center border=0>\r\n");
      out.write("\t<TBODY>\r\n");
      out.write("\t\t<TR>\r\n");
      out.write("\t\t\t<TD>\r\n");
      out.write("\t\t\t<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n");
      out.write("\t\t\t\t<TBODY>\r\n");
      out.write("\t\t\t\t\t<TR>\r\n");
      out.write("\t\t\t\t\t\t<TD width=\"3%\"></TD>\r\n");
      out.write("\t\t\t\t\t\t<TD width=\"90%\">最新货品信息</TD>\r\n");
      out.write("\t\t\t\t\t\t<TD align=right width=\"7%\">\r\n");
      out.write("\t\t\t\t\t\t\t<IMG class=img01 onmouseover=\"this.style.cursor = 'hand';\"onclick=showdetailMin(this,searchTable2) height=12 src=\"images/title_minimize.gif\" width=12>&nbsp; \r\n");
      out.write("\t\t\t\t\t\t\t<IMG class=img01 onmouseover=\"this.style.cursor = 'hand';\"onclick=showdetailMax(this,searchTable2) height=12\tsrc=\"images/title_maximize.gif\" width=12>&nbsp;\r\n");
      out.write("\t\t\t\t\t\t</TD>\r\n");
      out.write("\t\t\t\t\t</TR>\r\n");
      out.write("\t\t\t\t</TBODY>\r\n");
      out.write("\t\t\t</TABLE>\r\n");
      out.write("\t\t\t</TD>\r\n");
      out.write("\t\t</TR>\r\n");
      out.write("\t</TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("<TABLE class=\"table-min01\" align=\"center\" width=100%\tborder=0 cellpadding=0 cellspacing=0 id=searchTable2>\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t\t<TD class=\"min-td01\">名称</TD>\r\n");
      out.write("\t\t<TD class=\"min-td01\">类型</TD>\r\n");
      out.write("\t\t\r\n");
      out.write("\t</TR>\r\n");
								
	GoodsTypeBusiness goodsTypeBusiness = new GoodsTypeBusiness();
	GoodsBusiness goodsBusiness = new GoodsBusiness();	
	list = goodsBusiness.select();	
	for(int i=0;i<9;i++){
		if(i<list.size()){
			HashMap map = (HashMap)list.get(i);					       

      out.write("\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<TD class=\"min-td02\">");
      out.print(WebTools.showEx(map.get("NAME")));
      out.write("&nbsp;</TD>\r\n");
      out.write("\t\t<TD class=\"min-td02\">");
      out.print(goodsTypeBusiness.getNameById(WebTools.showEx(map.get("TYPE"))));
      out.write("&nbsp;</TD>\r\n");
      out.write("\t</tr>\r\n");
}else{
      out.write("\t\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<TD class=\"min-td02\">&nbsp;</TD>\r\n");
      out.write("\t\t<TD class=\"min-td02\">&nbsp;</TD>\r\n");
      out.write("\t</tr>\r\n");
}}
      out.write("\r\n");
      out.write("</TABLE>\r\n");
      out.write("</body>\r\n");
      out.write("</div>\r\n");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_myTag_place_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  myTag:place
    com.web.tag.Place _jspx_th_myTag_place_0 = (com.web.tag.Place) _jspx_tagPool_myTag_place_name.get(com.web.tag.Place.class);
    _jspx_th_myTag_place_0.setPageContext(_jspx_page_context);
    _jspx_th_myTag_place_0.setParent(null);
    _jspx_th_myTag_place_0.setName("<b>首页</b>");
    int _jspx_eval_myTag_place_0 = _jspx_th_myTag_place_0.doStartTag();
    if (_jspx_eval_myTag_place_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write('\r');
        out.write('\n');
        int evalDoAfterBody = _jspx_th_myTag_place_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_myTag_place_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_myTag_place_name.reuse(_jspx_th_myTag_place_0);
    return false;
  }
}

⌨️ 快捷键说明

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