📄 deskdrag_jsp.java
字号:
package org.apache.jsp.pages.LeftMenu.desk;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.List;
import cn.aresoft.po.DeskFuncDist;
public final class deskdrag_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=UTF-8");
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");
out.write("\r\n");
String cpath = request.getContextPath();
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(" <title>拖拽页面</title>\r\n");
out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"");
out.print(cpath);
out.write("/js/ext2/resources/css/ext-all.css\" />\r\n");
out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"");
out.print(cpath);
out.write("/js/ext2/resources/css/portal.css\" />\r\n");
out.write("\t<script src=\"");
out.print(cpath);
out.write("/js/ext2/adapter/ext/ext-base.js\"></script>\r\n");
out.write("\t<script src=\"");
out.print(cpath);
out.write("/js/ext2/ext-all.js\"></script>\r\n");
out.write("\t<script src=\"");
out.print(cpath);
out.write("/js/ext2/Portal.js\"></script>\r\n");
out.write("\t<script src=\"");
out.print(cpath);
out.write("/js/ext2/PortalColumn.js\"></script>\r\n");
out.write("\t<script src=\"");
out.print(cpath);
out.write("/js/ext2/Portlet.js\"></script>\r\n");
out.write(" </head>\r\n");
out.write(" <script>\r\n");
out.write(" var viewPort=null;\r\n");
out.write("\r\n");
out.write(" Ext.onReady(function(){\r\n");
out.write(" \r\n");
out.write(" var tools = [{\r\n");
out.write(" id:'gear',\r\n");
out.write(" handler: function(){\r\n");
out.write(" Ext.Msg.alert('Message', 'The Settings tool was clicked.');\r\n");
out.write(" }\r\n");
out.write(" },{\r\n");
out.write(" id:'close',\r\n");
out.write(" handler: function(e, target, panel){\r\n");
out.write(" \tvar distId=panel.id;\r\n");
out.write(" \t/*\r\n");
out.write(" \tExt.Ajax.request({\r\n");
out.write(" \t\turl:'");
out.print(cpath);
out.write("/function/delDeskFuncDist.action',\r\n");
out.write(" \t\tparams:{distId:distId},\r\n");
out.write(" \t\tsuccess:function(res){\r\n");
out.write(" \t\t\tpanel.ownerCt.remove(panel, true);\r\n");
out.write(" \t\t}\r\n");
out.write(" \t});*/\r\n");
out.write(" }\r\n");
out.write(" }]; \r\n");
out.write(" \tviewPort=new Ext.Viewport({\r\n");
out.write(" \t\trenderTo:'vp',\r\n");
out.write(" \t\tlayout:'border',\r\n");
out.write(" \t\titems:[\r\n");
out.write(" \t\t\t{\r\n");
out.write(" \t\t\t\trenderTo:'vpm',\r\n");
out.write(" \t\t\t\tid:'mainCol',\r\n");
out.write(" \t\t\t\txtype:'portal',\r\n");
out.write(" \t\t\t\tregion:'center',\r\n");
out.write(" \t\t\t\titems:[\r\n");
out.write(" \t\t\t\t\t{//----------------------------------------------------------第一列\r\n");
out.write(" \t\t\t\t\t\tid:'col1',\r\n");
out.write(" \t\t\t\t\t\tcolumnWidth:.33,\r\n");
out.write(" \t\t\t\t\t\tstyle:'padding:10px 0 10px 10px'\r\n");
out.write(" \t\t\t\t\t},\r\n");
out.write(" \t\t\t\t\t{//----------------------------------------------------------第二列\r\n");
out.write(" \t\t\t\t\t\tid:'col2',\r\n");
out.write(" \t\t\t\t\t\tcolumnWidth:.33,\r\n");
out.write(" \t\t\t\t\t\tstyle:'padding:10px 0 10px 10px'\r\n");
out.write(" \t\t\t\t\t},\r\n");
out.write(" \t\t\t\t\t{//----------------------------------------------------------第三列\r\n");
out.write(" \t\t\t\t\t\tid:'col3',\r\n");
out.write(" \t\t\t\t\t\tcolumnWidth:.33,\r\n");
out.write(" \t\t\t\t\t\tstyle:'padding:10px 0 10px 10px'\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});\r\n");
out.write(" \t/*\r\n");
out.write(" \tviewPort.findById('col1').add({\r\n");
out.write(" \t\ttitle:'test444',\r\n");
out.write(" \t\tlayout:'fit',\r\n");
out.write(" \t\thtml:'mytest',\r\n");
out.write(" \t\ttools:tools\r\n");
out.write(" \t});\r\n");
out.write(" \tviewPort.findById('col1').doLayout();\r\n");
out.write(" \t*/\r\n");
out.write(" \tExt.Ajax.request({\r\n");
out.write(" \t\turl:'");
out.print(cpath);
out.write("/function/getDeskItems.action',\r\n");
out.write(" \t\tsuccess:function(res){\r\n");
out.write(" \t\t\tvar json=Ext.util.JSON.decode(res.responseText);\r\n");
out.write(" \t\t\t//console.log(json);\r\n");
out.write(" \t\t\tfor(i=0;i<json.length;i++){\r\n");
out.write(" \t\t\t\tvar dist=json[i];\r\n");
out.write("\t \t\t\tvar locRow=dist.locRow\r\n");
out.write("\t \t\t\tvar funcUrl=dist.sysFunctions.funcUrl;\r\n");
out.write("\t \t\t\tif(funcUrl!=null){\r\n");
out.write("\t \t\t\t\tif(funcUrl.indexOf(\"/\")==0){\r\n");
out.write("\t \t\t\t\t\tfuncUrl=\"");
out.print(cpath);
out.write("/\"+funcUrl;\r\n");
out.write("\t \t\t\t\t}\r\n");
out.write("\t \t\t\t}\r\n");
out.write("\t \t\t\tvar params=\"?\";\r\n");
out.write("\t \t\t\tfor(j=0;j<dist.paramDistList.length;j++){\r\n");
out.write("\t \t\t\t\tvar p=dist.paramDistList[j];\r\n");
out.write("\t \t\t\t\tif(p.paramKey!=null){\r\n");
out.write("\t \t\t\t\t\tparams+=p.paramKey+\"=\"+p.value+\"&\";\r\n");
out.write("\t \t\t\t\t}\r\n");
out.write("\t \t\t\t}\r\n");
out.write("\t \t\t\t//console.log(dist.distId);\r\n");
out.write("\t\t\t \tviewPort.findById('col'+locRow).add({\r\n");
out.write("\t\t\t \t\tid:dist.distId,\r\n");
out.write("\t\t\t \t\ttitle:dist.TTitle,\r\n");
out.write("\t\t\t \t\tlayout:'fit',\r\n");
out.write("\t\t\t \t\thtml:'<iframe src=\"'+funcUrl+params+'\" style=\"width:100%;height:100%\" frameborder=\"0\"></iframe>',\r\n");
out.write("\t\t\t \t\ttools:tools\r\n");
out.write("\t\t\t \t}); \t\r\n");
out.write("\t\t\t \tviewPort.findById('col'+locRow).doLayout();\t\t\r\n");
out.write("\t\t \t}\r\n");
out.write(" \t\t}\r\n");
out.write(" \t});\r\n");
out.write(" });\r\n");
out.write(" \r\n");
out.write(" function getOrdOfCol(col){\r\n");
out.write(" \tif(viewPort!=null){\r\n");
out.write(" \t\tvar mycol=viewPort.findById('col'+col);\r\n");
out.write(" \t\treturn \"[\"+mycol.items.keys+\"]\";\r\n");
out.write(" \t}\r\n");
out.write(" }\r\n");
out.write(" </script>\r\n");
out.write(" <body>\r\n");
out.write(" \t<div id=\"vp\">\r\n");
out.write(" \t\t<div id=\"vpm\"></div>\r\n");
out.write(" \t</div>\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 + -