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

📄 addanimalkind_jsp.java

📁 野生动物系统的JAVA源码, 野生动物系统的JAVA源码
💻 JAVA
字号:
package org.apache.jsp.operation.out_005fscout;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import scout.util.*;
import scout.database.util.*;

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

  private static java.util.Vector _jspx_dependants;

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

  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=gb2312");
      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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>国家陆生野生动物疫源疫病监测信息系统</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".STYLE1 {\r\n");
      out.write("\tfont-size: larger;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("\tcolor: #FF0000;\r\n");
      out.write("\tfont-family: \"楷体_GB2312\";\r\n");
      out.write("}\r\n");
      out.write(".STYLE11 {font-family: \"楷体_GB2312\"; font-size: small; font-weight: bold; }\r\n");
      out.write("body,td,th {\r\n");
      out.write("\tfont-family: 楷体_GB2312;\r\n");
      out.write("\tfont-size: 14px;\r\n");
      out.write("}\r\n");
      out.write(".STYLE21 {font-family: \"楷体_GB2312\"; font-size: 14px; }\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<script type=\"text/javascript\" src=\"js/addAnimalKind.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");

  ConnDataBase cdb=new ConnDataBase();
  Connection conn=cdb.getConnection();
  String maxId=Tools.formatStr((String)request.getParameter("fieldNoteID"));
  if(maxId.equals("")){  
    scout.operation.out_scout.OutScout os=new scout.operation.out_scout.OutScout(conn);
    java.util.Vector vv=os.getSql(request);
	//out.println(os.getSql(request));
    int flag=os.sqlexe(vv);
    try{
     maxId=os.getMaxid();
    }catch(SQLException e){
     out.println(e.getMessage());
    }
  }
  //out.println(conn);
  //out.println(maxId);
    

      out.write("\r\n");
      out.write("<form name=\"formAnimalKind\" method=\"post\" action=\"addOutScoutExe.jsp\">\r\n");
      out.write("<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td height=\"29\"><div align=\"center\"><span class=\"STYLE1\">异常情况记录</span></div></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"80%\" border=\"1\" cellspacing=\"0\" cellpadding=\"1\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"18%\"><span class=\"STYLE21\">种类</span></td>\r\n");
      out.write("\t\t<td width=\"20%\"><input name=\"classAnimal\" type=\"text\" size=\"12\"></td>\r\n");
      out.write("\t\t<td width=\"10%\"><span class=\"STYLE21\">种群数量</span></td>\r\n");
      out.write("\t\t<td width=\"20%\"><input name=\"classNumber\" type=\"text\" size=\"12\" onBlur=\"checkClassNum()\"></td>\r\n");
      out.write("\t\t<td width=\"14%\"><span class=\"STYLE21\">种群特征</span></td>\r\n");
      out.write("\t\t<td width=\"20%\"><input name=\"classCharacter\" type=\"text\" size=\"12\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td><span class=\"STYLE21\">症状</span></td>\r\n");
      out.write("\t\t<td><input name=\"symptom\" type=\"text\" size=\"12\"></td>\r\n");
      out.write("\t\t<td><span class=\"STYLE21\">死亡数量</span></td>\r\n");
      out.write("\t\t<td><input name=\"deadNumber\" type=\"text\" size=\"12\" onBlur=\"checkDeadNum()\"></td>\r\n");
      out.write("\t\t<td><span class=\"STYLE21\">其他异常数量</span></td>\r\n");
      out.write("\t\t<td><input name=\"otherNumber\" type=\"text\" size=\"12\" onBlur=\"checkOtherNum()\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td><span class=\"STYLE21\">现场初步检查结论</span></td>\r\n");
      out.write("\t\t<td colspan=\"5\"><input name=\"firstConclusion\" type=\"text\" size=\"30\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td><span class=\"STYLE21\">现场处理情况</span></td>\r\n");
      out.write("\t\t<td colspan=\"5\"><input name=\"localeDisposal\" type=\"text\" size=\"30\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td><span class=\"STYLE21\">异常动物处理</span></td>\r\n");
      out.write("\t\t<td colspan=\"5\"><input name=\"animalDisposal\" type=\"text\" size=\"30\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td class=\"STYLE21\">是否取样</td>\r\n");
      out.write("\t\t<td colspan=\"5\"><input name=\"sampling\" type=\"checkbox\" value=\"1\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"56%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"STYLE21\">填表说明:</span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"STYLE21\">1. 在监测区域内所有监测到的野生动物情况都应填入该表。 </span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"STYLE21\">2. 生境特征:按《全国陆生野生动物资源调查与监测技术规程》(修订版)执行</span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"STYLE21\">3. 种群特征:指种群是否为迁徙以及年龄垂直结构。</span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"STYLE21\">4. 异常动物处理情况:对初步检查发现异常的野生动物进行掩埋、焚烧等处理措施。</span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><span class=\"STYLE21\">5. 现场处理情况:是否采样消毒、隔离等现场处理措施。</span></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"70%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td align=\"right\"><label>\r\n");
      out.write("\t\t  <input type=\"button\" name=\"Submit\" value=\"提交\" onClick=\"check()\">\r\n");
      out.write("\t\t</label>\r\n");
      out.write("\t\t<label>\r\n");
      out.write("\t\t  <input type=\"button\" name=\"Submit\" value=\"返回\" onClick=\"javascript:javascript:window.location.href='addOutScout.jsp';\">\r\n");
      out.write("\t\t</label></td>\t\t\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<input type=\"hidden\" name=\"fieldNoteID\" value=\"");
      out.print(maxId);
      out.write("\" />\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("</form>\r\n");

conn.close();

      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 {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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