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

📄 suppliertype_005flist_jsp.java

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

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

public final class supplierType_005flist_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(6);
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
    _jspx_dependants.add("/WEB-INF/struts-bean.tld");
    _jspx_dependants.add("/WEB-INF/Page.tld");
    _jspx_dependants.add("/supplierType/../include/include.inc");
    _jspx_dependants.add("/supplierType/../include/show_message.jsp");
    _jspx_dependants.add("/supplierType/../include/PageMan.inc");
  }

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

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

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

  public void _jspDestroy() {
    _jspx_tagPool_myTag_place_name.release();
    _jspx_tagPool_myTag_command_roleCode_resourceCode_name_formName_nobody.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=GB18030\">\r\n");
      out.write("<META name=\"GENERATOR\" content=\"IBM WebSphere Studio\">\r\n");
      out.write("<META http-equiv=\"Content-Style-Type\" content=\"text/css\">\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>supplierType_list.jsp</TITLE>\r\n");
      out.write("</HEAD>\r\n");
      out.write(" \r\n");
      out.write("<script language=javascript>\r\n");
      out.write("\tfunction add(){\r\n");
      out.write("\t\tlocation.href = 'supplierType_add.jsp';\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction edit(){\r\n");
      out.write("\t\tupdate(document.supplierTypeForm,'supplierType');\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction remove(){\r\n");
      out.write("\t\tdel(document.supplierTypeForm);\r\n");
      out.write("\t} \r\n");
      out.write("\t\r\n");
      out.write("</script>\r\n");
      out.write("<BODY>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

	User loginUserInfo ;  
	String SESSION_ROLE_ID = "";
	String SESSION_USER_ID = "";
	
	if(request.getSession().getAttribute("LOGIN_USER")!=null){
		loginUserInfo = (User)request.getSession().getAttribute("LOGIN_USER");
		SESSION_ROLE_ID = loginUserInfo.getRoleId();
		SESSION_USER_ID = loginUserInfo.getUserId(); 
	}else{
		out.println("<script language=javascript>self.parent.location.href='/jxcWeb/login.jsp';</script>");
	}
	
	if(session.getAttribute("PAGE_MANAGE")!=null){
		PageUrlManage pManage = (PageUrlManage)session.getAttribute("PAGE_MANAGE");
		out.println("<script language=javascript>openNewWindow('"+request.getContextPath()+pManage.getMessagePageUrl()+"');</script>");
	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      //  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>供应商类别管理<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');
          out.write('	');
          //  myTag:command
          com.web.tag.Command _jspx_th_myTag_command_0 = (com.web.tag.Command) _jspx_tagPool_myTag_command_roleCode_resourceCode_name_formName_nobody.get(com.web.tag.Command.class);
          _jspx_th_myTag_command_0.setPageContext(_jspx_page_context);
          _jspx_th_myTag_command_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_myTag_place_0);
          _jspx_th_myTag_command_0.setName("supplierType");
          _jspx_th_myTag_command_0.setFormName("supplierTypeForm");
          _jspx_th_myTag_command_0.setRoleCode(SESSION_ROLE_ID);
          _jspx_th_myTag_command_0.setResourceCode(ResourceIdManage.getClientTypeResId());
          int _jspx_eval_myTag_command_0 = _jspx_th_myTag_command_0.doStartTag();
          if (_jspx_th_myTag_command_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
            return;
          _jspx_tagPool_myTag_command_roleCode_resourceCode_name_formName_nobody.reuse(_jspx_th_myTag_command_0);
          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;
      _jspx_tagPool_myTag_place_name.reuse(_jspx_th_myTag_place_0);
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<form method=\"post\" action=\"../SupplierTypeServlet\" name=\"supplierTypeForm\"><input\r\n");
      out.write("\ttype=hidden name=\"actionType\" value=\"del\">\r\n");
      out.write("<TABLE class=\"table-min01\" align=\"center\" id=\"infoSource\" width=100%\r\n");
      out.write("\tborder=0 cellpadding=0 cellspacing=0>\r\n");
      out.write("\t<TR>\r\n");
      out.write("\t\t<TD width=\"6%\" class=\"min-td01\">操作</TD>\r\n");
      out.write("\t\t<TD class=\"min-td01\">名称</TD>\r\n");
      out.write("\t</TR>\r\n");
      out.write("\t");
								
	SupplierTypeSearchHelper sHelp=new SupplierTypeSearchHelper();	
	Page PAGE = sHelp.getPage(request);	
	List list = PAGE.getItems(); 	
	Iterator it = list.listIterator();
	Item item = null;							
	while(it.hasNext()){
		item=(Item)it.next();						       

      out.write("\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td class=\"min-td02\"><input type=checkbox name=f_ID\r\n");
      out.write("\t\t\tvalue=\"");
      out.print(WebTools.showEx(item.getAttributeByName("id")));
      out.write("\"></td>\r\n");
      out.write("\t\t<TD class=\"min-td02\">");
      out.print(WebTools.showEx(item.getAttributeByName("name")));
      out.write("&nbsp;</TD>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t");
}
      out.write("\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("</form>\r\n");
      out.write("<table width=100% border=0 align=center cellspacing=0 cellpadding=0>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td align=right class=\"table-min02\" colSpan=7>");
      out.write("<table border=0 width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("<tr>\r\n");

session.setAttribute("PAGEPOSITION",request.getServletPath());
if(PAGE.getMaxPage()>1)
{
	Random random=new Random();
	int ID=Math.abs(random.nextInt());
	String formName="Form" + ID;

      out.write("\r\n");
      out.write("<form name=\"");
      out.print(formName);
      out.write("\">\r\n");
      out.write("<td align=right height=25>\r\n");

int currentPage;

String func_id_tem="99";

if(request.getParameter("func_id")!=null)
{
func_id_tem=request.getParameter("func_id");
}

if(request.getParameter("jumpPage")==null){
	currentPage=(int)PAGE.getPageNum();
}else{
	try{
		currentPage=Integer.parseInt(request.getParameter("jumpPage"));
	}catch(Exception ex){
		currentPage=1;
	}
}


      out.write("\r\n");
      out.write("µÚ");
      out.print(currentPage);
      out.write("Ò³/¹²");
      out.print(PAGE.getMaxPage());
      out.write("Ò³\r\n");

if(currentPage==1){
	out.print(" Ê×Ò³ ÉÏÒ»Ò³");
	}else{

      out.write("   \r\n");
      out.write("<A HREF=\"javascript:gotoPage(1)\">Ê×Ò³</A>\r\n");
      out.write("<A HREF=\"javascript:gotoPage(");
      out.print(currentPage-1);
      out.write(")\">ÉÏÒ»Ò³</A>\r\n");

	}

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

if(currentPage==PAGE.getMaxPage()){ 
	out.print("ÏÂÒ»Ò³ βҳ");
	}else{

      out.write("   \r\n");
      out.write("<A HREF=\"javascript:gotoPage(");
      out.print(currentPage+1);
      out.write(")\">ÏÂÒ»Ò³</A>\r\n");
      out.write("<A HREF=\"javascript:gotoPage(");
      out.print(PAGE.getMaxPage());
      out.write(")\">βҳ</A>\r\n");

	}

      out.write("\r\n");
      out.write("\r\n");
      out.write("תµ½µÚ<SELECT name=\"jumpPage\" onchange=\"Jumping()\">\r\n");
      out.write("     ");
 for(int i=1;i<=PAGE.getMaxPage();i++)  {
     if (i== currentPage){
     
      out.write("\r\n");
      out.write("     <OPTION selected value=");
      out.print(i);
      out.write('>');
      out.print(i);
      out.write("</OPTION>\r\n");
      out.write("     ");
}else{
      out.write("\r\n");
      out.write("     <OPTION value=");
      out.print(i);
      out.write('>');
      out.print(i);
      out.write("</OPTION>\r\n");
      out.write("     ");
}}
      out.write("   \r\n");
      out.write("     </SELECT>Ò³\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("function Jumping(){\r\n");
      out.write("  //document.");
      out.print(formName);
      out.write(".submit();\r\n");
      out.write("   var func_id_m=\"");
      out.print(func_id_tem);
      out.write("\";\r\n");
      out.write("  document.location.href=\"");
      out.print(request.getContextPath());
      out.print(request.getServletPath());
      out.write("?jumpPage=\" + ");
      out.print(formName);
      out.write(".jumpPage.options[");
      out.print(formName);
      out.write(".jumpPage.selectedIndex].value+\"&func_id=\"+func_id_m;\r\n");
      out.write("  return ;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function gotoPage(pagenum){\r\n");
      out.write("  document.");
      out.print(formName);
      out.write(".jumpPage.value = pagenum;\r\n");
      out.write("  //document.");
      out.print(formName);
      out.write(".submit();\r\n");
      out.write("  var func_id_t=\"");
      out.print(func_id_tem);
      out.write("\";\r\n");
      out.write("  document.location.href=\"");
      out.print(request.getContextPath());
      out.print(request.getServletPath());
      out.write("?jumpPage=\" + pagenum+\"&func_id=\"+func_id_t;\r\n");
      out.write("  return ;\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");

}

      out.write("\r\n");
      out.write("</td>\r\n");
      out.write("</form>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>");
      out.write("\r\n");
      out.write("\t\t</TD>\r\n");
      out.write("\t</TR>\r\n");
      out.write("</TABLE>\r\n");
      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 (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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