📄 materialbuytable_005fdelete_jsp.java
字号:
package org.apache.jsp.imis_005fmate;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import cmis.common.*;
import imis_mate.DAO.*;
import imis_mate.bean.*;
import cmis.common.*;
import imis_mate.DAO.*;
import imis_mate.bean.*;
import common.*;
import imis_mate.common.*;
public final class MaterialBuyTable_005fdelete_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\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n ");
out.write("<head>\r\n\r\n \r\n ");
out.write("<title>物品采购信息删除");
out.write("</title>\r\n ");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\r\n ");
out.write("<script language=\"JavaScript\" src=\"js/checkdata.js\">");
out.write("</script>\r\n ");
out.write("<script language=\"JavaScript\" src=\"js/MaterialBuyTable.js\">");
out.write("</script>\r\n\t");
out.write("<script type=\"text/javascript\" > \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 = \"../imis_mate/MaterialBuyTableServlet?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("<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n\t");
out.write("<meta http-equiv=\"expires\" content=\"0\"> \r\n\t");
out.write("<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n\t");
out.write("<meta http-equiv=\"description\" content=\"This is my page\">\r\n\r\n\t");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n\r\n\r\n ");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">");
out.write("</head>\r\n \r\n ");
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\r\n\t\r\n\t ");
MaterialBuyBean mbb = new MaterialBuyBean();
mbb = (MaterialBuyBean)request.getAttribute("MaterialBuyBean");
out.write("\r\n\t\t\r\n\t");
if (_jspx_meth_c_if_0(pageContext))
return;
out.write("\r\n\t\t\r\n\t\t\r\n\t\t");
// 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\r\n\t\t");
out.write("<br/>\r\n \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_1);
_jspx_th_c_if_2.setTest(mbb.getBuyNo()!=null);
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\r\n");
out.write("<form method=\"post\" action=\"\" name=\"form1\">\r\n ");
out.write("<table width=\"647\" border=\"0\" class=\"ziti\"> \r\n ");
out.write("<tr> \r\n ");
out.write("<td width=\"20%\" align=\"right\">单据编号");
out.write("</td>\r\n ");
out.write("<td colspan=\"3\"> \r\n ");
out.write("<input name=\"buyNo\" type=\"text\" class=\"text1\" id=\"buyNo\" value=\"");
out.print(mbb.getBuyNo());
out.write("\" size=\"20\" maxlength=\"30\" readonly=\"readonly\"/>\r\n ");
if (_jspx_meth_c_if_3(_jspx_th_c_if_2, pageContext))
return;
out.write(" ");
out.write("</td>\r\n ");
out.write("</tr>\r\n ");
out.write("<tr> \r\n ");
out.write("<td align=\"right\" width=\"20%\">付款方式");
out.write("</td>\r\n ");
out.write("<td colspan=\"3\"> \r\n ");
out.write("<select name=\"payType\" id=\"payType\" class=\"text1\" disabled=\"disabled\">\r\n ");
if(mbb.getPayType().equals("1")){
out.write("\r\n ");
out.write("<option value=\"1\" selected>现金");
out.write("</option>\r\n ");
out.write("<option value=\"2\">转帐");
out.write("</option>\r\n ");
out.write("<option value=\"3\" >支票");
out.write("</option>\r\n ");
out.write("<option value=\"4\">其他");
out.write("</option>\r\n ");
}if(mbb.getPayType().equals("2")){
out.write("\r\n ");
out.write("<option value=\"1\" >现金");
out.write("</option>\r\n ");
out.write("<option value=\"2\" selected>转帐");
out.write("</option>\r\n ");
out.write("<option value=\"3\">支票");
out.write("</option>\r\n ");
out.write("<option value=\"4\">其他");
out.write("</option>\r\n ");
}if(mbb.getPayType().equals("3")){
out.write("\r\n ");
out.write("<option value=\"1\">现金");
out.write("</option>\r\n ");
out.write("<option value=\"2\">转帐");
out.write("</option>\r\n ");
out.write("<option value=\"3\" selected>支票");
out.write("</option>\r\n ");
out.write("<option value=\"4\">其他");
out.write("</option>\r\n ");
}if(mbb.getPayType().equals("4")){
out.write("\r\n ");
out.write("<option value=\"1\">现金");
out.write("</option>\r\n ");
out.write("<option value=\"2\">转帐");
out.write("</option>\r\n ");
out.write("<option value=\"3\" >支票");
out.write("</option>\r\n ");
out.write("<option value=\"4\" selected>其他");
out.write("</option>");
}
out.write("\r\n ");
out.write("</select>\r\n ");
out.write("</td> ");
out.write("</tr>\r\n ");
out.write("<tr> \r\n ");
out.write("<td align=\"right\" width=\"20%\">应付账款");
out.write("</td>\r\n ");
out.write("<td colspan=\"3\"> \r\n ");
out.write("<input name=\"rePay\" type=\"text\" class=\"text1\" value=\"");
out.print(mbb.getRePay() );
out.write("\" size=\"10\" maxlength=\"10\" readonly=\"readonly\"/>\r\n ");
out.write("</td> ");
out.write("</tr>\r\n ");
out.write("<tr> \r\n ");
out.write("<td align=\"right\" width=\"20%\">实付账款");
out.write("</td>\r\n ");
out.write("<td colspan=\"3\"> \r\n ");
out.write("<input name=\"acPay\" type=\"text\" class=\"text1\" value=\"");
out.print(mbb.getAcPay() );
out.write("\" size=\"10\" maxlength=\"10\" readonly=\"readonly\"/>\r\n ");
out.write("</td> ");
out.write("</tr>\r\n ");
out.write("<tr> \r\n ");
out.write("<td align=\"right\" width=\"20%\">采购日期");
out.write("</td>\r\n ");
out.write("<td colspan=\"3\"> \r\n \t ");
out.write("<input name=\"inDate\" id=\"inDate\" size=\"10\" maxlength=\"10\" type=\"text\" value=\"");
out.print(mbb.getInDate());
out.write("\" readonly=\"readonly\"/>\r\n ");
out.write("</td> ");
out.write("</tr>\r\n ");
out.write("<tr> \r\n ");
out.write("<td align=\"right\" width=\"20%\">采购部门");
out.write("</td>\r\n ");
out.write("<td width=\"26%\"> \r\n \r\n ");
out.write("<select name=\"buyDep\" id=\"buyDep\" class=\"text1\" disabled=\"disabled\">\r\n ");
int deptId = 0;
String deptName = null;
DepartmentsBean describe = new DepartmentsBean();
ArrayList list = describe.getDepts();
Iterator itr = list.iterator();
while (itr.hasNext()) {
Hashtable ht = (Hashtable) itr.next();
deptId = Integer.parseInt(ht.get("deptId").toString());
deptName = ht.get("deptName").toString();
if(mbb.getBuyDep()==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 ");
out.write("</select>\r\n ");
out.write("</td>\r\n\t ");
out.write("<td align=\"right\" width=\"14%\">采购人");
out.write("</td>\r\n ");
out.write("<td width=\"40%\"> \r\n ");
out.write("<input name=\"buyBy\" type=\"text\" class=\"text1\" value=\"");
out.print(mbb.getBuyBy() );
out.write("\" size=\"20\" maxlength=\"30\" readonly=\"readonly\" />\r\n ");
out.write("</td>\r\n ");
out.write("</tr>\r\n\t");
out.write("<tr> \r\n ");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -