?? stockquerylist.jsp
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="java.util.*"%>
<%@ page import="com.saas.biz.stockQueryMgr.StockQueryInfo"%>
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.saas.biz.commen.ParamethodMgr"%>
<%
HttpSession logs = request.getSession();
String cust_id = "";
String iStart = "0";
String menu_id = "";
if (request.getParameter("iStart") != null) {
iStart = request.getParameter("iStart");
}
if (logs.getAttribute("SESSION_CUST_ID") != null) {
cust_id = logs.getAttribute("SESSION_CUST_ID").toString();
}
if (request.getParameter("menu_id") != null) {
menu_id = request.getParameter("menu_id");
}
StockQueryInfo info = new StockQueryInfo();
ArrayList tableList = info.getStockQueryList(Integer.parseInt(iStart), cust_id);
int counter = info.getStockQueryList(cust_id);
int pages = counter / 20 + 1;
int pageUp = 0, pageDown = 0;
int currenPage = Integer.valueOf(iStart).intValue();
if (pages > currenPage) {
if (currenPage > 0) {
pageUp = currenPage - 1;
}
pageDown = currenPage + 1;
} else if (pages == currenPage) {
pageUp = currenPage - 1;
pageDown = currenPage;
}
%>
<html>
<head>
<title>XSaaS-采購(gòu)管理</title>
<link href="/style/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
.line6 {
width: 72spx;
width: 70spx !important;
border: #ffcb99 1px solid;
background-color: #fff8ee;
text-align: left;
padding-left: 20px;
padding-top: 10px;
padding-bottom: 10px;
color: #000000;
margin-top: 13px;
} /*橫欄樣式6---- 頭部提醒1*/
.line6 .img {
width: 53px;
height: 53px;
float: left;
margin-right: 20px;
}
.line6 .title {
font-size: 14px;
font-weight: bold;
color: #ff5400;
}
.line1 {
border-left: #ff7300 3px solid;
background-color: #e2e2e2;
color: #333333;
text-align: left;
font-size: 12px;
} /*橫欄樣式1*/
</style>
<script type="text/javascript">
function delet(){
if(window.confirm('確定要?jiǎng)h除本條記錄?')){
return true;
}else{
return false;
}
}
</script>
<SCRIPT>WinLIKEerrorpage='/winlike/winman/hlp-error.html';</SCRIPT>
<SCRIPT SRC="/winlike/winman/wininit.js"></SCRIPT>
<SCRIPT SRC="/winlike/winman/winman.js"></SCRIPT>
<SCRIPT>
WinLIKE.definewindows=mydefss;
function mydefss() {
var j=new WinLIKE.window('', 100, 100, '90%', 'WinLIKE.browsersize().Height -Top-30', 2);
j.Vis=false;
j.Nam='appwin';
WinLIKE.addwindow(j);
};
</SCRIPT>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="13" align="left">
</td>
</tr>
<tr>
<td>
<table width=727 border=0 cellpadding=2 cellspacing=1 align=center bgcolor="#e7e7e7">
<tr>
<td class="line1" style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
詢價(jià)標(biāo)題
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
詢價(jià)方式
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
參考價(jià)格
</td>
<td style="background-color: #e2e2e2; color: #000000; font-weight: bold; font-size: 13px;" align=center width="20%">
報(bào)價(jià)單錄入
</td>
</tr>
<%
if (tableList != null && tableList.size() > 0) {
for (int i = 0; i < tableList.size(); i++) {
HashMap map = (HashMap) tableList.get(i);
String form_id = "", query_id = "", title = "", q_type = "", pre_price = "";
if (map.get("form_id") != null) {
form_id = map.get("form_id").toString();
}
if (map.get("query_id") != null) {
query_id = map.get("query_id").toString();
}
if (map.get("title") != null) {
title = map.get("title").toString();
}
if (map.get("q_type") != null) {
String q_type1 = map.get("q_type").toString();
ParamethodMgr mgr = new ParamethodMgr();
q_type = mgr.getParamNameByValue("75", q_type1);
}
if (map.get("pre_price") != null) {
pre_price = map.get("pre_price").toString();
}
%>
<tr style="background-color: #f9f9f9;" id="changcolor_tr<%=i%>" onmouseover="MM_changeProp('changcolor_tr<%=i%>','','backgroundColor','#ffffff','DIV')" onmouseout="MM_changeProp('changcolor_tr<%=i%>','','backgroundColor','#f9f9f9','DIV')">
<td style="color: #000000;" align="left">
<a href="/stockQueryMgr/displayStockQuery.jsp?query_id=<%=query_id%>" TARGET=appwin onclick="mydefss()" title="查看詢價(jià)單信息"><%=title%></a>
</td>
<td style="color: #000000;" align="left"><%=q_type%></td>
<td style="color: #000000;" align="left"><%=pre_price%></td>
<td style="color: #000000; padding: 2px 5px;" align=center>
<a href="addQuote.jsp?query_id=<%=query_id%>" TARGET=appwin onclick="mydefss()"><img src="/img/edit.png" border="0">
</a>
</td>
</tr>
<%
}
%>
<tr>
<td align="left" colspan="2">
共<%=counter%>條 第<%=Integer.parseInt(iStart) + 1%>頁(yè) 共<%=pages%>頁(yè)
</td>
<td align="right" colspan="2">
<a href="index.jsp?iStart=0">首頁(yè) </a>
<%
if (Integer.parseInt(iStart) > 0) {
%>
<a href="index.jsp?iStart=<%=pageUp%>">上一頁(yè)</a>
<%
}
if (Integer.parseInt(iStart) < pages - 1) {
%>
<a href="index.jsp?iStart=<%=pageDown%>">下一頁(yè) </a>
<%
}
%>
<a href="index.jsp?iStart=<%=pages - 1%>">尾頁(yè)</a>
</td>
</tr>
<%
}
%>
</table>
</td>
</tr>
<tr>
<td height="13"></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -