📄 kmfunction_005fdistribute_jsp.java
字号:
package org.apache.jsp.pages.LeftMenu.kmfunction;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import cn.aresoft.po.KmTree;
import cn.aresoft.po.KmFunctionDist;
public final class kmfunction_005fdistribute_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object 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;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=GBK");
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("\r\n");
out.write("\r\n");
String cpath=request.getContextPath();
out.write("\r\n");
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"> \r\n");
out.write("<html style=\"overflow-x:hidden\">\r\n");
out.write(" <head>\r\n");
out.write(" <title>知识库权限分配</title>\r\n");
out.write(" </head>\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/layout.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/mian.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/css_common1.css\" rel=\"stylesheet\" type=\"text/css\" /> \r\n");
out.write("\t\t<script type=\"text/javascript\" src=\"");
out.print(cpath);
out.write("/js/functiontree.js\"></script>\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/jquery126.js\"></script>\r\n");
out.write("\t\t<link rel=\"StyleSheet\" href=\"");
out.print(cpath);
out.write("/style/tree.css\" type=\"text/css\">\r\n");
out.write(" <style>\r\n");
out.write(" span{float:left; width:25%; display:block; height:22px;}\r\n");
out.write(" </style>\r\n");
out.write(" \r\n");
out.write("\t\t\t\t\t \r\n");
out.write("<script language=\"javascript\">\r\n");
out.write("\tvar Tree = new Array; \t\r\n");
out.write("\tfunction set(){\r\n");
out.write("\t\t");
List mylist=(List)request.getAttribute("kmlist");
if(mylist!=null&&mylist.size()>0){
for(int i=0;i<mylist.size();i++){
KmTree kt=(KmTree)mylist.get(i);
out.write("\r\n");
out.write("\t\t\tTree[");
out.print(i);
out.write(']');
out.write('=');
out.write('"');
out.print(kt.getTreeId());
out.write('|');
out.print(kt.getParentId());
out.write('|');
out.print(kt.getName());
out.write("|javascript:checkedthis('");
out.print(kt.getTreeId());
out.write("');checkItem(document.getElementById('");
out.print(kt.getTreeId());
out.write("'),'");
out.print(kt.getTreeId());
out.write("')\";\r\n");
out.write("\t\t");
}
}
out.write("\r\n");
out.write("\r\n");
out.write("\t}\r\n");
out.write("\t\r\n");
out.write("\tfunction checkedFunction(){\r\n");
out.write("\t\tvar funcId = new Array;\r\n");
out.write("\t\tvar browse = new Array;\r\n");
out.write("\t\tvar maintain = new Array;\r\n");
out.write("\t\tvar countTree = 0;\r\n");
out.write("\t\tvar countBrowse = 0;\r\n");
out.write("\t\tvar countMaintain = 0;\r\n");
out.write("\t\tif(parent.frames[\"destList\"].getCurrentDestName()!=\"\"){\r\n");
out.write(" \t\t\t document.getElementById(\"selTitle\").innerHTML=parent.frames[\"destList\"].getCurrentDestTypeName()+\r\n");
out.write(" \t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\":\"+parent.frames[\"destList\"].getCurrentDestName();\r\n");
out.write("\t\t\t document.getElementById(\"dist\").value = parent.frames[\"destList\"].getCurrentDest();\r\n");
out.write(" \t\t\t document.getElementById(\"distType\").value = parent.frames[\"destList\"].getCurrentDestType();\r\n");
out.write(" \t\t}\r\n");
out.write("\t\t");
List list = (List)request.getAttribute("functionlist");
if(list!= null && list.size()>0){
for(int i = 0 ; i<list.size();i++){
KmFunctionDist fun = (KmFunctionDist)list.get(i);
out.write("\r\n");
out.write("\t\t\t\t\tfuncId[countTree++] = ");
out.print(fun.getId().getTreeId());
out.write(";\r\n");
out.write("\t\t\t\t\tbrowse[countBrowse++] = ");
out.print(fun.getId().getIsBrowser());
out.write(";\r\n");
out.write("\t\t\t\t\tmaintain[countMaintain++] = ");
out.print(fun.getId().getIsMaintain());
out.write(";\r\n");
out.write("\t\t\t\t\t\r\n");
out.write("\t\t");
}
}
out.write("\r\n");
out.write("\t\t//alert(\"加载时菜单权限 : \"+funcId);\r\n");
out.write("\t\tif(funcId!=null && funcId != \"\"){\r\n");
out.write("\t\t\tfor(var i = 0 ;i < document.form.treeId.length;i++){\r\n");
out.write("\t\t\t\tfor(var j = 0 ; j<funcId.length;j++){\r\n");
out.write("\t\t\t\t\tif(document.form.treeId[i].value == funcId[j]){\r\n");
out.write("\t\t\t\t\t\tdocument.form.treeId[i].checked = true;\r\n");
out.write("\t\t\t\t\t\tif(browse[j] == 1){\r\n");
out.write("\t\t\t\t\t\t\tdocument.form.treeIdll[i].checked = true;\r\n");
out.write("\t\t\t\t\t\t}\r\n");
out.write("\t\t\t\t\t\tif(maintain[j] == 1){\r\n");
out.write("\t\t\t\t\t\t\tdocument.form.treeIdwh[i].checked = true;\r\n");
out.write("\t\t\t\t\t\t}\r\n");
out.write("\t\t\t\t\t}\r\n");
out.write("\t\t\t\t}\r\n");
out.write("\t\t\t}\r\n");
out.write("\t\t}\r\n");
out.write("\t}\t\r\n");
out.write("\r\n");
out.write("\tvar http_request=null;\r\n");
out.write("\tfunction getHTTPRequest(){\r\n");
out.write("\t\tif(window.ActiveXObject){\r\n");
out.write("\t http_request = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
out.write("\t }\t\t\r\n");
out.write("\t}\t\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -