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

📄 consult_005fadd_jsp.java

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

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class consult_005fadd_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_005fform_005fname_005fmethod_005faction;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005felse;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fform_005fname_005fmethod_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005felse = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fform_005fname_005fmethod_005faction.release();
    _005fjspx_005ftagPool_005fs_005fif_005ftest.release();
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.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\" \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("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("\t<head>\r\n");
      out.write("\t\t<title>咨询管理-添加</title>\r\n");
      out.write("\t\t<base target=\"_self\">\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<link href=\"");
      out.print(cpath);
      out.write("/style/mian.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\r\n");
      out.write("\t</head>\r\n");
      out.write("\t<script src=\"");
      out.print(cpath);
      out.write("/js/calendar.js\"></script>\r\n");
      out.write("\t<script src=\"");
      out.print(cpath);
      out.write("/js/validate.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<script language=\"javascript\">\r\n");
      out.write("\t  $(function(){\r\n");
      out.write("\t\t  \taddInputEffect();\r\n");
      out.write("\t\t  });\r\n");
      out.write("\t\t  \r\n");
      out.write("\tString.prototype.Trim = function(){\r\n");
      out.write("    \treturn this.replace(/(^\\s*)|(\\s*$)/g, \"\");\r\n");
      out.write("    }\r\n");
      out.write("   \r\n");
      out.write("   \tfunction check(){\r\n");
      out.write("   \t\tvar IClientid=document.getElementById('IClientid').value;\r\n");
      out.write("   \t\tif(IClientid.length==0){\t\t\r\n");
      out.write("   \t\t\tdocument.getElementById('client').style.display=\"\";\t\t\r\n");
      out.write("   \t\t}else{\r\n");
      out.write("   \t\t\tdocument.getElementById('client').style.display=\"none\";\r\n");
      out.write("   \t\t}\r\n");
      out.write("   \t}\r\n");
      out.write("\tfunction addClick(){\r\n");
      out.write("\t    consulttype=document.getElementById('consulttype').value.Trim();\r\n");
      out.write("\t    consulttitle=document.getElementById('consulttitle').value.Trim();\r\n");
      out.write("\t    s1=document.getElementById('s1').value.Trim();\r\n");
      out.write("\t    identify=document.getElementById('identify').value;\r\n");
      out.write("\t    \r\n");
      out.write("\t    checkSuccess=true\r\n");
      out.write("\t    if(consulttype.length==0 ){\r\n");
      out.write("\t        alert(\"请输入咨询类别!\")\r\n");
      out.write("\t        checkSuccess=false;\r\n");
      out.write("\t        return;\r\n");
      out.write("\t    }\r\n");
      out.write("\t    if(s1.length==0){\r\n");
      out.write("\t      alert(\"请输入咨询内容\")\r\n");
      out.write("\t\r\n");
      out.write("\t        checkSuccess=false;\r\n");
      out.write("\t        return;\r\n");
      out.write("\t    }\r\n");
      out.write("\t    if(consulttitle.length==0){\r\n");
      out.write("\t        alert(\"请输入咨询概述!\")\r\n");
      out.write("\t        checkSuccess=false;\r\n");
      out.write("\t        return;\r\n");
      out.write("\t    }\r\n");
      out.write("\t    \r\n");
      out.write("\t\tif(checkSuccess){\r\n");
      out.write("\r\n");
      out.write("\t\t\tif(identify.length==0){\r\n");
      out.write("\t\t\t\tgosubmit(document.form);\r\n");
      out.write("\t\t\t\talert(\"保存成功!\");\r\n");
      out.write("\t\t\t\twindow.close();\r\n");
      out.write("\t\t\t\t\r\n");
      out.write("\t\t\t}else{\r\n");
      out.write("\t\t\t  gosubmit(document.form);\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t    }\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction receivecustInfo(id,name){\r\n");
      out.write("\r\n");
      out.write("\t\tdocument.getElementById(\"iClientid\").value=id;\r\n");
      out.write("\t\tdocument.getElementById(\"clientname\").value=name;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\tfunction receivebillInfo(id,name){\r\n");
      out.write("\r\n");
      out.write("\t\tdocument.getElementById(\"nodeId\").value=id;\r\n");
      out.write("\t\tdocument.getElementById(\"consulttype\").value=name;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("    //选择类别\r\n");
      out.write("\tfunction select_tree(){\r\n");
      out.write("\t\tvar num=Math.random();\r\n");
      out.write("\t\tvar a = window.showModalDialog(\"");
      out.print(cpath);
      out.write("/sysdict/showchildsystree.action?nodeId=11&muti=false&num=\"+num, \"\", \"toolbar=no , menubar=no, scrollbars=yes, resizable=no, location=no, status=no\");\r\n");
      out.write("\t\tif(typeof(a)!=\"undefined\"){\r\n");
      out.write("\t\t\tdocument.getElementById(\"nodeId\").value=a[0];\r\n");
      out.write("\t\t\tdocument.getElementById(\"consulttype\").value=a[1];\r\n");
      out.write("\t\t}\r\n");
      out.write("\r\n");
      out.write("\t}\r\n");
      out.write("     \r\n");
      out.write("    function select_custmer(){\r\n");
      out.write("    \r\n");
      out.write("    \twindow.open(\"");
      out.print(cpath);
      out.write("/billconsult/select.action\", \"\", \"height=400, width=600, toolbar=atmo , menubar=no, scrollbars=no, resizable=no, location=no, status=no\");\r\n");
      out.write("    \r\n");
      out.write("    }\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("</script>\r\n");

⌨️ 快捷键说明

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