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

📄 materialtypetable_005fupdate_jsp.java

📁 JSP移动商品管理平台源代码.........
💻 JAVA
字号:
package org.apache.jsp.imis_005fmate;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import imis_mate.DAO.*;
import imis_mate.bean.*;

public final class MaterialTypeTable_005fupdate_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;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;   charset=GB2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error.jsp", true, 8192, true);
      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\t");
      out.write("<head>\r\n\t\t");
      out.write("<title>修改物品类型");
      out.write("</title>\r\n\t\t");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_mate/css/style.css\">\r\n\t\t\r\n\t\t ");

   			MaterialTypeBean myb = new MaterialTypeBean();
 			myb = (MaterialTypeBean)request.getAttribute("MaterialType");
		
      out.write("\r\n\t\t\r\n\t");
      out.write("</head>\r\n\t");
      out.write("<script type=\"text/javascript\" > \r\n\t\tfunction NewPageSubmit() {\r\n\t\t\tform1.action = \"../servlet/MaterialTypeServlet?pattern=newPage\";\r\n\t\t\tform1.onsubmit=\"\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\tfunction UpdateSubmit(){\r\n\t\t\task = confirm(\"你确定修改该记录吗?\");\r\n\t\t\tif(ask){\r\n\t\t\t\tform1.action = \"../servlet/MaterialTypeServlet?pattern=update\";\r\n\t\t\t\t\tparent.iframe_elec_tree.location.reload(); \r\n\t\t\t} \r\n\t\t} \r\n\t\tfunction DeleteSubmit(){\r\n\t\t\task = confirm(\"你确定删除该记录吗?\");\r\n\t\t\tif(ask){\r\n\t\t\t\tform1.onsubmit=\"\";\r\n\t\t\t\tform1.action = \"../servlet/MaterialTypeServlet?pattern=delete\";\r\n\t\t\t\tparent.iframe_elec_tree.location.reload();  //刷新左半边的树 框架名称在menu页面内\r\n\t\t\t} \t\r\n\t\t} \r\n\t\t function preload() { \r\n\t\t\tform1.action = \"../servlet/MaterialServlet?pattern=update\";\r\n\t\t\tparent.iframe_elec_tree.location.reload();  //刷新左半边的树 框架名称在menu页面内\r\n\t\t} \r\n\t");
      out.write("</script > \r\n\t");
      out.write("<body background=\"/Imis/imis_mate/images/bg_main.png\">\r\n\t");
      out.write("<table width=\"100%\"  border=\"0\" background=\"/Imis/imis_mate/images/bg_main2.png\">\r\n\t  ");
      out.write("<tr class=\"tubiao\">\r\n\t    ");
      out.write("<td>修改物品类型");
      out.write("</td>\r\n\t  ");
      out.write("</tr>\r\n\t");
      out.write("</table>\r\n");
      out.write("\r\n\t\t\t");
      out.write("<script language=\"JavaScript\" src=\"js/checkdata.js\">");
      out.write("</script>\r\n\t\t\t");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/MaterialType.js\">");
      out.write("</script>\r\n\t\r\n\t\t");
      out.write("<form method=\"post\" action=\"\" name=\"form1\" onSubmit=\"return checkValue()\">\r\n\t\t\t");
      out.write("<table align=\"center\" width=\"500\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td width=\"20%\" align=\"right\">物品类型号:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td width=\"80%\">");
      out.write("<input name=\"materialTypeNo\" type=\"text\" class=\"text1\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialType.materialTypeNo}", java.lang.String.class, (PageContext)pageContext, null, false));
      out.write("\" size=\"20\" maxlength=\"20\" readonly=\"readonly\"/>\r\n\t\t\t\t\t");
      out.write("<font color=\"#ff0000\">*");
      out.write("</font>");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\t\t\t\t\t\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">物品类型名称:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>");
      out.write("<input name=\"materialTypeName\" type=\"text\" class=\"text1\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialType.materialTypeName}", java.lang.String.class, (PageContext)pageContext, null, false));
      out.write("\" size=\"20\" maxlength=\"50\"/>\r\n\t\t\t\t\t");
      out.write("<font color=\"#ff0000\">*");
      out.write("</font>");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">物品父类型号:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>\r\n");
      out.write("\r\n\t\t\t\t\t\t\t\t\t\t\t");
      out.write("<select name=\"materialPaTypeNo\" id=\"buyDep\" class=\"text1\">\r\n\t\t\t\t\t");
 
							String materialTypeNo = "";
							String materialTypeName = "";
							MaterialDAO mate = new MaterialDAO();
							ArrayList list = mate.getPATYPENO();
							Iterator itr = list.iterator();
							while (itr.hasNext()) {
							Hashtable ht = (Hashtable) itr.next();  
							materialTypeNo = ht.get("MaterialTypeNo").toString();
							materialTypeName = ht.get("MaterialTypeName").toString(); 
							if(myb != null && myb.getMaterialPaTypeNo() != null) {
								if(myb.getMaterialPaTypeNo().equals(materialTypeNo)){
      out.write("\r\n\t\t\t\t\t\t\t\t\t");
      out.write("<option value=");
      out.print(materialTypeNo);
      out.write(" selected>");
      out.print(materialTypeName);
      out.write("</option>\r\n\t\t\t\t\t\t\t\t");
}
							else {
      out.write("\r\n\t\t\t\t\t\t\t\t");
      out.write("<option value=");
      out.print(materialTypeNo);
      out.write(">");
      out.print(materialTypeName);
      out.write("</option>\r\n\t\t\t\t\t\t\t");
}	
							}}
						
      out.write("\r\n\t\t\t\t\t\t ");
      out.write("</select>\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">物品类型单位:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>");
      out.write("<input name=\"maUnit\" type=\"text\" class=\"text1\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialType.maUnit}", java.lang.String.class, (PageContext)pageContext, null, false));
      out.write("\" size=\"20\" maxlength=\"20\"/>");
      out.write("</td>\r\n\t\t\t\t\t\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">库存底限:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>");
      out.write("<input name=\"inMin\" type=\"text\" class=\"text1\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialType.inMin}", java.lang.String.class, (PageContext)pageContext, null, false));
      out.write("\" size=\"10\" maxlength=\"9\"/>\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">库存上限:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>");
      out.write("<input name=\"inMax\" type=\"text\" class=\"text1\" value=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialType.inMax}", java.lang.String.class, (PageContext)pageContext, null, false));
      out.write("\" size=\"10\" maxlength=\"9\"/>\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td align=\"right\">备&nbsp;&nbsp;&nbsp;&nbsp;注:");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td>");
      out.write("<textarea name=\"reMark\" rows=\"3\" cols=\"17\" class=\"textarea1\"/>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialType.reMark}", java.lang.String.class, (PageContext)pageContext, null, false));
      out.write("</textarea>");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>");
      out.write("<tr>\r\n\t\t\t\t\t\t");
      out.write("<td>&nbsp;");
      out.write("</td>\r\n\t\t\t\t\t\t");
      out.write("</tr>\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td>");
      out.write("</td>\r\n\t\t\t\t\t");
      out.write("<td align=\"left\">\r\n\t\t\t\t\t");
      out.write("<input type=\"submit\" name=\"Submit\" value=\"添  加\" onclick=\"NewPageSubmit()\" class=\"anniu\"/>\r\n\t\t\t\t\t");
      out.write("<input type=\"submit\" name=\"Submit\" value=\"修  改\" onclick=\"UpdateSubmit()\" class=\"anniu\"/>\r\n\t\t\t\t\t");
      out.write("<input type=\"submit\" name=\"Submit\" value=\"删  除\" onclick=\"DeleteSubmit()\" class=\"anniu\"/>\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\t\t\t\t\r\n\t\t\t");
      out.write("</table>\r\n\t\t");
      out.write("</form>\r\n");
      out.write("\r\n\t ");
      out.write("</body>\r\n\t\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 (pageContext != null) pageContext.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
}

⌨️ 快捷键说明

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