⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showscoretemplate_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
package org.apache.jsp.pages.LeftMenu.scoretemplate;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import cn.aresoft.po.SysUserInfo;
import cn.aresoft.fw.ServiceLocator;
import cn.aresoft.modules.systemmanage.function.FunctionService;

public final class showscoretemplate_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_005fiterator_005fvalue_005fstatus;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fdate_005fname_005fformat_005fnobody;

  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_005fiterator_005fvalue_005fstatus = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fdate_005fname_005fformat_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.release();
    _005fjspx_005ftagPool_005fs_005fiterator_005fvalue_005fstatus.release();
    _005fjspx_005ftagPool_005fs_005fif_005ftest.release();
    _005fjspx_005ftagPool_005fs_005felse.release();
    _005fjspx_005ftagPool_005fs_005fdate_005fname_005fformat_005fnobody.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("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \r\n");
      out.write("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");

	String cpath=request.getContextPath();

      out.write("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("\t\t<head>\r\n");
      out.write("\t   \t<title>评分模板</title>\r\n");
      out.write("\t    <script src=\"");
      out.print(cpath);
      out.write("/js/page.js\"></script>\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/validate.js\"></script>\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\" type=\"text/css\" />\r\n");
      out.write("\t\t<script src=\"");
      out.print(cpath);
      out.write("/js/page.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>\t\t\t\r\n");
      out.write("\t\t<script language=\"JavaScript\">\t\r\n");
      out.write("<!--\r\n");
      out.write("\t $(function(){\r\n");
      out.write("\t  \taddInputEffect();\r\n");
      out.write("\t  });\r\n");
      out.write("\r\n");
      out.write("var  strCode;\r\n");
      out.write("//判断文本框是否为空\r\n");
      out.write(" function str_is_null(str)\r\n");
      out.write("{\r\n");
      out.write("  if( trim_spaces(str,\"both\").length ==0 )\r\n");
      out.write("      return true;\r\n");
      out.write("  else\r\n");
      out.write("  return false;\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function CheckAll(thread_form)\r\n");
      out.write("{\r\n");
      out.write("  for (var i=0;i< thread_form.selItem.length;i++)\r\n");
      out.write("  {\r\n");
      out.write("       thread_form.selItem[i].checked = thread_form.chkAll.checked;\r\n");
      out.write("  }  \r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("//去空格\r\n");
      out.write("function trim_spaces(str,from_where)\r\n");
      out.write("{\r\n");
      out.write("\tvar temp_string=new String(str);\r\n");
      out.write("\tif (arguments.length == 0)\r\n");
      out.write("\t{\r\n");
      out.write("\t\tfrom_where = \"BOTH\";\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif (from_where.toUpperCase() == \"LEFT\" || from_where.toUpperCase() == \"BOTH\")\r\n");
      out.write("\t{\r\n");
      out.write("\t\twhile (temp_string.substring(0,1) ==\" \")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\ttemp_string = temp_string.substring(1);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\tif (from_where.toUpperCase() == \"RIGHT\" || from_where.toUpperCase() == \"BOTH\")\r\n");
      out.write("\t{\r\n");
      out.write("\t\twhile (temp_string.substr(temp_string.length-1,1) ==\" \")\r\n");
      out.write("\t\t{\r\n");
      out.write("\t\t\ttemp_string = temp_string.substring(0,temp_string.length - 1);\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\treturn temp_string;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function thread_add() {\r\n");
      out.write("\twindow.top.frames['left'].openWindows(\"");
      out.print(cpath);
      out.write("/scoretemplate/toaddtemplate.action?windowId=\"+'score.addscoretemplate',\"创建评分模板\",\"score.addscoretemplate\",window,\"telecall.scoretemplate\");\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function thread_search() {\r\n");
      out.write("\t\tgosubmit(document.thread_form,\"");
      out.print(cpath);
      out.write("/scoretemplate/templatesearchby.action\");\r\n");
      out.write("\t\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function edit_status(templateId){\r\n");
      out.write("\t document.getElementById('templateId').value=templateId;\r\n");
      out.write("\tgosubmit(document.pform,\"");
      out.print(cpath);
      out.write("/scoretemplate/changestatusscore.action\");\r\n");
      out.write("\t\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function edit(templateId){\r\n");
      out.write("\twindow.top.frames['left'].openWindows(\"");
      out.print(cpath);
      out.write("/scoretemplate/tomodifyscoretemplate.action?templateId=\"+templateId+\"&windowId=\"+'score.tomodifyscore'+templateId,\"修改评分模板\",\"score.tomodifyscore\"+templateId,window,\"telecall.scoretemplate\");\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function deletea(templateId){\r\n");
      out.write("\t\tif(confirm(\"确定要删除吗?\")==false){\r\n");
      out.write("\t\t   return;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t document.getElementById('templateId').value=templateId;\r\n");
      out.write("\tgosubmit(document.pform,\"");
      out.print(cpath);
      out.write("/scoretemplate/descoretemplate.action\");\r\n");
      out.write("\t\t\r\n");
      out.write("\t}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("function myopenWindows(url,name,id){\r\n");
      out.write("\t  try{\r\n");
      out.write("\t\twindow.top.frames['left'].openWindows(url,name,id); \r\n");
      out.write("\t  }catch(er){\r\n");
      out.write("\t    alert(er.name+\":\"+er.message);\r\n");
      out.write("\t  }\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function reload(){\r\n");
      out.write("   \tvar windowId = document.getElementById('windowId').value;\r\n");
      out.write("    var lastwindow = window.top.frames['title'].getLastWindow(windowId);\r\n");
      out.write("    lastwindow.location.href=\"");
      out.print(cpath);
      out.write("/scoretemplate/templatesearch.action\";\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("function reloadpage(){\r\n");
      out.write(" \tdocument.pform.action=\"");
      out.print(cpath);
      out.write("/scoretemplate/templatesearchby.action\";\r\n");
      out.write("\tdocument.pform.submit();\r\n");
      out.write("}\r\n");
      out.write("function goExport(type){\r\n");
      out.write("      \r\n");
      out.write("            \tif(document.thread_form.exportExcel!=null&&type==1){\r\n");
      out.write("            \t  document.thread_form.exportExcel.disabled=true;\r\n");
      out.write("            \t}\r\n");
      out.write("            \tif(document.thread_form.exportPdf!=null&&type==2){\r\n");
      out.write("            \t  document.thread_form.exportPdf.disabled=true;\r\n");
      out.write("            \t}\r\n");
      out.write("            \t  document.thread_form.action=\"");
      out.print(cpath);
      out.write("/scoretemplate/ExportScoreTemplate.action?expType=\"+type;\r\n");
      out.write("                  document.thread_form.submit();\r\n");
      out.write("            }\r\n");
      out.write("        \r\n");
      out.write("-->\r\n");
      out.write("</script>\r\n");
      out.write("\t</head>\r\n");
      out.write("\r\n");
      out.write("<body leftmargin=\"0\" topmargin=\"0\" class=\"bgOffice\" style=\"width:100%;\">\r\n");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -