📄 supplyinfolist_jsp.java
字号:
package org.apache.jsp.imis_005fmate;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Hashtable;
import java.util.ArrayList;
import java.util.Iterator;
public final class SupplyInfoList_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
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");
imis_mate.common.SupplyTree SupplyTree = null;
synchronized (pageContext) {
SupplyTree = (imis_mate.common.SupplyTree) pageContext.getAttribute("SupplyTree", PageContext.PAGE_SCOPE);
if (SupplyTree == null){
try {
SupplyTree = (imis_mate.common.SupplyTree) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "imis_mate.common.SupplyTree");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "imis_mate.common.SupplyTree", exc);
}
pageContext.setAttribute("SupplyTree", SupplyTree, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n ");
out.write("<title>菜单列表");
out.write("</title> \r\n ");
out.write("<link href=\"css/TreeCom.css\" rel=\"stylesheet\" type=\"text/css\"> \r\n ");
out.write("<script src=\"js/TreeCom.js\" type=\"text/javascript\">");
out.write("</script> \r\n");
out.write("</head>\r\n");
out.write("<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling=\"auto\" background=\"images/bg_main.png\" >\r\n");
out.write("<form name=FormOrganList onsubmit=\"0\" width=0>\r\n");
int i=0;
String sValue=null;
String sOrganID=null;
String sSupOrganID=null;
String sOrganName=null;
ArrayList list = SupplyTree.getSupplyNo();
Iterator itr = list.iterator();
while (itr.hasNext()) {
Hashtable ht = (Hashtable) itr.next();
sOrganID = ht.get("OrganID").toString();
sSupOrganID = ht.get("SupOrganID").toString();
sOrganName = ht.get("OrganName").toString();
sValue = sOrganID+"|"+sSupOrganID+"|"+sOrganName;
out.write("\r\n \t\t");
out.write("<input type=\"hidden\" name=\"");
out.print(i);
out.write("\" value=");
out.print(sValue);
out.write("> \r\n");
i=i+1;
}
out.write("\r\n\t\t");
out.write("<input type=\"hidden\" name=\"ilength\" value=");
out.print(i);
out.write("> \r\n");
out.write("</form>\r\n");
out.write("<table id=control border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"navbar\" align=\"center\" onLoad=\"initialize();\">\r\n");
out.write("<div align=\"justify\">\r\n\t");
out.write("<table border=0 class=\"navbar\" align=\"left\" >\r\n \t\t");
out.write("<tr>\r\n \t\t\t");
out.write("<td align=\"left\" valign=\"top\" rowspan=\"8\">\r\n \t\t\t");
out.write("<script language=\"javascript\">\r\n\t \t\t\tiNum=document.FormOrganList.ilength.value;\t \t\t\t\r\n\t\t\t\tfor (pos=0;pos");
out.write("<iNum;pos++){\r\n\t\t\t\t sHref=\"SupplyInfo_Operate.jsp?TAction=mod&\";\r\n\t\t\t\t\tsName=pos.toString();\t\t\t\r\n\t\t\t\t sValue=document.all(sName).value;\r\n\t\t\t\t\tSplitValue=sValue.split(\"|\");\r\n\t\t\t\t\tif ((SplitValue[0].length != 0)) {\r\n\t\t\t\t\t\tsHref=sHref+\"tsupplyNo=\";\r\n\t\t\t\t\t\tSplitValue1=SplitValue[0].split(\"*\");\r\n\t\t\t\t\t\tsHref=sHref+SplitValue1[1];\r\n\t\t\t\t\t\tsHref=sHref+\"&\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tsHref=sHref+\"tsupplyNo=\";\r\n\t\t\t\t\t\tsHref=sHref+\"\";\r\n\t\t\t\t\t\tsHref=sHref+\"&\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sHref.substr(sHref.length-1,1)=='&')sHref = sHref.substr(0,sHref.length-1);\t\t\t\t\t\t\t\r\n\t\t\t\t\t // 0 id 1 父id 2 名称 3 关闭图标 4 打开图标 5 地址 6 指向窗口\t\t\t\t\t\t\r\n\t\t\t\t\tif(SplitValue[1]==0) {\r\n\t\t\t\t\t\tadd_item(SplitValue[0],SplitValue[1],SplitValue[2],\"images/close.gif\",\"images/open.gif\",\"SupplyInfo_Operate.jsp?TAction=add&tsupplyNo=0\",\"iframe_SupplyInfo_Info\");\r\n\t\t\t\t\t} else {\t\t\t\t\t\r\n\t\t\t\t\tadd_item(SplitValue[0],SplitValue[1],SplitValue[2],\"images/close.gif\",\"images/open.gif\",(sHref),\"iframe_SupplyInfo_Info\");\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tsName=null;}\r\n");
out.write("\t\t\t\t}\r\n\t\t\t\tdocument.write(menu(0));\r\n\t\t\t");
out.write("</script>\r\n \t\t\t");
out.write("</td>\r\n \t\t");
out.write("</tr>\r\n\t");
out.write("</table>\r\n");
out.write("</div>\r\n");
out.write("</table>\r\n\r\n\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);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -