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

📄 material_005fupdate_jsp.java

📁 JSP移动商品管理平台源代码.........
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
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 Material_005fupdate_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;

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

  public void _jspInit() {
    _jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_c_if_test.release();
  }

  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\r\n");
      out.write("<html>\r\n\t");
      out.write("<head>\r\n\r\n\r\n\t\t");
      out.write("<title>入库信息修改");
      out.write("</title>\r\n\t\t");

   			MaterialBean mcb = new MaterialBean();
 			mcb = (MaterialBean)request.getAttribute("mate");
		
      out.write("\r\n\r\n\t\t");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\t\t");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/checkdata.js\">");
      out.write("</script>\r\n\t\r\n\t\t");
      out.write("<link rel=\"stylesheet\" type=\"text/css\"\r\n\t\t\thref=\"/Imis/imis_mate/css/style.css\">\r\n\r\n\t\t");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/MaterialTable.js\">");
      out.write("</script>\r\n\t");
      out.write("</head>\r\n\t");
      out.write("<script type=\"text/javascript\"> \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/MaterialServlet?pattern=update\";\r\n\t\t\t\tparent.iframe_elec_tree.location.reload();  \r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t} \r\n\t\tfunction 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\r\n\t");
      out.write("<body background=\"/Imis/imis_mate/images/bg_main.png\">\r\n\t\t");
      out.write("<table width=\"100%\" class=\"tubiao\" border=\"0\"\r\n\t\t\t\tbackground=\"/Imis/imis_mate/images/bg_main2.png\">\r\n\t\t\t\t");
      out.write("<tr>\r\n\t\t\t\t\t");
      out.write("<td>\r\n\t\t\t\t\t\t入库信息修改\r\n\t\t\t\t\t");
      out.write("</td>\r\n\t\t\t\t");
      out.write("</tr>\r\n\t\t\t");
      out.write("</table>\r\n\t\t");
      //  c:if
      org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
      _jspx_th_c_if_0.setPageContext(pageContext);
      _jspx_th_c_if_0.setParent(null);
      _jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate!=null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
      int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
      if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
        do {
          out.write("\r\n\t\t\t\r\n\t\t\t");
          out.write("<h1 align=\"left\">");
          out.write("</h1>\r\n\t\t\t");
          out.write("<form method=\"post\"\r\n\t\t\t\taction=\"../servlet/MaterialServlet?pattern=select&page=update\">\r\n\t\t\t\t");
          out.write("<table align=\"center\" width=\"545\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t\t");
          out.write("<tr>\r\n\t\t\t\t\t\t");
          out.write("<td width=\"16%\" align=\"center\">\r\n\t\t\t\t\t\t\t库存编号:\r\n\t\t\t\t\t\t");
          out.write("</td>\r\n\t\t\t\t\t\t");
          out.write("<td width=\"34%\">\r\n\t\t\t\t\t\t\t");
          out.write("<input type=\"text\" name=\"MaterialNo\" class=\"text1\" />\r\n\t\t\t\t\t\t");
          out.write("</td>\r\n\t\t\t\t\t\t");
          out.write("<td width=\"50%\" align=\"left\">\r\n\t\t\t\t\t\t\t");
          out.write("<input type=\"submit\" name=\"Submit2\" value=\"查  询\" class=\"anniu\" />\r\n\t\t\t\t\t\t");
          out.write("</td>\r\n\t\t\t\t\t");
          out.write("</tr>\r\n\r\n\t\t\t\t");
          out.write("</table>\r\n\t\t\t");
          out.write("</form>\r\n\t\t\t");
          if (_jspx_meth_c_if_1(_jspx_th_c_if_0, pageContext))
            return;
          out.write("\r\n\t\t\t");
          //  c:if
          org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_2 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
          _jspx_th_c_if_2.setPageContext(pageContext);
          _jspx_th_c_if_2.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
          _jspx_th_c_if_2.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate!=null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
          int _jspx_eval_c_if_2 = _jspx_th_c_if_2.doStartTag();
          if (_jspx_eval_c_if_2 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            do {
              out.write("\r\n\t\t\t\t");
              out.write("<br />\r\n\r\n\t\t\t\t");
              out.write("<form method=\"post\" action=\"\" name=\"form1\"\r\n\t\t\t\t\tonSubmit=\"return checkValue()\">\r\n\t\t\t\t\t");
              out.write("<table align=\"left\" width=\"565\" border=\"0\" class=\"ziti\"\r\n\t\t\t\t\t\tbackground=\"../imis_mate/images/bg_main.png\">\r\n\r\n\r\n\t\t\t\t\t\t");
              out.write("<tr>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"24%\" align=\"right\">\r\n\t\t\t\t\t\t\t\t库存编号\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"29%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("<input name=\"materialNo\" type=\"text\" class=\"text1\"\r\n\t\t\t\t\t\t\t\t\tvalue=\"");
              out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.materialNo}", java.lang.String.class, (PageContext)pageContext, null, false));
              out.write("\" size=\"10\" maxlength=\"9\"\r\n\t\t\t\t\t\t\t\t\treadonly=\"readonly\" />\r\n\t\t\t\t\t\t\t\t");
              out.write("<font color=\"#ff0000\">*");
              out.write("</font>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t");
              out.write("</tr>\r\n\t\t\t\t\t\t");
              out.write("<tr>\r\n\t\t\t\t\t\t\t");
              out.write("<td align=\"right\" width=\"24%\">\r\n\t\t\t\t\t\t\t\t物品名称\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"29%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("<input name=\"materialTypeName\" type=\"text\" class=\"text1\"\r\n\t\t\t\t\t\t\t\t\tvalue=\"");
              out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.materialTypeName}", java.lang.String.class, (PageContext)pageContext, null, false));
              out.write("\" size=\"20\"\r\n\t\t\t\t\t\t\t\t\tmaxlength=\"50\" readonly=\"readonly\"/>\r\n\t\t\t\t\t\t\t\t");
              out.write("<font color=\"#ff0000\">*");
              out.write("</font>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"13%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("<div align=\"right\">\r\n\t\t\t\t\t\t\t\t\t物品类型\r\n\t\t\t\t\t\t\t\t");
              out.write("</div>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"34%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("\r\n\t\t\t\t\t\t\t\t");
              out.write("<select name=\"materialTypeNo\" id=\"materialTypeNo\" class=\"text1\">\r\n\t\t\t\t\t\t\t\t\t");

										String materialTypeNo = null;
										String materialTypeName = null;
										MaterialDAO mate = new MaterialDAO();
										ArrayList list = mate.getMaterial();
										Iterator itr = list.iterator();
										while (itr.hasNext()) {
											Hashtable ht = (Hashtable) itr.next();
											materialTypeNo = ht.get("MaterialTypeNo").toString();
											materialTypeName = ht.get("MaterialTypeName").toString();
										if(mcb != null && mcb.getMaterialTypeNo() != null) {
											if (mcb.getMaterialTypeNo().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\t");

									} else {
									
              out.write("\r\n\t\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\t\t");

										}
										}}
									
              out.write("\r\n\t\t\t\t\t\t\t\t");
              out.write("</select>\r\n\t\t\t\t\t\t\t\t");
              out.write("<font color=\"#ff0000\">*");
              out.write("</font>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t");
              out.write("</tr>\r\n\t\t\t\t\t\t");
              out.write("<tr>\r\n\t\t\t\t\t\t\t");
              out.write("<td align=\"right\" width=\"24%\">\r\n\t\t\t\t\t\t\t\t型号\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"29%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("<input name=\"maModel\" type=\"text\" class=\"text1\"\r\n\t\t\t\t\t\t\t\t\tvalue=\"");
              out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.maModel}", java.lang.String.class, (PageContext)pageContext, null, false));
              out.write("\" size=\"20\" maxlength=\"50\" readonly=\"readonly\"/>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"13%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("<div align=\"right\">\r\n\t\t\t\t\t\t\t\t\t品牌\r\n\t\t\t\t\t\t\t\t");
              out.write("</div>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t\t");
              out.write("<td width=\"34%\">\r\n\t\t\t\t\t\t\t\t");
              out.write("<input name=\"maBrand\" type=\"text\" class=\"text1\"\r\n\t\t\t\t\t\t\t\t\tvalue=\"");
              out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.maBrand}", java.lang.String.class, (PageContext)pageContext, null, false));
              out.write("\" size=\"20\" maxlength=\"50\" readonly=\"readonly\"/>\r\n\t\t\t\t\t\t\t");
              out.write("</td>\r\n\t\t\t\t\t\t");
              out.write("</tr>\r\n\t\t\t\t\t\t");

⌨️ 快捷键说明

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