📄 modifystocklist.jsp
字号:
<!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 contentType="text/html;charset=GBK"%>
<%@ page import="com.saas.biz.stockorderMgr.Stockorderinfo"%>
<jsp:useBean id="tools" class="com.saas.biz.commen.PageTools" scope="page" />
<%
HttpSession logsession = request.getSession();
String cust_id = "";
String iStart = "1";
String meun_idx = "";
if (request.getParameter("iStart") != null) {
iStart = request.getParameter("iStart");
}
if (logsession.getAttribute("SESSION_CUST_ID") != null) {
cust_id = logsession.getAttribute("SESSION_CUST_ID").toString();
}
Stockorderinfo stockObj = new Stockorderinfo();
ArrayList stockList = stockObj.getStockListByAll(Integer.valueOf(iStart).intValue(), cust_id);
int counter = stockObj.getStockListNumber(cust_id);
String pageTools=tools.getPageTools(String.valueOf(counter),"20","modifyIndex.jsp?iStart=",Integer.parseInt(iStart));
%>
<html>
<head>
<title>农业企业信息化综合服务平台</title>
<script language="javascript">
function chechIfo()
{
if(confirm('是否确认删除本条记录?'))
{
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" style="margin-top:10px;">
<tr>
<td>
<table width="100%" 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="30%">
采购主题
</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="20%">
采购地区
</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="15%">
有效期至
</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%">
修改
</td>
<td style="background-color:#e2e2e2; color:#000000; font-weight:bold; font-size:13px;" align=center width="10%">
删除
</td>
</tr>
<%
if (stockList != null && stockList.size() > 0) {
for (Iterator it = stockList.iterator(); it.hasNext();) {
HashMap map = (HashMap) it.next();
String stock_id = map.get("stock_id").toString();
String title = "";
String end_date = "";
String stock_addr = "";
if (map.get("title") != null) {
title = map.get("title").toString();
}
if (map.get("end_date") != null) {
end_date = map.get("end_date").toString();
if (end_date.length() > 10) {
end_date = end_date.substring(0, 10);
}
}
if (map.get("stock_addr") != null) {
stock_addr = map.get("stock_addr").toString();
}
%>
<tr style="background-color:#f9f9f9; ">
<td style=" color:#000000; padding:3px 5px;" align="left">
<a href="viewStockInfo.jsp?stock_id=<%=stock_id%>" TARGET=appwin onclick="mydefss()"><%=title%>
</a>
</td>
<td style=" color:#000000; padding:3px 5px;" align="left">
<%=stock_addr%>
</td>
<td style=" color:#000000; padding:3px 5px;" align="center">
<%=end_date%>
</td>
<td style=" color:#000000;" align="center">
<a href=modifyStockInfo.jsp?stock_id=<%=stock_id%>&trade_type_code=0343 TARGET=appwin onclick="mydefss()"><img src=/img/edit.gif width=16 height=16 border=0 alt="修改采购信息">
</a>
</td>
<td style=" color:#000000;" align=center>
<a href=/doTradeReg.do?stock_id=<%=stock_id%>&trade_type_code=0345 target="_self" onClick="return chechIfo()"><img src="/img/del.gif" width=16 height=16 border=0 alt="删除采购信息">
</a>
</td>
</tr>
<%
}
}
%>
<tr>
<%=pageTools%>
</tr>
</table>
</td>
</tr>
<tr>
<td height="0"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -