addanimalkind_0002ejsp_jsp.java
来自「野生动物系统的JAVA源码, 野生动物系统的JAVA源码」· Java 代码 · 共 246 行
JAVA
246 行
package operation.out_scout;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.sql.*;
import scout.util.*;
import scout.database.util.*;
public class addAnimalKind_0002ejsp_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
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>野外监测记录");
out.write("</title>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n.STYLE1 {\r\n\tfont-size: larger;\r\n\tfont-weight: bold;\r\n\tcolor: #FF0000;\r\n\tfont-family: \"楷体_GB2312\";\r\n}\r\n.STYLE6 {font-family: \"楷体_GB2312\"; font-size: smaller; }\r\n.STYLE11 {font-family: \"楷体_GB2312\"; font-size: small; font-weight: bold; }\r\n.STYLE19 {font-family: \"楷体_GB2312\"; font-size: smaller; font-weight: bold; }\r\n-->\r\n");
out.write("</style>\r\n");
out.write("<script type=\"text/javascript\" src=\"js/addAnimalKind.js\">");
out.write("</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\t");
out.write("<tr>\r\n\t\t");
out.write("<td height=\"29\">");
out.write("<div align=\"center\">");
out.write("<span class=\"STYLE1\">异常情况记录");
out.write("</span>");
out.write("</div>");
out.write("</td>\r\n\t");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"80%\" border=\"1\" cellspacing=\"0\" cellpadding=\"1\">\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td width=\"18%\">");
out.write("<span class=\"STYLE11\">种类");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td width=\"20%\">");
out.write("<input name=\"classAnimal\" type=\"text\" size=\"12\">");
out.write("</td>\r\n\t\t");
out.write("<td width=\"10%\">");
out.write("<span class=\"STYLE11\">种群数量");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td width=\"20%\">");
out.write("<input name=\"classNumber\" type=\"text\" size=\"12\" onBlur=\"checkClassNum()\">");
out.write("</td>\r\n\t\t");
out.write("<td width=\"14%\">");
out.write("<span class=\"STYLE11\">种群特征");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td width=\"20%\">");
out.write("<input name=\"classCharacter\" type=\"text\" size=\"12\">");
out.write("</td>\r\n\t");
out.write("</tr>\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">症状");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td>");
out.write("<input name=\"symptom\" type=\"text\" size=\"12\">");
out.write("</td>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">死亡数量");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td>");
out.write("<input name=\"deadNumber\" type=\"text\" size=\"12\" onBlur=\"checkDeadNum()\">");
out.write("</td>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">其他异常数量");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td>");
out.write("<input name=\"otherNumber\" type=\"text\" size=\"12\" onBlur=\"checkOtherNum()\">");
out.write("</td>\r\n\t");
out.write("</tr>\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">现场初步检查结论");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td colspan=\"5\">");
out.write("<input name=\"firstConclusion\" type=\"text\" size=\"30\">");
out.write("</td>\r\n\t");
out.write("</tr>\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">现场处理情况");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td colspan=\"5\">");
out.write("<input name=\"localeDisposal\" type=\"text\" size=\"30\">");
out.write("</td>\r\n\t");
out.write("</tr>\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">异常动物处理");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td colspan=\"5\">");
out.write("<input name=\"animalDisposal\" type=\"text\" size=\"30\">");
out.write("</td>\r\n\t");
out.write("</tr>\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td>");
out.write("<span class=\"STYLE11\">是否取样");
out.write("</span>");
out.write("</td>\r\n\t\t");
out.write("<td colspan=\"5\">");
out.write("<input name=\"sampling\" type=\"checkbox\" value=\"1\">");
out.write("</td>\r\n\t");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<table width=\"70%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n\t");
out.write("<tr>\r\n\t\t");
out.write("<td align=\"right\">");
out.write("<label>\r\n\t\t ");
out.write("<input type=\"button\" name=\"Submit\" value=\"提交\" onClick=\"check()\">\r\n\t\t");
out.write("</label>");
out.write("</td>\r\n\t\t");
out.write("<td>");
out.write("<label>\r\n\t\t ");
out.write("<input type=\"button\" name=\"Submit\" value=\"返回\" onClick=\"javascript:javascript:window.location.href='addOutScout.jsp';\">\r\n\t\t");
out.write("</label>");
out.write("</td>\t\t\r\n\t");
out.write("</tr>\r\n\t");
out.write("<input type=\"hidden\" name=\"fieldNoteID\" value=\"");
out.print(maxId);
out.write("\" />\r\n");
out.write("</table>\r\n\r\n");
out.write("<table width=\"56%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<span class=\"STYLE6\">填表说明:");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<span class=\"STYLE6\">1. 在监测区域内所有监测到的野生动物情况都应填入该表。 ");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<span class=\"STYLE6\">2. 生境特征:按《全国陆生野生动物资源调查与监测技术规程》(修订版)执行");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<span class=\"STYLE6\">3. 种群特征:指种群是否为迁徙以及年龄垂直结构。");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<span class=\"STYLE6\">4. 异常动物处理情况:对初步检查发现异常的野生动物进行掩埋、焚烧等处理措施。");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr>\r\n ");
out.write("<td>");
out.write("<span class=\"STYLE6\">5. 现场处理情况:是否采样消毒、隔离等现场处理措施。");
out.write("</span>");
out.write("</td>\r\n ");
out.write("</tr>\r\n");
out.write("</table>\r\n");
out.write("<p> ");
out.write("</p>\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) {
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?