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

📄 addpetcasehistory_jsp.java

📁 一个基于JAVA的BS结构的宠物诊所管理系统.是当年在学校时写的,大家指点一下.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

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

public final class AddPetCaseHistory_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(2);
    _jspx_dependants.add("/WEB-INF/tags/head.tag");
    _jspx_dependants.add("/WEB-INF/tags/cauda.tag");
  }

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_choose;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_when_test;
  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_otherwise;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _jspx_tagPool_c_choose = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _jspx_tagPool_c_when_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _jspx_tagPool_c_otherwise = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_c_choose.release();
    _jspx_tagPool_c_when_test.release();
    _jspx_tagPool_c_otherwise.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("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<HTML>\r\n");
      out.write("<HEAD>\r\n");
      out.write("<TITLE>添加宠物病历信息</TITLE>\r\n");
      out.write("<script language=\"javascript\" type=\"\" src=\"datasrc/javascript/util.js\"> </script>\r\n");
      out.write("<script type=\"\" language=\"JavaScript\">\r\n");
      out.write("      function addPetCaseHistoryAction(){\r\n");
      out.write("      \tvar il=removeSpace(document.form1.illnessInfo.value);\r\n");
      out.write("      \tif(il==''){\r\n");
      out.write("      \t\t\talert(\"请填写宠物的病历\");\r\n");
      out.write("      \t\t\tdocument.form1.illnessInfo.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\tif(il.length>500){\r\n");
      out.write("      \t\t\talert(\"宠物的病历不应超过500个字\");\r\n");
      out.write("      \t\t\tdocument.form1.illnessInfo.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("\r\n");
      out.write("      \t\tdocument.form1.illnessInfo.value=il;\r\n");
      out.write("\r\n");
      out.write("      \tvar pre=removeSpace(document.form1.prescription.value);\r\n");
      out.write("\r\n");
      out.write("      \tif(pre==''){\r\n");
      out.write("      \t\t\talert(\"请填写药方\");\r\n");
      out.write("      \t\t\tdocument.form1.prescription.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \tif(pre.length>100){\r\n");
      out.write("      \t\t\talert(\"宠物的药方不应超过100个字\");\r\n");
      out.write("      \t\t\tdocument.form1.prescription.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("      \t\tdocument.form1.prescription.value=pre;\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("      \t\tvar moneystr=removeSpace(document.form1.outlay.value);\r\n");
      out.write("      \t\tif(moneystr==''){\r\n");
      out.write("      \t\t\talert(\"请填写费用\");\r\n");
      out.write("      \t\t\tdocument.form1.outlay.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("\r\n");
      out.write("      \t\tdocument.form1.outlay.value=moneystr;\r\n");
      out.write("\r\n");
      out.write("      \t\tif(isNaN(moneystr)){\r\n");
      out.write("      \t\t\talert(\"请正确填写有效费用,比如:应该输入数字.\");\r\n");
      out.write("      \t\t\tdocument.form1.outlay.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t\t}\r\n");
      out.write("\r\n");
      out.write("      \tif(parseFloat(moneystr)<0){\r\n");
      out.write("      \t\t\talert(\"费用必须大于0\");\r\n");
      out.write("      \t\t\tdocument.form1.outlay.select();\r\n");
      out.write("      \t\t\treturn false;\r\n");
      out.write("      \t\t}\r\n");
      out.write("\r\n");
      out.write("      \t\t//return false;\r\n");
      out.write("      \t\treturn true;\r\n");
      out.write("      }\r\n");
      out.write("      \r\n");
      out.write("      function displayTime(){\r\n");
      out.write("      \tdocument.form1.NotEdit.value=today.getYear()+'-'+(today.getMonth()+1)+'-'+today.getDate()+' '+today.getHours()+':'+today.getMinutes()+':'+today.getSeconds();\r\n");
      out.write("      \t}\r\n");
      out.write("</script>\r\n");
      out.write("\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".STYLE9 {font-size: 14}\r\n");
      out.write(".STYLE10 {color: #00CC99}\r\n");
      out.write(".STYLE15 {color: #00CC99; font-size: 14px; font-weight: bold; }\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</HEAD>\r\n");
      out.write("<LINK href=\"datasrc/style.css\" type=text/css rel=stylesheet>\r\n");
      out.write("<body onload=\"displayTime()\">\r\n");
      if (_jspx_meth_mytag_head_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("<!-- 在这里开始加入动态内容 -->\r\n");
      out.write("<TABLE width=776 border=0 align=center cellPadding=0 cellSpacing=0 background=datasrc/centerbg.gif>\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD align=\"center\" vAlign=top background=datasrc/09.gif>\r\n");
      out.write("\r\n");
      out.write("      ");
      if (_jspx_meth_c_choose_0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<!-- 在这里结束加入动态内容 -->\r\n");
      if (_jspx_meth_mytag_cauda_0(_jspx_page_context))
        return;
      out.write("\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 {

⌨️ 快捷键说明

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