📄 showindent_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.mybusiness.web.ware.ware;
import com.mybusiness.util.str;
import com.mybusiness.web.ware.indentlist;
import com.mybusiness.web.ware.ware;
public final class showindent_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
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;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
String username = (String)session.getAttribute("username");
if ( username == null || username.equals("") ){
response.sendRedirect("login.jsp?msg=nologin");
}
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
com.mybusiness.web.purchase myIndentlist = null;
synchronized (_jspx_page_context) {
myIndentlist = (com.mybusiness.web.purchase) _jspx_page_context.getAttribute("myIndentlist", PageContext.PAGE_SCOPE);
if (myIndentlist == null){
myIndentlist = new com.mybusiness.web.purchase();
_jspx_page_context.setAttribute("myIndentlist", myIndentlist, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
com.mybusiness.web.waremn mybook = null;
synchronized (_jspx_page_context) {
mybook = (com.mybusiness.web.waremn) _jspx_page_context.getAttribute("mybook", PageContext.PAGE_SCOPE);
if (mybook == null){
mybook = new com.mybusiness.web.waremn();
_jspx_page_context.setAttribute("mybook", mybook, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
String mesg = "";
long Id=0;
String indentNo = request.getParameter("orderno");
if (indentNo==null) indentNo="";
if (request.getParameter("id")==null || request.getParameter("id").equals("")) {
mesg = "你要查看的订单清单不存在!";
} else {
try {
Id = Long.parseLong(request.getParameter("id"));
if (!myIndentlist.getIndentList(Id)){
mesg = "你要查看的订单清单不存在!";
}
} catch (Exception e){
mesg = "你要查看的订单清单不存在!";
}
}
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>商场翱游购物系统 查看订购清单资料</title>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("\r\n");
out.write("<link rel=\"stylesheet\" href=\"ware.css\" type=\"text/css\">\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body background=images/112.gif text=\"#000000\" onload=\"javascript:window.focus();\" >\r\n");
out.write("<div align=\"center\">\r\n");
out.write(" \r\n");
out.write(" ");
if(!mesg.equals("")){
out.println(mesg);
} else {
out.write("\r\n");
out.write("\t\t<p>商场翱游购物系统商品订单");
out.print( indentNo );
out.write(" 清单:</p>\r\n");
out.write(" <table width=\"95%\" border=\"1\" cellspacing=\"1\" cellpadding=\"1\" bordercolor=\"#CC9966\">\r\n");
out.write(" <tr align=\"center\"> \r\n");
out.write(" <td>商品名称</td>\r\n");
out.write(" <td>商品类别</td>\r\n");
out.write(" <td>单价(元)</td>\r\n");
out.write(" <td>数量</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t");
for (int i=0; i<myIndentlist.getIndent_list().size();i++){
indentlist idList = (indentlist) myIndentlist.getIndent_list().elementAt(i);
if (mybook.getOnebook((int)idList.getBookNo()) ){
ware bk = (ware) mybook.getBooklist().elementAt(0);
out.write("\t \r\n");
out.write("\t <tr align=\"center\"> \r\n");
out.write(" <td>");
out.print( bk.getBookName() );
out.write("</td>\r\n");
out.write(" <td>");
out.print( bk.getClassname() );
out.write("</td>\r\n");
out.write(" <td>");
out.print( bk.getPrince() );
out.write("</td>\r\n");
out.write(" <td>");
out.print( idList.getAmount() );
out.write("</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t");
}
}
out.write("\r\n");
out.write("\t\t</table>\r\n");
}
out.write("\r\n");
out.write(" <br><p><a href=\"javascript:window.close()\">关闭窗口</a></p>\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\">开发:王文耀<br>\r\n");
out.write(" CopyRight@2006<br>\r\n");
out.write(" Email:<a href=\"mailto:wwy170@163.com\">wwy170@163.com</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" \r\n");
out.write("</div>\r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
mybook.close();
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -