📄 materialbuytable_005fmodify_jsp.java
字号:
out.write("<td width=\"36%\">\r\n\r\n ");
out.write("<select name=\"applyDep\" id=\"applyDep\" class=\"text1\">\r\n ");
deptId = 0;
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.getApplyDep()==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 ");
out.write("</select>\r\n \r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n\t");
out.write("<tr> \r\n \r\n\t ");
out.write("<td align=\"right\" width=\"18%\">使用人");
out.write("</td>\r\n ");
out.write("<td width=\"30%\"> \r\n ");
out.write("<input type=\"text\" name=\"useBy\" class=\"text1\" value = \"");
out.print(mbb.getUseBy() );
out.write("\" size=\"20\" maxlength=\"30\" />\r\n ");
out.write("</td>\r\n\t ");
out.write("<td align=\"right\" width=\"16%\">使用部门");
out.write("</td>\r\n ");
out.write("<td width=\"36%\"> \r\n \r\n\r\n ");
out.write("<select name=\"useDep\" id=\"useDep\" class=\"text1\">\r\n ");
deptId = 0;
deptName = null;
DepartmentsBean describe2 = new DepartmentsBean();
ArrayList list2 = describe2.getDepts();
Iterator itr2 = list2.iterator();
while (itr2.hasNext()) {
Hashtable ht = (Hashtable) itr2.next();
deptId = Integer.parseInt(ht.get("deptId").toString());
deptName = ht.get("deptName").toString();
if(mbb.getUseDep()==deptId){
out.write("\r\n\t\t");
out.write("<option value=");
out.print(deptId);
out.write(" selected>");
out.print(deptName);
out.write("</option>\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>\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n\t\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("<select name=\"supplyNo\" id=\"supplyNo\" class=\"text1\">\r\n ");
SupplyInfoDAO dao = new SupplyInfoDAO();
ArrayList list5 = dao.getSupplyInfo();
Iterator it = list5.iterator();
//System.out.println(list5.size());
while(it.hasNext()){
SupplyInfoBean sb = (SupplyInfoBean)it.next();
if(mbb.getSupplyNo()==sb.getSupplyNo()){
out.write("\r\n\t\t");
out.write("<option value=");
out.print(sb.getSupplyNo());
out.write(" selected>");
out.print(sb.getSupplyName());
out.write("</option>\r\n\t\t");
}else{
out.write("\r\n\t\t");
out.write("<option value=");
out.print(sb.getSupplyNo());
out.write(">");
out.print(sb.getSupplyName());
out.write("</option>\r\n\t\t");
}
}
out.write("\r\n ");
out.write("</select>\r\n \r\n ");
out.write("</td> \r\n\t \r\n ");
out.write("<td align=\"right\" width=\"16%\">采购批准人");
out.write("</td>\r\n ");
out.write("<td> \r\n ");
out.write("<input type=\"text\" name=\"perBy\" class=\"text1\" value=\"");
out.print(mbb.getPerBy() );
out.write("\" size=\"20\" maxlength=\"30\"/>\r\n ");
out.write("</td> \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("<textarea name=\"buyFor\" rows=\"5\" cols=\"20\" class=\"textarea1\" >");
out.print(mbb.getBuyFor() );
out.write("</textarea>\r\n ");
out.write("</td> \r\n\t ");
out.write("<td align=\"right\" width=\"16%\">单据摘要");
out.write("</td>\r\n ");
out.write("<td> \r\n ");
out.write("<textarea name=\"remark\" rows=\"5\" cols=\"20\" class=\"textarea1\" >");
out.print(mbb.getReMark() );
out.write("</textarea>\r\n ");
out.write("</td> ");
out.write("</tr>\r\n\t ");
out.write("<tr>\r\n\t\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t\t\t");
out.write("</tr>\r\n ");
out.write("<tr> \r\n ");
out.write("<td width=\"18%\">");
out.write("</td>\r\n ");
out.write("<td colspan=\"3\" align=\"left\"> \r\n ");
out.write("<input type=\"submit\" name=\"Submit\" value=\"修 改\" onclick=\"UpdateSubmit()\" class=\"anniu\"/> ");
out.write("<a href=\"../imis_mate/MaterialBuyDetail_insertupdate.jsp?buyNo=");
out.print(mbb.getBuyNo());
out.write("\">添加明细");
out.write("</a> ");
out.write("<br>");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("</table>\r\n");
out.write("</form>\r\n ");
int evalDoAfterBody = _jspx_th_c_if_2.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_2);
out.write("\r\n ");
out.write("</body>\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);
}
}
private boolean _jspx_meth_c_if_0(PageContext pageContext)
throws Throwable {
JspWriter out = pageContext.getOut();
// 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.success != 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("<h3>\r\n ");
out.write("<div> ");
out.write("<br> ");
out.write("<span class=\"ziti\"> \r\n\t\t ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.success}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("</span>");
out.write("</div>\r\n ");
out.write("</h3>\r\n\t\t\r\n\t\t");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_if_1(PageContext pageContext)
throws Throwable {
JspWriter out = pageContext.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_1 = (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_1.setPageContext(pageContext);
_jspx_th_c_if_1.setParent(null);
_jspx_th_c_if_1.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.MaterialBuyBean==null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
int _jspx_eval_c_if_1 = _jspx_th_c_if_1.doStartTag();
if (_jspx_eval_c_if_1 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n\t\t ");
int evalDoAfterBody = _jspx_th_c_if_1.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_1);
return false;
}
private boolean _jspx_meth_c_if_3(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_2, PageContext pageContext)
throws Throwable {
JspWriter out = pageContext.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_3 = (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_3.setPageContext(pageContext);
_jspx_th_c_if_3.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_2);
_jspx_th_c_if_3.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.UserIdExisted != null}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
int _jspx_eval_c_if_3 = _jspx_th_c_if_3.doStartTag();
if (_jspx_eval_c_if_3 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write(" ");
out.write("<img src=\"/Imis_elec/images/error.gif\"/>");
out.write("<font color=\"red\"> \r\n ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.UserIdExisted}", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("</font> ");
int evalDoAfterBody = _jspx_th_c_if_3.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_3);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -