📄 goodsindex.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="com.doone.wskfmgr.common.PageEnum" %>
<%@ page import="com.doone.uurm.*, com.doone.data.*, com.doone.fj1w.common.*" %>
<%@ page import="com.doone.wskfmgr.business.netstore.TypeDAO"%>
<%@ page import="com.doone.fj1w.common.entity.impl.TFNetStoreImpl"%>
<%
String storeId = request.getParameter("storeid");
if(storeId == null || storeId.equals("")){
session.removeAttribute("SESSION.CURRENT.STOREID");
session.removeAttribute("SESSION.CURRENT.STOREID.TYPE");
response.sendRedirect("index.jsp");
return;
}
String sPurvICode = "NGB010001";
TFNetStoreImpl impl = new TFNetStoreImpl(new DacClient(),storeId);
pageContext.setAttribute("GOODSTYPE", TypeDAO.getGoodsType(impl.getType()));
// 方便使用.
session.setAttribute("SESSION.CURRENT.STOREID",Long.valueOf( storeId ));//商店ID
session.setAttribute("SESSION.CURRENT.STOREID.TYPE",new Long( impl.getType() ));//商店类型ID
session.setAttribute(PageEnum.PAGE_TOKEN,PageEnum.PAGE_TOKEN);
%>
<%@ taglib uri="/WEB-INF/curstom-tags.tld" prefix="custom" %>
<html>
<head>
<title>业务受理单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Microsoft Theme" content="compass 1011, default">
<meta name="Microsoft Border" content="tlb, default">
<link href="../../common/style/main.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" media="all" href="../calendar/calendar-blue2.css"/>
<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../common/mainTool.js"></script>
<script language="JavaScript" src="../../common/XMLHttpClient.js"></script>
<script type="text/javascript" src="../calendar/calendar.js"></script>
<script type="text/javascript" src="../calendar/calendar-zh.js"></script>
<script type="text/javascript" src="../calendar/calendar-action.js"></script>
<script type="text/javascript" language="JavaScript" src="js/submitform.js"></script>
<script type="text/javascript" language="JavaScript" src="js/goodsindex.js"></script>
</head>
<body onload="fn_onload();">
<form id="Default" method="post" action="index.jsp" onsubmit="return fn_OnSubmit(this);">
<div onresize="cltScript_Toolbar();" style="width: 100%">
<div id="divTop" style="overflow: hidden">
<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tr bgcolor="#efefef" height="33">
<td valign="middle" align="center" width="71"
onclick="history.back();"
id="ibtnReturn"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="返回。">返回</td>
<td valign="middle" align="center" width="71"
onclick="return managerProduct();"
id="ibtnManagerProduct"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="管理产品。">管理产品</td>
<td valign="middle" align="center" width="71"
onclick="return addGoods();"
id="ibtnAddGoods"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="添加商品。">添加商品</td>
<td valign="middle" align="center" width="71"
onclick="return changeGoods('<%=request.getContextPath() %>');"
id="ibtnChangeGoods"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="修改商品。">修改商品</td>
<td valign="middle" align="center" width="80"
onclick="return addGoodsType();"
id="ibtnaddGoodsType"
style="behavior:url(../../common/button.htc)"
DefaultClass="btnDefault"
OverClass="btnOver"
DownClass="btnDown"
title="管理商品类型。">管理商品类型</td>
<td> </td>
</tr>
</table>
<jsp:include page="../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
<tr>
<td width="100%" colspan="2" class="OuterHead" align="left">
<span id="ItemTitle"><font face="webdings">8</font>查询订单:</span>
<input type="radio" id="SIMPLEQUERY" name="querymode" checked="checked" value="simple" onclick="fnShowSimple();"><label for="SIMPLEQUERY" id="ItemTitle">简单查询</label>
<input type="radio" id="QUERYALL" name="querymode" value="all" onclick="fnShowAll();"><label for="QUERYALL" id="ItemTitle">复杂查询</label>
<strong><font color="blue">当前商店店号: </font><font color="red"><%=impl.getStoreId() %></font>
<font color="blue"> 商店名: </font></font><font color="red"><%=impl.getName() %></font></strong>
</td>
</tr>
<tr>
<td width="100%" colspan="2" class="InnerMain" align="left">
<table id="QueryTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<caption style="display:none;">
<!-- 隐藏条件值,放入. <input type="hidden">-->
<input type="hidden" name="STOREID" value="<%= storeId%>">
</caption>
<tbody>
<!--常用简单的查询条件-->
<tr>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">开始时间:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" name="STARTTIME" id="STARTTIME" title="双击清空。" ondblclick="this.value='';" size="19" /><span style="cursor:hand"
onclick="return showCalendar('STARTTIME', '%Y-%m-%d', null, true);">
<img border="0" src="../calendar/date_botton.gif" width="20" height="14" />
</td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">商品号:</td>
<td width="15%" class="body_td" nowrap="nowrap"><input type="text" id="GOODSID" name="GOODSID" style="width: 100%;"></td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">商品定购人:</td>
<td width="15%" class="body_td" nowrap="nowrap"><input type="text" id="ORDERMAN" name="ORDERMAN" style="width: 100%;"></td>
</td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">商品类别:</td>
<td width="15%" class="body_td" nowrap="nowrap">
<custom:HtmlSelect name="TYPE" style="width: 100%" styleId="TYPE" dataSource="GOODSTYPE" textFieldName="NAME" valueFieldName="NETTYPEID">
<custom:HtmlOption value="">全部</custom:HtmlOption>
</custom:HtmlSelect>
</td>
</tr>
</tbody>
<tbody style="display:none;">
<!--其它查询条件-->
<tr>
<td class="Caption_Td" align="right" nowrap="nowrap">结束时间:</td>
<td class="body_td" align="left" nowrap="nowrap">
<input type="text" name="ENDTIME" id="ENDTIME" title="双击清空。" ondblclick="this.value='';" size="19" /><span style="cursor:hand"
onclick="return showCalendar('ENDTIME', '%Y-%m-%d', null, true);">
<img border="0" src="../calendar/date_botton.gif" width="20" height="14" />
</td>
<td class="Caption_Td" align="right" nowrap="nowrap">销售级别:</td>
<td class="body_td" align="left" nowrap="nowrap">
<input type="text" id="SALEINDEX" name="SALEINDEX" style="width: 100%;" onkeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;">
</td>
<td class="Caption_Td" align="right" nowrap="nowrap">状态:</td>
<td class="body_td" align="left" nowrap="nowrap">
<select name="STATE" style="width: 100%;">
<option value="">全部</option>
<option value="E">可用</option>
<option value="D">禁用</option>
</select>
</td>
<td class="Caption_Td" align="right" nowrap="nowrap">排序方式:</td>
<td class="body_td" align="left" nowrap="nowrap" colspan="4">
<select name="SORT" style="width: 100%;">
<option value="">默认</option>
<option value="asc">入库时间顺序排列</option>
<option value="desc">入库时间倒序排列</option>
</select>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr class="OuterFoot">
<td width="15%" align="left" class="Caption_Td">
<input type="submit" class="button" value="查询">
<input type="reset" class="button" value="重填">
</td>
<td width="85%" align="left" class="Caption_td">
<table id="QueryResult" border="0" width="100%" cellspacing="0"
cellpadding="1"
style="behavior:url(../../common/table.htc)"
ontableload="return onQueryResultLoad();"
serviceURL="<%= request.getContextPath() + "/XmlHttpService"%>"
service="GoodsService"
dataService="getConditionResult"
rcService="getConditionCount"
autoLoad="False"
locked="true">
<caption style="display:none;"></caption>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr height="5"><td colspan="2"><img src="../../common/images/spacer.gif"></td></tr>
</table>
</div>
<div id="divMain" style="overflow: auto">
<!--service表的服务名--><!--dataService表的内容--><!--rcService表的行数-->
<table id="Result" border="0" width="100%" cellspacing="0"
cellpadding="1"
style="behavior:url(../../common/table.htc)"
DefaultClass="DefaltRow"
keyName="key"
SelectedClass="SelectedRow"
multiple="true"
onselected="return onChoosed();"
onunselected="return onUnChoosed();"
ontableload="return onContentLoad();"
ondblclick="return fn_dblClick();"
serviceURL="<%=request.getContextPath()+"/XmlHttpService"%>"
service="GoodsService"
dataService="getContextResult"
rcService="getContextCount"
pageStyle="0"
autoLoad="false"
class="OuterTable">
<thead>
<tr class="OuterHead" style="cursor: none;">
<TD class="title_td" align="center" width="10%" nowrap><b>商品序列</b></TD>
<TD class="title_td" align="center" width="20%"><b>商品描述</b></TD>
<TD class="title_td" align="center" width="15%"><b>商品定购人</b></TD>
<TD class="title_td" align="center" width="15%"><b>销售级别</b></TD>
<TD class="title_td" align="center" width="15%"><b>商品单价(元)</b></TD>
<TD class="title_td" align="center" width="15%"><b>定购时间</b></TD>
<TD class="title_td" align="center" width="10%"><b>状态/数量</b></TD>
</tr>
</thead>
<caption style="display:none;"></caption>
<tr key="-1" type="">
<td class="InnerHead" colspan="8" style="cursor: default;" onclick="">没有任何记录信息</td>
</tr>
<tfoot>
<tr class="OuterFoot">
<td align="right" class="foot_td" nowrap width="100%" colspan="10">
分页:<span id="pageSet"></span>
</td>
</tr>
</tfoot>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="OuterTable">
</table>
</div>
</div>
</form>
<IFRAME id="orderAccept" style="display:none;"></IFRAME>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -