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

📄 materialouttable_005fmodify_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 common.*;
import imis_mate.DAO.*;
import imis_mate.bean.*;

public final class MaterialOutTable_005fmodify_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,
      			null, 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\t\t");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_mate/css/style.css\">\r\n\r\n\t");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
      out.write("</head>\r\n\r\n\t");
      out.write("<body background=\"/Imis/imis_mate/images/bg_main.png\">\r\n");
      out.write("<script language=\"JavaScript\" src=\"js/checkdata.js\">");
      out.write("</script>\r\n\t\t");
      out.write("<script language=\"JavaScript\" src=\"js/MaterialOutTable.js\">");
      out.write("</script>\r\n\t\t\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 = \"../imis_mate/MaterialOutTableServlet?pattern=mod\";\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfunction getvalue() {\r\n\t\t    document.form1.action = \"/Imis/servlet/MaterialOutInsertServlet?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\t\r\n\t");
      out.write("</script > \r\n\t\t\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\r\n\r\n");
      //  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.MaterialOutBean!=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");

	
   MateOutBaseBean mbb = new MateOutBaseBean();
   mbb = (MateOutBaseBean)request.getAttribute("MaterialOutBean");

 
          out.write("\r\n");
          out.write("<form method=\"post\" action=\"\"  name=\"form1\" onSubmit=\"return checkValue()\">\r\n  ");
          out.write("<table align=\"center\" width=\"528\" border=\"0\" class=\"ziti\">\r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td width=\"22%\" align=\"right\" bordercolor=\"0\"> 出库单编号");
          out.write("</td>\r\n      ");
          out.write("<td width=\"78%\"> \r\n        ");
          out.write("<input name=\"outNo\" type=\"text\" class=\"text1\" id=\"materialTypeNo\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialOutBean.outNo}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\" readonly=\"readonly\"/>\r\n        ");
          if (_jspx_meth_c_if_1(_jspx_th_c_if_0, pageContext))
            return;
          out.write(" ");
          out.write("<font color=\"#ff0000\">*");
          out.write("</font>");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n \r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"22%\">出库人");
          out.write("</td>\r\n      ");
          out.write("<td>");
          out.write("<input name=\"userCode\" type=\"text\" class=\"text1\" id=\"userCode\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialOutBean.userCode}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\"/>        \r\n      ");
          out.write("<div align=\"right\">");
          out.write("</div>      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"22%\">使用单位");
          out.write("</td>\r\n      ");
          out.write("<td>\r\n      ");
          out.write("<select name=\"useDep\" id=\"useDep\"  class=\"text1\">\r\n        ");
 
		
	    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(mbb.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\t\t");
          out.write("<option value=");
          out.print(deptId);
          out.write(">");
          out.print(deptName);
          out.write("</option>\r\n\t\t");
		
		}
		}
		
          out.write("\r\n         \r\n      ");
          out.write("</select> ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"22%\">责任人");
          out.write("</td>\r\n      ");
          out.write("<td>");
          out.write("<input name=\"managerBy\"  type=\"text\" class=\"text1\" id=\"managerBy\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialOutBean.managerBy}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\"/>        \r\n      ");
          out.write("<div align=\"right\">");
          out.write("</div>      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n\t  ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"22%\">使用人");
          out.write("</td>\r\n      ");
          out.write("<td>");
          out.write("<input name=\"useBy\" type=\"text\"  class=\"text1\" id=\"useBy\" value=\"");
          out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialOutBean.useBy}", java.lang.String.class, (PageContext)pageContext, null, false));
          out.write("\" size=\"20\" maxlength=\"30\"/>        \r\n      ");
          out.write("<div align=\"right\">");
          out.write("</div>      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"22%\">建筑物代号");
          out.write("</td>\r\n      ");
          out.write("<td>        \r\n");
          out.write("\r\n      \t \t\t\t\t\t");
          out.write("<select name=\"buildingNu\" id=\"buildingNu\" class=\"text1\" onchange=\"getvalue()\">\r\n      \t \t\t\t\t\t\t\t");
          out.write("<option value=\"\">无");
          out.write("</option>\r\n\t\t\t\t\t\t\t         ");
 
										String buildingNu = null;
										String buildingName = null;
										HousBuildingAndRoom mate = new HousBuildingAndRoom();
										ArrayList list = mate.getBuildingList();
										Iterator itr = list.iterator();
								        while (itr.hasNext()) {
									     	Hashtable ht = (Hashtable) itr.next();  
											buildingNu = ht.get("BuildingNu").toString();
									       	buildingName = ht.get("BuildingName").toString();
										if(mbb!=null && mbb.getBuildingNu()!=null && mbb.getBuildingNu().equals(buildingNu)){
          out.write("\r\n\t\t\t\t\t\t\t\t\t\t\t");
          out.write("<option value=");
          out.print(buildingNu);
          out.write(" selected>");
          out.print(buildingName);
          out.write("</option>\r\n\t\t\t\t\t\t\t\t\t\t\t");
}
										else
											{
          out.write("\r\n\t\t\t\t\t\t\t\t\t\t\t");
          out.write("<option value=");
          out.print(buildingNu);
          out.write(">");
          out.print(buildingName);
          out.write("</option>\r\n\t\t\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      ");
          out.write("</td>\r\n    ");
          out.write("</tr>\r\n    ");
          out.write("<tr> \r\n      ");
          out.write("<td align=\"right\" width=\"22%\">放置位置房间");
          out.write("</td>\r\n      ");
          out.write("<td align=\"left\">\r\n");
          out.write("\r\n\t\t\t\t\t\t\t");
          out.write("<select name=\"roomNu\" id=\"roomNu\" class=\"text1\">\r\n\t\t\t\t\t\t\t\t");
          out.write("<option value=\"\">无");
          out.write("</option>\r\n\t\t\t\t\t\t\t         ");
 
  										ArrayList roomList = (ArrayList)request.getAttribute("roomList");
										String RoomNu = null;
										if(roomList!=null && roomList.size() != 0) {
											Iterator itr2 = roomList.iterator();
								        while (itr2.hasNext()) {

⌨️ 快捷键说明

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