amentgatherswatch_jsp.java

来自「野生动物系统的JAVA源码, 野生动物系统的JAVA源码」· Java 代码 · 共 133 行

JAVA
133
字号
package org.apache.jsp.operation.gather_005fswatch;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import scout.operation.gather_swatch.*;
import scout.util.*;
import java.util.*;

public final class amentGatherSwatch_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\r\n");

//获取ID
String id = Tools.formatStr(request.getParameter("id"));
scout.operation.gather_swatch.IntGsInfo u = null;//保存信息
if (!id.equals("")) {
  scout.operation.gather_swatch.GsInfo gi = new scout.operation.gather_swatch.GsInfo();
  u = gi.getIdInfo(id);
}

//显示所有的相关数据
scout.operation.gather_swatch.AmentGatherSwatch ament = new scout.operation.gather_swatch.AmentGatherSwatch();
Vector v = ament.getResult(id);
Enumeration e = v.elements();

      out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n  <title>国家陆生野生动物疫源疫病监测信息系统</title>\r\n  <script type=\"text/javascript\" src=\"\"></script>\r\n  <script type=\"text/javascript\" src=\"js/calendar.js\"></script>\r\n  <link href=\"css/input.css\" rel=\"stylesheet\" type=\"text/css\">\r\n  <style type=\"text/css\">\r\n<!--\r\nbody,td,th {\r\n\tfont-family: 楷体_GB2312;\r\n\tfont-size: 14px;\r\n}\r\n.STYLE15 {\r\n\tfont-weight: bold;\r\n\tfont-size: larger;\r\n}\r\n-->\r\n  </style>\r\n</head>\r\n<body>\r\n\r\n<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n  <tr>\r\n    <td height=\"29\"><div align=\"center\" class=\"STYLE15\">野外样本采集</div></td>\r\n  </tr>\r\n</table>\r\n<form name=\"amentform\" action=\"amentGatherSwatchExe.jsp\" method=\"post\">\r\n<table width=\"80%\" height=\"300\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n  <tr>\r\n    <td width=\"18%\" align=\"center\">编号</td>\r\n    <td width=\"30%\"><label>\r\n      <input name=\"number\" type=\"text\" value=\"");
      out.print(u.getNumber());
      out.write("\" />\r\n    </label></td>\r\n    <td width=\"21%\" align=\"center\">采样地点</td>\r\n    <td width=\"31%\"><input name=\"place\" type=\"text\" onBlur=\"checkX()\" value=\"");
      out.print(u.getPlace());
      out.write("\"/>  </tr>\r\n  <tr>\r\n    <td align=\"center\">动物种类</td>\r\n    <td><input name=\"animalClass\" type=\"text\" value=\"");
      out.print(u.getAnimalClass());
      out.write("\"/></td>\r\n    <td align=\"center\">经度</td>\r\n    <td><input name=\"x\" type=\"text\" onBlur=\"checkX()\" value=\"");
      out.print(u.getX());
      out.write("\"/></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\">采样人</td>\r\n    <td><input name=\"workMan\" type=\"text\"  value=\"");
      out.print(u.getWorkMan());
      out.write("\"/></td>\r\n    <td align=\"center\">纬度</td>\r\n    <td><input name=\"y\" type=\"text\" onBlur=\"checkY()\" value=\"");
      out.print(u.getY());
      out.write("\"/></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\">生境特征</td>\r\n    <td><input name=\"habitatCharacter\" type=\"text\" value=\"");
      out.print(u.getHabitatCharacter());
      out.write("\"/></td>\r\n    <td align=\"center\">海拔</td>\r\n    <td><input name=\"z\" type=\"text\" onBlur=\"checkZ()\" value=\"");
      out.print(u.getZ());
      out.write("\"/></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\">是否迁徙</td>\r\n    <td><input type=\"checkbox\" name=\"whetherFlit\" value=\"checkbox\"></td>\r\n    <td align=\"center\">&nbsp;</td>\r\n    <td><label></label></td>\r\n  </tr>\r\n\r\n  <tr>\r\n    <td align=\"center\">抓捕时间</td>\r\n    <td><input name=\"catchTime\" type=\"text\" onFocus=\"calendar()\" value=\"");
      out.print(u.getCatchTime());
      out.write("\"/></td>\r\n    <td align=\"center\">抓捕地点</td>\r\n    <td><input name=\"catchPlace\" type=\"text\" value=\"");
      out.print(u.getCatchPlace());
      out.write("\" /></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\">人工养殖时间</td>\r\n    <td><input name=\"breedDate\" type=\"text\" value=\"");
      out.print(u.getBreedDate());
      out.write("\"/></td>\r\n    <td align=\"center\">人工养殖地点</td>\r\n    <td><input name=\"breedPlace\" type=\"text\" value=\"");
      out.print(u.getBreedPlace());
      out.write("\" /></td>\r\n  </tr>\r\n\r\n  <tr>\r\n    <td align=\"center\">饮料饮水来源</td>\r\n    <td><input name=\"drinkSource\" type=\"text\" value=\"");
      out.print(u.getDrinkSource());
      out.write("\" /></td>\r\n    <td>养殖区附近其它动物</td>\r\n    <td><input name=\"otherAnimal\" type=\"text\" value=\"");
      out.print(u.getOtherAnimal());
      out.write("\"/></td>\r\n  </tr>\r\n  <tr>\r\n    <td>与家畜家禽接触史</td>\r\n    <td><input name=\"whetherTouch\" type=\"text\" value=\"");
      out.print(u.getWhetherTouch());
      out.write("\"/></td>\r\n    <td>野生动物免疫情况</td>\r\n    <td><input name=\"immunityCircs\" type=\"text\" value=\"");
      out.print(u.getImmunityCircs());
      out.write("\" /></td>\r\n  </tr>\r\n  <tr>\r\n    <td>其它动物免疫情况</td>\r\n    <td><input name=\"otherImmunity\" type=\"text\" value=\"");
      out.print(u.getOtherImmunity());
      out.write("\" /></td>\r\n    <td>采样动物处理情况</td>\r\n    <td><input name=\"animalDisposal\" type=\"text\" value=\"");
      out.print(u.getAnimalDisposal());
      out.write("\" /></td>\r\n  </tr>\r\n  <tr>\r\n    <td align=\"center\">负责人</td>\r\n    <td><input type=\"text\" name=\"dutyMan\" value=\"");
      out.print(u.getDutyMan());
      out.write("\"/></td>\r\n    <td>&nbsp;</td>\r\n    <td>&nbsp;</td>\r\n  </tr>\r\n\r\n\r\n  <tr>\r\n    <input type=\"hidden\" name=\"id\" value=\"");
      out.print(id);
      out.write("\">\r\n\r\n    <td height=\"38\" colspan=\"4\">\r\n      <table width=\"80%\" height=\"59\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#99CC99\">\r\n        <tr>\r\n          <td width=\"20%\" height=\"36\" bgcolor=\"#CEFFCE\">样本编号</td>\r\n          <td width=\"20%\" bgcolor=\"#CEFFCE\">样本类别</td>\r\n          <td width=\"20%\" bgcolor=\"#CEFFCE\">样本数量</td>\r\n          <td width=\"20%\" bgcolor=\"#CEFFCE\">包装种类</td>\r\n        </tr>\r\n\r\n        ");

        //开始显示读取出来的数据。
        int j = 1;
        while (e.hasMoreElements()) {
          Object[] obj = (Object[])e.nextElement();
          j++;
          
      out.write("\r\n\r\n          <tr>\r\n            <td height=\"16\"><label>\r\n              <input name=\"aid\" type=\"hidden\"\tvalue=\"");
      out.print(obj[4]);
      out.write("\">\r\n              <input name=\"snumber\" type=\"text\" size=\"12\" value=\"");
      out.print(obj[0]);
      out.write("\">\r\n\t</label></td>\r\n\t\t<td><input name=\"swatchClass\" type=\"text\" size=\"10\" value=\"");
      out.print(obj[1]);
      out.write("\"></td>\r\n\t\t<td><input name=\"swatchNumber\" type=\"text\" size=\"12\" value=\"");
      out.print(obj[2]);
      out.write("\"></td>\r\n\t\t<td><input name=\"packClass\" type=\"text\" size=\"10\" value=\"");
      out.print(obj[3]);
      out.write("\"></td>\r\n\t</tr>\r\n          ");
}
      out.write("\r\n      </table>\t</td>\r\n  </tr>\r\n</table>\r\n\r\n\r\n<table width=\"80%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n  <tr>\r\n    <td width=\"33%\">&nbsp;</td>\r\n    <td width=\"33%\">&nbsp;</td>\r\n    <td width=\"33%\">&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <td>&nbsp;</td>\r\n    <td><label>\r\n      <input type=\"submit\" name=\"Submit\" value=\"提交\" >\r\n      <input type=\"button\" name=\"Submit\" value=\"返回\" onClick=\"javascript:javascript:window.location.href='gatherSwatchList.jsp';\">\r\n</label></td>\r\n<td>&nbsp;</td>\r\n  </tr>\r\n</table>\r\n</form>\r\n<p>&nbsp;</p>\r\n\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 + -
显示快捷键?