📄 updatefaxtask_jsp.java
字号:
package org.apache.jsp.pages.LeftMenu.FaxSend;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
public final class updateFaxTask_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 _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fform_005fname_005fenctype_005faction;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus;
private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;
public Object getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fform_005fname_005fenctype_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
_005fjspx_005ftagPool_005fs_005fform_005fname_005fenctype_005faction.release();
_005fjspx_005ftagPool_005fs_005fif_005ftest.release();
_005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus.release();
_005fjspx_005ftagPool_005fs_005felse.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=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("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
String cpath = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ cpath + "/";
out.write("\r\n");
out.write("<html>\r\n");
out.write("\t<head>\r\n");
out.write("\t\t<title>修改传真任务</title>\r\n");
out.write("\t\t\t<link href=\"");
out.print(cpath);
out.write("/style/layout.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/css_common1.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\t\t<link href=\"");
out.print(cpath);
out.write("/style/mian.css\" rel=\"stylesheet\"\r\n");
out.write("\t\t\ttype=\"text/css\" />\r\n");
out.write("\t\t<script src=\"");
out.print(cpath);
out.write("/js/calendar.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<script src=\"");
out.print(cpath);
out.write("/js/effect.js\"></script>\r\n");
out.write("\t\t<base href=\"");
out.print(basePath);
out.write("\">\r\n");
out.write("\t</head>\r\n");
out.write("\t<script language=\"JavaScript\">\t\t\r\n");
out.write("\t\t\tvar xmlhttpreq = false;\r\n");
out.write("\t\t\t//创建xmlhttprequest对象 \r\n");
out.write("\t\t\tfunction createxmlhttprequest() {\r\n");
out.write(" \t\txmlhttpreq = false;\r\n");
out.write(" \tif (window.XMLHttpRequest) { // Mozilla, Safari,...\r\n");
out.write(" \t\t xmlhttpreq = new XMLHttpRequest();\r\n");
out.write(" if (xmlhttpreq.overrideMimeType) {\r\n");
out.write(" xmlhttpreq.overrideMimeType('text/xml');\r\n");
out.write(" }\r\n");
out.write(" } else if (window.ActiveXObject) { // IE\r\n");
out.write(" try {\r\n");
out.write(" xmlhttpreq = new ActiveXObject(\"Msxml2.XMLHTTP\");\r\n");
out.write(" } catch (e) {\r\n");
out.write(" try {\r\n");
out.write(" xmlhttpreq = new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n");
out.write(" } catch (e) {}\r\n");
out.write(" }\r\n");
out.write(" }\r\n");
out.write("\r\n");
out.write(" if (!xmlhttpreq) {\r\n");
out.write(" alert('Giving up :( Cannot create an XMLHTTP instance');\r\n");
out.write(" return false;\r\n");
out.write(" }\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("\t\t//发送请求函数\r\n");
out.write("\t\tfunction sendRequest(url) {\r\n");
out.write("\t\t\tcreatexmlhttprequest();\r\n");
out.write("\t\t\txmlhttpreq.open('GET', url, true);\r\n");
out.write("\t\t\txmlhttpreq.onreadystatechange = processresponse;//指定响应函数\r\n");
out.write("\t\t\txmlhttpreq.send(null); // 发送请求\r\n");
out.write("\t\t}\r\n");
out.write("\r\n");
out.write("\t\t// 处理返回信息函数\r\n");
out.write("\t\tfunction processresponse() {\r\n");
out.write("\t\t\t//alert('processresponse');\r\n");
out.write("\t\t\tif (xmlhttpreq.readyState == 4) { // 判断对象状态\r\n");
out.write("\t\t\t\tif (xmlhttpreq.status == 200) { // 信息已经成功返回,开始处理信息\r\n");
out.write("\t\t\t\t\t//alert('processresponse:'+xmlhttpreq.responseText);\r\n");
out.write("\t\t\t\t\t//window.open(\"");
out.print(cpath);
out.write("/\"+xmlhttpreq.responseText);\r\n");
out.write("\t\t\t\t\tprocessRult(xmlhttpreq.responseText);//responseXml\r\n");
out.write("\t\t\t\t} else { //页面不正常\r\n");
out.write("\t\t\t\t\twindow.alert(\"\\u60a8\\u6240\\u8bf7\\u6c42\\u7684\\u9875\\u9762\\u6709\\u5f02\\u5e38\\u3002\");\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\tfunction processRult(xmlValue) {\r\n");
out.write("\t\t\twindow.open('");
out.print(cpath);
out.write("/pages/LeftMenu/FaxSend/Faxpage.jsp?content='+xmlValue);\r\n");
out.write("\t\t}\r\n");
out.write("\t\tfunction previewClick(){\r\n");
out.write("\t \tselObj = document.getElementById('Fname');\r\n");
out.write("\t\t\t\r\n");
out.write("\t\t\ttemplateid= selObj.options[selObj.selectedIndex].value;\r\n");
out.write("\t\t\tif(templateid==null||templateid==''){\r\n");
out.write("\t\t\t\treturn;\r\n");
out.write("\t\t\t}else{\r\n");
out.write("\t\t\t\t//alert(templateid);\r\n");
out.write("\t\t\t\turl = '");
out.print(cpath);
out.write("/faxSend/setContentAjax.action?templateId='+templateid;\r\n");
out.write("\t\t\t\tsendRequest(url);\r\n");
out.write("\t\t\t}\r\n");
out.write(" }\r\n");
out.write("\t</script>\r\n");
out.write("\t<script language=\"JavaScript\">\r\n");
out.write("<!--\r\n");
out.write(" $(function(){\r\n");
out.write("\t \taddInputEffect();\r\n");
out.write("\t });\r\n");
out.write("\tString.prototype.Trim = function(){\r\n");
out.write(" \t\treturn this.replace(/(^\\s*)|(\\s*$)/g, \"\");\r\n");
out.write(" \t}\r\n");
out.write(" function link(){\r\n");
out.write(" \twindow.open(\"");
out.print(cpath);
out.write('/');
if (_jspx_meth_s_005fproperty_005f0(_jspx_page_context))
return;
out.write("\");\r\n");
out.write(" }\r\n");
out.write("\tfunction check(){\r\n");
out.write("\t\tif(document.getElementById('returnsign').value==1){\r\n");
out.write("\t\t\talert(\"上传成功!\");\r\n");
out.write("\t\t}else if(document.getElementById('returnsign').value==2){\r\n");
out.write("\t\t\t alert(\"上传失败,该文件已经上传过!\");\r\n");
out.write("\t\t}else if(document.getElementById('returnsign').value==3){\r\n");
out.write("\t\t\t alert(\"上传失败,上传文件过大!\");\r\n");
out.write("\t\t}\r\n");
out.write("\t}\r\n");
out.write("\tfunction Click1(){\r\n");
out.write("\t\tdocument.getElementById('upload').select();\r\n");
out.write("\t\tdocument.execCommand('delete') ;\r\n");
out.write("\t\tdocument.getElementById('upload').readOnly=true;\r\n");
out.write("\t\tdocument.getElementById('previewButton').disabled=false;\r\n");
out.write("\t\tdocument.form.Fname.disabled=false;\r\n");
out.write("\t}\r\n");
out.write("\tfunction Click2(){\r\n");
out.write("\t\tdocument.getElementById('upload').readOnly=false;\r\n");
out.write("\t\tdocument.getElementById('previewButton').disabled=true;\r\n");
out.write("\t\tdocument.form.Fname.value=\"\";\r\n");
out.write("\t\tdocument.form.Fname.disabled=true;\r\n");
out.write("\t}\r\n");
out.write("\tfunction addClick(){\r\n");
out.write("\tif(document.form.Fname.value==\"\" && document.form.upload.value==\"\" && document.form.filePath.value==\"\"){\r\n");
out.write("\t\talert(\"请至少选择一项进行发送!\");\r\n");
out.write("\t\treturn;\r\n");
out.write("\t}\r\n");
out.write("\telse{\r\n");
out.write("\t\tdocument.form.target=\"_parent\";\r\n");
out.write("\t\tdocument.form.action=\"");
out.print(cpath);
out.write("/faxSend/UpdateFaxTask.action?faxId=");
if (_jspx_meth_s_005fproperty_005f1(_jspx_page_context))
return;
out.write("\";\r\n");
out.write("\t \t//document.form.submit();\r\n");
out.write("\t \tgosubmit(document.form);\r\n");
out.write("\t \t}\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -