📄 stationversionedit_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class StationVersionEdit_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_hidden_name_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_iterator_value_id;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_property_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_if_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_elseif_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_property_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_else;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_iterator_value;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_iterator_value_status;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_s_iterator_value_status_id;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_s_hidden_name_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_iterator_value_id = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_property_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_elseif_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_property_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_else = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_iterator_value = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_iterator_value_status = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_s_iterator_value_status_id = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_s_hidden_name_nobody.release();
_jspx_tagPool_s_iterator_value_id.release();
_jspx_tagPool_s_property_value_nobody.release();
_jspx_tagPool_s_if_test.release();
_jspx_tagPool_s_elseif_test.release();
_jspx_tagPool_s_property_nobody.release();
_jspx_tagPool_s_else.release();
_jspx_tagPool_s_iterator_value.release();
_jspx_tagPool_s_iterator_value_status.release();
_jspx_tagPool_s_iterator_value_status_id.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=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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta content=\"text/html; charset=GBK\" http-equiv=\"content-type\">\r\n");
out.write("<title>StationVersion-edit</title>\r\n");
out.write("\r\n");
out.write("<script language=\"javascript1.2\" src=\"../js/jquery.js\" type=\"text/javascript\"></script>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<script type=\"text/javascript\">\r\n");
out.write("function do_select(aa)\r\n");
out.write("{\r\n");
out.write("\tvar id=$(aa);\r\n");
out.write("\tid.parents(\"tr\").addClass(\"selected\");\r\n");
out.write("\tid.attr(\"onclick\",\"javascript:do_reset(this)\").html(\"取消\")\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function do_reset(aa)\r\n");
out.write("{\r\n");
out.write("\tvar id=$(aa);\r\n");
out.write("\tid.parents(\"tr\").removeClass(\"selected\");\r\n");
out.write("\tid.attr(\"onclick\",\"javascript:do_select(this)\").html(\"选择\")\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function do_copy(aa)\r\n");
out.write("{\r\n");
out.write("\tvar id=$(aa);\r\n");
out.write("\tvar copy=id.parents(\"tr\").clone();\r\n");
out.write("\tvar first=copy.find(\"td:first\");\r\n");
out.write("\tfirst.html(\"》\"+first.html())\r\n");
out.write("\tid.parents(\"tr\").after(copy);\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function do_add(aa)\r\n");
out.write("{\r\n");
out.write(" String.prototype.replaceAll = function(s1,s2){ \r\n");
out.write(" return this.replace(new RegExp(s1,\"gm\"),s2); \r\n");
out.write(" } \r\n");
out.write("\r\n");
out.write("\tvar id=$(aa);\r\n");
out.write("\tvar template=$(\".template\").clone().attr(\"class\",\"line-none\");\r\n");
out.write("\tvar table = id.parents(\"table\")[0];\r\n");
out.write("\tvar rowNo = table.rows.length-2;\r\n");
out.write("\tvar newHtml = template.html().replaceAll(\"rowno\",rowNo);\r\n");
out.write("\t\r\n");
out.write("\ttemplate.html(newHtml);\r\n");
out.write("\t\r\n");
out.write("\t//var add=$(\".line-none\");\r\n");
out.write("\t//id.parents(\"tr\").prev(\".line-none\").remove();\r\n");
out.write("\t//template.show().find(\"td:eq(0)\").html(\"我是根据模板复制的的\");\r\n");
out.write("\r\n");
out.write("\tid.parents(\"tr.line\").before(template);\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function do_delete(aa)\r\n");
out.write("{\r\n");
out.write("\tvar id=$(aa);\r\n");
out.write("\tid.parents(\"tr.line-none\").remove();\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("function do_sum(aa){\r\n");
out.write("\tvar id=$(aa);\r\n");
out.write("\tvar oTable=id.parents(\"table\")[0];\r\n");
out.write("\tvar s='';\r\n");
out.write("\tfor(i=0;i<oTable.rows.length;i++){ \r\n");
out.write(" \t\tfor(j=0;j<oTable.rows[i].cells.length;j++){ \r\n");
out.write(" \t\t\ts+=oTable.rows[i].cells[j].firstChild.value+' '; \r\n");
out.write(" \t\t} \r\n");
out.write(" \t\ts+='\\n'; \r\n");
out.write(" } \r\n");
out.write(" \talert(s); \r\n");
out.write("\t\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("</script>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("\t.mainTable{ background-color:#ffcc00; width:85%; margin:auto; font-size:12px}\r\n");
out.write("\t.mainTable td{ height:22px}\r\n");
out.write("\t.line{ background-color:#fffff7; height:25px}\r\n");
out.write("\t.line-none{ background-color:#fffff7; height:25px}\r\n");
out.write("\t.selected{ background-color:#fff5fa}\r\n");
out.write("\t.template{ background-color:#ffffdd;display:none; color:#e8f5fe}\r\n");
out.write("\t.mainTable a{ margin-right:6px}\r\n");
out.write("\t.mainTable a:link{color:#92b0dd }\r\n");
out.write("\t.mainTable a:visited{color:#92b0dd}\r\n");
out.write("\t.mainTable a:hover{color:#FF0000}\r\n");
out.write("</style>\r\n");
out.write("</head>\r\n");
out.write("<body>\r\n");
out.write("Station Version Edit\r\n");
out.write("<br>\r\n");
out.write("<br>\r\n");
out.write("<form action=\"station-version.save.action\" name=\"form1\" method=\"post\" enctype=\"multipart/form-data\">\r\n");
if (_jspx_meth_s_hidden_0(_jspx_page_context))
return;
out.write('\r');
out.write('\n');
if (_jspx_meth_s_hidden_1(_jspx_page_context))
return;
out.write("\r\n");
out.write("<table style=\"text-align: left; width: 100%;\" border=\"1\" cellpadding=\"2\"\r\n");
out.write("\tcellspacing=\"2\">\r\n");
out.write("\t<tbody>\r\n");
out.write("\t\t");
if (_jspx_meth_s_iterator_0(_jspx_page_context))
return;
out.write("\t\t\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t<td></td>\r\n");
out.write("\t\t<td>\r\n");
out.write("\t\t<input type=\"submit\" name=\"save\" value=\"Save\"/>\r\n");
out.write("\t\t<input type=\"submit\" name=\"saveAsNew\" value=\"Save As New Version\"/>\r\n");
out.write("\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("</form>\r\n");
out.write("\r\n");
out.write("</body>\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_s_hidden_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// s:hidden
org.apache.struts2.views.jsp.ui.HiddenTag _jspx_th_s_hidden_0 = (org.apache.struts2.views.jsp.ui.HiddenTag) _jspx_tagPool_s_hidden_name_nobody.get(org.apache.struts2.views.jsp.ui.HiddenTag.class);
_jspx_th_s_hidden_0.setPageContext(_jspx_page_context);
_jspx_th_s_hidden_0.setParent(null);
_jspx_th_s_hidden_0.setName("stationId");
int _jspx_eval_s_hidden_0 = _jspx_th_s_hidden_0.doStartTag();
if (_jspx_th_s_hidden_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_s_hidden_name_nobody.reuse(_jspx_th_s_hidden_0);
return true;
}
_jspx_tagPool_s_hidden_name_nobody.reuse(_jspx_th_s_hidden_0);
return false;
}
private boolean _jspx_meth_s_hidden_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// s:hidden
org.apache.struts2.views.jsp.ui.HiddenTag _jspx_th_s_hidden_1 = (org.apache.struts2.views.jsp.ui.HiddenTag) _jspx_tagPool_s_hidden_name_nobody.get(org.apache.struts2.views.jsp.ui.HiddenTag.class);
_jspx_th_s_hidden_1.setPageContext(_jspx_page_context);
_jspx_th_s_hidden_1.setParent(null);
_jspx_th_s_hidden_1.setName("stationVersion.id");
int _jspx_eval_s_hidden_1 = _jspx_th_s_hidden_1.doStartTag();
if (_jspx_th_s_hidden_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_s_hidden_name_nobody.reuse(_jspx_th_s_hidden_1);
return true;
}
_jspx_tagPool_s_hidden_name_nobody.reuse(_jspx_th_s_hidden_1);
return false;
}
private boolean _jspx_meth_s_iterator_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// s:iterator
org.apache.struts2.views.jsp.IteratorTag _jspx_th_s_iterator_0 = (org.apache.struts2.views.jsp.IteratorTag) _jspx_tagPool_s_iterator_value_id.get(org.apache.struts2.views.jsp.IteratorTag.class);
_jspx_th_s_iterator_0.setPageContext(_jspx_page_context);
_jspx_th_s_iterator_0.setParent(null);
_jspx_th_s_iterator_0.setValue("stationVersion.station.stationType.fieldDefinitions");
_jspx_th_s_iterator_0.setId("fd");
int _jspx_eval_s_iterator_0 = _jspx_th_s_iterator_0.doStartTag();
if (_jspx_eval_s_iterator_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_s_iterator_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_s_iterator_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_s_iterator_0.doInitBody();
}
do {
out.write("\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td>");
if (_jspx_meth_s_property_0(_jspx_th_s_iterator_0, _jspx_page_context))
return true;
out.write(" </td>\r\n");
out.write("\t\t\t<td>\r\n");
out.write("\t\t\t");
if (_jspx_meth_s_if_0(_jspx_th_s_iterator_0, _jspx_page_context))
return true;
out.write("\r\n");
out.write("\t\t\t");
if (_jspx_meth_s_if_2(_jspx_th_s_iterator_0, _jspx_page_context))
return true;
out.write("\t\t\t\r\n");
out.write("\t\t\t");
if (_jspx_meth_s_if_5(_jspx_th_s_iterator_0, _jspx_page_context))
return true;
out.write("\r\n");
out.write("\t\t\t \r\n");
out.write("\t\t\t</td>\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -