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

📄 materialcheck_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 MaterialCheck_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");

   			MaterialCheckBean mcb = new MaterialCheckBean();
 			mcb = (MaterialCheckBean)request.getAttribute("mateCheck");
		
      out.write("\r\n\t\r\n\t\t");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_mate/css/style.css\">\r\n\t\t ");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/checkdata.js\">");
      out.write("</script>\r\n\t\t ");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/MaterialCheckTable.js\">");
      out.write("</script>\r\n\t\r\n\t");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GB2312\">\r\n\r\n\t\r\n\t\r\n\t");
      out.write("</head>\r\n\t");
      out.write("<script type=\"text/javascript\" > \r\n\t\tfunction NewPageSubmit() {\r\n");
      out.write("\r\n\t\t\tform1.action = \"../servlet/MaterialCheckServlet?pattern=insertSearchPag\"\r\n\t\t\tform1.onsubmit=\"\";\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/MaterialCheckServlet?pattern=update\";\r\n\t\t\t}\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.action = \"../servlet/MaterialCheckServlet?pattern=delete\";\r\n\t\t\t\tparent.iframe_elec_tree.location.reload();  //刷新左半边的树 框架名称在menu页面内\r\n\t\t\t\tform1.onsubmit=\"\";\r\n\t\t\t}\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\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.mateCheck!=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\r\n");
          out.write("<form method=\"post\" action=\"\" name=\"form1\">\r\n  ");
          out.write("<table align=\"center\" width=\"720\" border=\"0\" class=\"ziti\">\r\n    \r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"13%\"  height=\"20\">盘点编号");
          out.write("</td>\r\n      ");
          out.write("<td width=\"24%\" height=\"20\">");
          out.write("<input name=\"checkID\" type=\"text\" class=\"text1\" id=\"attPerson\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mateCheck.checkID}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"10\" maxlength=\"9\" readonly=\"readonly\"/>\r\n      ");
          out.write("<font color=\"#ff0000\">*");
          out.write("</font>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"12%\" height=\"20\">");
          out.write("<div align=\"right\">库存编号");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"51%\" height=\"20\">");
          out.write("<input name=\"materialNo\" type=\"text\" class=\"text1\" id=\"attPerson\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mateCheck.materialNo}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"10\" maxlength=\"9\" readonly=\"readonly\"/>\r\n      ");
          out.write("<font color=\"#ff0000\">*");
          out.write("</font>");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"13%\"  height=\"20\"> 物品名称");
          out.write("</td>\r\n      ");
          out.write("<td width=\"24%\" height=\"20\">");
          out.write("<input name=\"materialName\" type=\"text\" class=\"text1\" id=\"materialTypeName\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mateCheck.materialName}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"50\" readonly=\"readonly\"/>\r\n      ");
          out.write("<font color=\"#ff0000\">*");
          out.write("</font>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"12%\" height=\"20\">");
          out.write("<div align=\"right\"> 物品类型");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"51%\" height=\"20\">\r\n");
          out.write("\r\n\t\t");
          out.write("<select name=\"materialTypeNo\" id=\"buyDep\" class=\"text1\" disabled=\"disabled\">\r\n\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");
          out.write("<option value=");
          out.print(materialTypeNo);
          out.write(" selected>");
          out.print(materialTypeName);
          out.write("</option>\r\n\t\t\t\t\t\t");
}
							else
						{
          out.write("\r\n\t\t\t\t\t\t\t");
          out.write("<option value=");
          out.print(materialTypeNo);

⌨️ 快捷键说明

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