?? __stockmanagesubledgerview.java
字號(hào):
/* compiled from JSP: /stockmanagesubledgerview.jsp
*
* This code was automatically generated at 1:16:01 on 2004-6-10
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*/
package jsp_servlet;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
// User imports
import data.*; //[ /stockmanagesubledgerview.jsp; Line: 2]import user.*; //[ /stockmanagesubledgerview.jsp; Line: 2]
// built-in init parameters:
// boolean _verbose -- wants debugging
// Well-known variables:
// JspWriter out -- to write to the browser
// HttpServletRequest request -- the request object.
// HttpServletResponse response -- the response object.
// PageContext pageContext -- the page context for this JSP
// HttpSession session -- the session object for the client (if any)
// ServletContext application -- The servlet (application) context
// ServletConfig config -- The ServletConfig for this JSP
// Object page -- the instance of this page's implementation class (i.e., 'this')
/**
* This code was automatically generated at 1:16:01 on 2004-6-10
* by weblogic.servlet.jsp.Jsp2Java -- do not edit.
*
* Copyright (c) 2004 by BEA Systems, Inc. All Rights Reserved.
*/
public final class __stockmanagesubledgerview
extends
weblogic.servlet.jsp.JspBase
implements weblogic.servlet.jsp.StaleIndicator
{
// StaleIndicator interface public boolean _isStale() { weblogic.servlet.jsp.StaleChecker sci =(weblogic.servlet.jsp.StaleChecker)(getServletConfig().getServletContext()); java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/stockmanagesubledgerview.jsp", 1086679800000L, "WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709 ")) return true; return false; } public static boolean _staticIsStale(weblogic.servlet.jsp.StaleChecker sci) { java.io.File f = null; long lastModWhenBuilt = 0L; if (sci.isResourceStale("/stockmanagesubledgerview.jsp", 1086679800000L, "WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709 ")) return true; return false; }
public void _jspService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
{
// declare and set well-known variables:
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.ServletContext application = config.getServletContext();
javax.servlet.jsp.tagext.Tag _activeTag = null;
// variables for Tag extension protocol
Object page = this;
javax.servlet.jsp.JspWriter out;
javax.servlet.jsp.PageContext pageContext = javax.servlet.jsp.JspFactory.getDefaultFactory().getPageContext(this, request, response, null, true, 8192, true);
response.setHeader("Content-Type", "text/html; charset=GBK"); out = pageContext.getOut(); JspWriter _originalOut = out;
javax.servlet.http.HttpSession session = request.getSession(true);
try { // error page try block response.setContentType("text/html; charset=GBK"); out.print("\r\n"); out.print("\r\n"); //[ /stockmanagesubledgerview.jsp; Line: 3] //設(shè)置取得字符串的編碼機(jī)制 //[ /stockmanagesubledgerview.jsp; Line: 4] request.setCharacterEncoding("GBK"); //[ /stockmanagesubledgerview.jsp; Line: 5] String userName = ""; //[ /stockmanagesubledgerview.jsp; Line: 6] if(session.getAttribute("user") != null){ //[ /stockmanagesubledgerview.jsp; Line: 7] User user = (User)session.getAttribute("user"); //[ /stockmanagesubledgerview.jsp; Line: 8] userName = user.getUserName(); //[ /stockmanagesubledgerview.jsp; Line: 9] }else{ //[ /stockmanagesubledgerview.jsp; Line: 10] out.print("<h3>請(qǐng)先登陸系統(tǒng).</h3>"); //[ /stockmanagesubledgerview.jsp; Line: 11] return; //[ /stockmanagesubledgerview.jsp; Line: 12] } //[ /stockmanagesubledgerview.jsp; Line: 13] String ledgerDate = ""; //[ /stockmanagesubledgerview.jsp; Line: 14] if(session.getAttribute("ledgerDate") == null){ //[ /stockmanagesubledgerview.jsp; Line: 15] out.print("<h3>請(qǐng)先選擇賬套.</h3>"); //[ /stockmanagesubledgerview.jsp; Line: 16] return; //[ /stockmanagesubledgerview.jsp; Line: 17] }else{ //[ /stockmanagesubledgerview.jsp; Line: 18] ledgerDate = (String)session.getAttribute("ledgerDate"); //[ /stockmanagesubledgerview.jsp; Line: 19] } //[ /stockmanagesubledgerview.jsp; Line: 20] //創(chuàng)建庫存明細(xì)賬套數(shù)組 //[ /stockmanagesubledgerview.jsp; Line: 21] String[][] stockSubLedgers = new String[0][6]; //[ /stockmanagesubledgerview.jsp; Line: 22] //創(chuàng)建數(shù)據(jù)類 //[ /stockmanagesubledgerview.jsp; Line: 23] StockManagementData stockManagementData = new StockManagementData(); //[ /stockmanagesubledgerview.jsp; Line: 24] //根據(jù)傳入?yún)?shù)取得庫存明細(xì)賬套數(shù)組 //[ /stockmanagesubledgerview.jsp; Line: 25] if(request.getParameter("orderId") != null){ //[ /stockmanagesubledgerview.jsp; Line: 26] String orderId = request.getParameter("orderId"); //[ /stockmanagesubledgerview.jsp; Line: 27] stockSubLedgers = stockManagementData.getStockSubLedgerByOrderId(ledgerDate, orderId); //[ /stockmanagesubledgerview.jsp; Line: 28] } //[ /stockmanagesubledgerview.jsp; Line: 29] //創(chuàng)建表格標(biāo)題數(shù)組 //[ /stockmanagesubledgerview.jsp; Line: 30] String[] colNames = {"明細(xì)編號(hào)", "單據(jù)編號(hào)", "商品條形碼", "進(jìn)貨價(jià)", "數(shù)量", "有效期"}; //[ /stockmanagesubledgerview.jsp; Line: 31] out.print("\r\n<html>\r\n<head>\r\n<title>庫存明細(xì)賬套查看頁面:用戶("); out.print(String.valueOf(userName)); //[ /stockmanagesubledgerview.jsp; Line: 35] out.print("):賬套("); out.print(String.valueOf(ledgerDate)); //[ /stockmanagesubledgerview.jsp; Line: 35] out.print(")</title>\r\n</head>\r\n<body bgcolor=\"#ffffff\">\r\n<center>\r\n<!--根據(jù)庫存明細(xì)賬套數(shù)組顯示表格內(nèi)容-->\r\n<table width=\"100%\" border=\"1\">\r\n <tr align=\"center\">\r\n "); for(int i = 0; i < colNames.length; i++){ //[ /stockmanagesubledgerview.jsp; Line: 42] //[ /stockmanagesubledgerview.jsp; Line: 42] out.print("\r\n <td><font size=\"-1\">"); out.print(String.valueOf(colNames[i])); //[ /stockmanagesubledgerview.jsp; Line: 43] out.print("</font></td>\r\n "); } //[ /stockmanagesubledgerview.jsp; Line: 44] //[ /stockmanagesubledgerview.jsp; Line: 44] out.print("\r\n </tr>\r\n "); for (int i = 0; i < stockSubLedgers.length; i++){ //[ /stockmanagesubledgerview.jsp; Line: 46] //[ /stockmanagesubledgerview.jsp; Line: 46] out.print("\r\n <tr align=\"left\">\r\n "); for(int j = 0; j < stockSubLedgers[0].length; j++){ //[ /stockmanagesubledgerview.jsp; Line: 48] //[ /stockmanagesubledgerview.jsp; Line: 48] out.print("\r\n <td><font size=\"-1\">"); out.print(String.valueOf(stockSubLedgers[i][j])); //[ /stockmanagesubledgerview.jsp; Line: 49] out.print(" </font></td>\r\n "); } //[ /stockmanagesubledgerview.jsp; Line: 50] //[ /stockmanagesubledgerview.jsp; Line: 50] out.print("\r\n </tr>\r\n "); } //[ /stockmanagesubledgerview.jsp; Line: 52] //[ /stockmanagesubledgerview.jsp; Line: 52] out.print("\r\n</table>\r\n</center>\r\n</body>\r\n</html>"); } catch (Throwable __ee) { while (out != null && out != _originalOut) out = pageContext.popBody(); ((weblogic.servlet.jsp.PageContextImpl)pageContext).handlePageException((Throwable)__ee); }
//before final close brace...
}
}