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

📄 materialchangetable_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.sql.*;
import common.*;
import java.util.*;
import imis_mate.bean.MaterialChangeBean;
import imis_mate.DAO.*;

public final class MaterialChangeTable_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");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>物品变更信息");
      out.write("</title>\r\n");
      out.write("</head>\r\n\r\n");
      out.write("<body background=\"/Imis/imis_mate/images/bg_main.png\">\r\n\r\n\t ");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/checkdata.js\">");
      out.write("</script>\r\n\t ");
      out.write("<script language=\"JavaScript\" src=\"/Imis/imis_mate/js/MaterialChangeTable.js\">");
      out.write("</script>\r\n\t ");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_mate/css/style.css\">\r\n\t \t");
      out.write("<script type=\"text/javascript\" > \r\n\t\tfunction NewPageSubmit() {\r\n\t\t\t\tform1.action = \"../servlet/MaterialChangeServlet?pattern=newPage\";\r\n\t\t\t\tform1.onsubmit = \"\";\t\r\n\t\t}\r\n\t\tfunction UpdateSubmit(){ \r\n");
      out.write("\r\n\t\t\t\r\n\t\t\t\task = confirm(\"你确定修改该记录吗?\");\r\n\t\t\t\r\n\t\t\tif(ask){\r\n\t\t\t\tif(checkValue()){\r\n\t\t\t\t\tform1.action = \"../servlet/MaterialChangeServlet?pattern=update\";\r\n\t\t  \t\t\treturn true;\r\n\t\t  \t\t\t}\r\n\t\t  \t\telse{\r\n\t\t  \t\t\treturn false;\r\n\t\t  \t\t\t}\r\n\t\t\t\t}\r\n\t\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/MaterialChangeServlet?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}\t\r\n\t\t} \r\n\t\tfunction getvalue() {\r\n\t\t    document.form1.action = \"/Imis/servlet/MaterialChangeServlet?pattern=getValue&&pag=update\";\r\n\t\t    document.form1.target = \"_self\";\r\n\t\t    document.form1.submit();\r\n\t\t}\r\n\t\tfunction windowClose() {\r\n\t\t//采购入库\r\n\t\t\tform1.onsubmit = \"\";\r\n\t\t\tform1.action = \"/Imis/servlet/MaterialChangeServlet?pattern=windowClose\"\r\n\t\t\t\r\n\t\t}\r\n\t");
      out.write("</script > \r\n\r\n\t");
      out.write("<table width=\"100%\"  border=\"0\" background=\"/Imis/imis_mate/images/bg_main2.png\">\r\n\t  ");
      out.write("<tr>\r\n\t    ");
      out.write("<td>");
      out.write("<span class=\"tubiao\">物品变更信息");
      out.write("</span>");
      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.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");
          out.write("<form method=\"post\" action=\"\"  name=\"form1\" onSubmit=\"return checkValue()\">\r\n  ");
          out.write("<table align=\"center\" width=\"538\" border=\"0\" class=\"ziti\">\r\n    ");
          out.write("<tr class=\"ziti\">\r\n     ");
          out.write("<td align=\"right\" width=\"18%\">变更编号");
          out.write("</td>\r\n      ");
          out.write("<td width=\"35%\">");
          out.write("<input name=\"changeID\" type=\"text\"  class=\"text1\" id=\"changeID\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.changeID}", 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=\"14%\">");
          out.write("<div align=\"right\">更变类型");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"33%\">");
          out.write("<select name=\"changeType\" id=\"changeType\" class=\"text1\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.changeType}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\">\r\n\t\t\t\t");
          if (_jspx_meth_c_if_1(_jspx_th_c_if_0, pageContext))
            return;
          out.write("\r\n\t\t\t\t");
          if (_jspx_meth_c_if_2(_jspx_th_c_if_0, pageContext))
            return;
          out.write("\r\n\t\t\t\t");
          if (_jspx_meth_c_if_3(_jspx_th_c_if_0, pageContext))
            return;
          out.write("\r\n\t\t\t\t");
          if (_jspx_meth_c_if_4(_jspx_th_c_if_0, pageContext))
            return;
          out.write("\r\n            ");
          out.write("</select>");
          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=\"18%\">原出库ID");
          out.write("</td>\r\n      ");
          out.write("<td width=\"35%\">");
          out.write("<input name=\"outNoId\" type=\"text\"  class=\"text1\" id=\"outNoId\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.outNoId}", 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=\"14%\">");
          out.write("<div align=\"right\">");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"33%\">&nbsp;      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr>\r\n      ");
          out.write("<td align=\"right\" width=\"18%\">更变数量");
          out.write("</td>\r\n      ");
          out.write("<td width=\"35%\">");
          out.write("<input name=\"outCount\" type=\"text\"  class=\"text1\" id=\"outCount\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.outCount}", 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=\"14%\">");
          out.write("<div align=\"right\">更变日期");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"33%\">\r\n      ");
          out.write("<input name=\"outDate\" id=\"outDate\" size=\"10\" maxlength=\"10\"\r\n\t\t\t\t\t\t\ttype=\"text\" class=\"text1\"\r\n\t\t\t\t\t\t readonly=\"readonly\" \t value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.outDate}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\"/>");
          out.write("<font color=\"#ff0000\">*");
          out.write("</font>\r\n     \r\n");
          out.write("\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr>\r\n      ");
          out.write("<td align=\"right\" width=\"18%\"> 更变人");
          out.write("</td>\r\n      ");
          out.write("<td width=\"35%\">");
          out.write("<input name=\"userCode\" type=\"text\"  class=\"text1\" id=\"userCode\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.userCode}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\" readonly=\"readonly\"/>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"14%\">");
          out.write("<div align=\"right\">");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"33%\">&nbsp;      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n\t");
          out.write("<tr>\r\n      ");
          out.write("<td align=\"right\" width=\"18%\"> 原部门 ");
          out.write("</td>\r\n      ");
          out.write("<td width=\"35%\">\r\n\r\n        ");
          out.write("<select name=\"oraDep\" id=\"oraDep\"  class=\"text1\" >\r\n       ");
 

		MaterialChangeBean mate = (MaterialChangeBean)request.getAttribute("mate");
		if(mate!=null)
	 {   int  deptId = 0;
		String deptName = null;
		DepartmentsBean describe1 = new DepartmentsBean();
		ArrayList list1 = describe1.getDepts();
		Iterator itr1 = list1.iterator();
        while (itr1.hasNext()) {
     	Hashtable ht = (Hashtable) itr1.next();  
		deptId      =  Integer.parseInt(ht.get("deptId").toString());
       	deptName   =  ht.get("deptName").toString(); 
       
		if(mate.getOraDep()==deptId){
          out.write("\r\n\r\n\t\t");
          out.write("<option value=");
          out.print(deptId);
          out.write(" selected>");
          out.print(deptName);
          out.write("</option>\r\n\t\t\r\n\t\t");
}
		else
		{
          out.write("\r\n");
          out.write("\r\n\t\t");
		
		}
		}}
		
		
          out.write("\r\n        ");
          out.write("</select>\r\n        \r\n        ");
          out.write("</td>\r\n         ");
          out.write("<td align=\"right\" width=\"18%\">责任人");
          out.write("</td>\r\n      ");
          out.write("<td width=\"35%\">");
          out.write("<input name=\"managerBy\" type=\"text\"  class=\"text1\" id=\"managerBy\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.managerBy}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\"/>");
          out.write("</td>\r\n      \r\n     \r\n    ");
          out.write("</tr>\r\n       ");
          out.write("<tr>\r\n        ");
          out.write("<td width=\"14%\">");
          out.write("<div align=\"right\">转入部门");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"33%\">\r\n    \r\n    \t ");
          out.write("<select name=\"useDep\" id=\"useDep\"  class=\"text1\" >\r\n    \t ");
          out.write("<option value=\"\">无");
          out.write("</option>\r\n       ");
 

		MaterialChangeBean mate1 = (MaterialChangeBean)request.getAttribute("mate");
		if(mate1!=null)
	 {   int  deptId = 0;
		String deptName = null;
		DepartmentsBean describe1 = new DepartmentsBean();
		ArrayList list1 = describe1.getDepts();
		Iterator itr1 = list1.iterator();
        while (itr1.hasNext()) {
     	Hashtable ht = (Hashtable) itr1.next();  
		deptId      =  Integer.parseInt(ht.get("deptId").toString());
       	deptName   =  ht.get("deptName").toString(); 
       
		if(mate.getUseDep()==deptId){
          out.write("\r\n\r\n\t\t");
          out.write("<option value=");
          out.print(deptId);
          out.write(" selected>");
          out.print(deptName);
          out.write("</option>\r\n\t\t\r\n\t\t");
}
		else
		{
          out.write("\r\n");
          out.write("\r\n\t\t");
		
		}
		}
		}
		
		
          out.write("\r\n        ");
          out.write("</select>\r\n      ");
          out.write("</td>\r\n     ");
          out.write("<td width=\"14%\">");
          out.write("<div align=\"right\">使用人");
          out.write("</div>");
          out.write("</td>\r\n      ");
          out.write("<td width=\"33%\">");
          out.write("<input name=\"useBy\" type=\"text\"  class=\"text1\" id=\"useBy\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.mate.useBy}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\" readonly=\"readonly\"/>\r\n      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr>\r\n      ");
          out.write("<td align=\"right\" width=\"18%\">建筑物代号");
          out.write("</td>\r\n      ");
          out.write("<td>\r\n");
          out.write("\r\n              \t\t\t");
          out.write("<select name=\"buildingNu\" id=\"buildingNu\" class=\"text1\" onchange=\"getvalue()\">\r\n              \t\t\t\t");

⌨️ 快捷键说明

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