addswatch_jsp.java
来自「野生动物系统的JAVA源码, 野生动物系统的JAVA源码」· Java 代码 · 共 84 行
JAVA
84 行
package org.apache.jsp.operation.gather_005fswatch;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import scout.util.*;
import scout.database.util.*;
import scout.operation.gather_swatch.*;
public final class addSwatch_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\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"/>\r\n<title>国家陆生野生动物疫源疫病监测信息系统</title>\r\n<style type=\"text/css\">\r\n <!--\r\n .STYLE1 {\r\n font-size: larger;\r\n font-weight: bold;\r\n }\r\nbody,td,th {\r\n\tfont-family: 楷体_GB2312;\r\n\tfont-size: 14px;\r\n}\r\n -->\r\n</style>\r\n<script type=\"text/javascript\" src=\"js/gatherSwatch.js\"></script>\r\n</head>\r\n<body>\r\n\r\n");
ConnDataBase cdb = new ConnDataBase();
Connection conn = cdb.getConnection();
String maxId=Tools.formatStr((String)request.getParameter("swatchNoteID"));
if(maxId.equals("")){
GatherSwatch gs = new GatherSwatch(conn);
java.util.Vector vv = gs.getSql(request);
int flag = gs.sqlexe(vv);
try {
maxId = gs.getMaxid();
}
catch (SQLException e) {
out.println(e.getMessage());
}
}
// out.println("vv=" + vv);
out.println("id=" + maxId);
out.write("\r\n<table width=\"80%\">\r\n <tr>\r\n <td>\r\n <div align=\"center\" class=\"STYLE1\">样本表</div> </td>\r\n </tr>\r\n</table>\r\n<form action=\"addSwatchExe.jsp\" method=\"post\" name=\"asForm\">\r\n<table width=\"70%\" height=\"68\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td width=\"16%\" height=\"33\">样本编号</td>\r\n <td width=\"34%\">\r\n <label>\r\n <input type=\"text\" name=\"number\"/>\r\n </label> </td>\r\n <td width=\"16%\">样本类别</td>\r\n <td width=\"34%\">\r\n <input type=\"text\" name=\"swatchClass\" />\r\n\t </td>\r\n </tr>\r\n <tr>\r\n <td height=\"33\">样本数量</td>\r\n <td>\r\n <input type=\"text\" name=\"swatchNumber\" onBlur=\"checkSwatchNumber()\"/> </td>\r\n <td>包装种类</td>\r\n <td>\r\n <input type=\"text\" name=\"packClass\" /> </td>\r\n </tr>\r\n</table>\r\n <input type=\"hidden\" name=\"swatchNoteID\" value=\"");
out.print(maxId);
out.write("\" />\r\n<table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n \t<td> </td>\r\n </tr>\r\n <tr>\r\n <td>填表说明:</td>\r\n </tr>\r\n <tr>\r\n <td>1. 样本数量:即取样动物的数量。</td>\r\n </tr>\r\n <tr>\r\n <td>2. 样本类别:为血液、组织或脏器、分泌物、排泄物、渗出物、肠内容物、粪便或羽毛等。</td>\r\n </tr>\r\n <tr>\r\n <td>3. 包装种类:样本的包装材质,如eppendorf管、西林瓶、离心管、塑料袋等。</td>\r\n </tr>\r\n</table>\r\n<table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td width=\"40%\" height=\"25\"> </td>\r\n <td width=\"40%\">\r\n <label> </label>\r\n </td>\r\n <td>\r\n <input type=\"button\" name=\"Submit\" value=\"下一步\" onClick=\"checkexe()\"/>\r\n <input type=\"button\" name=\"button\" value=\"返 回\" onClick=\"javascript:javascript:window.location.href='gatherSwatch.jsp';\"/>\r\n </td>\r\n </tr>\r\n</table>\r\n</form>\r\n");
conn.close();
out.write("\r\n</body>\r\n</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 + =
减小字号Ctrl + -
显示快捷键?