📄 chaxun.jsp
字号:
lastPageFirstRecNum = (totalItemNum/curPageRecNum)*(curPageRecNum)+1;
}
//获得上次检索式的值,由于检索式可能为空,所以设置一个缺省值
String lastOrderStr = "BillID";
String lastBillId = "0";
String lastGoodsId = "";
String lastGoodsName = "";
String lastSalesPerson = "";
String lastConfirmFlage = "";
String lastCreateTime1 = "";
String lastCreateTime2 = "";
if(eisr!=null)
{
lastOrderStr = eisr.getOrderStr();
lastBillId = eisr.getBillId() + "";
lastGoodsId = eisr.getGoodsId();
lastGoodsName = eisr.getGoodsName();
lastSalesPerson = eisr.getSalesPerson();
lastConfirmFlage = eisr.getConfirmFlage();
lastCreateTime1 = eisr.getCreateTime1();
lastCreateTime2 = eisr.getCreateTime2();
}
String tmpStr;
%>
<form name="form1" method="post" action="" >
<font color=#215385><b>查询条件</b></font>
<IMG src="images/line1.gif" border=0>
<br>
<input type="hidden" name="start_rec_num" value="1">
<TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">
<tr>
<td align="right"> </td>
<td> </td>
<td align="right">
<b>种类:</b>
</td>
<td>
<input type=text name='goodsid' size="20" class="none" onKeyDown="if(event.keyCode==13) mySubmit1();">
</td>
<td> </td>
</tr>
<tr>
<td height="24" align="right"> </td>
<td> </td>
<td align="right">
<b>书名:</b>
</td>
<td>
<input type=text name='goodsname' size="20" class="none" onKeyDown="if(event.keyCode==13) mySubmit1();">
</td>
<TD width=20%>
</TD>
</tr>
<tr>
<TD align="right"> </TD>
<TD> </TD>
<TD align="right"> </TD>
<TD> </TD>
<td width=20%>
<input name=searchbutton type=button value="查询" onClick='mySubmit1()' >
</td>
</tr>
</TABLE>
<TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">
<tr>
<TD align="right" width=14%><b> 录入时间:</b></TD>
<TD width=65%>
起始
<input type=text name='createtime1' size="20" class="none">
<img src="./images/cal.gif" width="16" height="16" border="0" style="cursor:hand;" align="absmiddle" alt="弹出日历菜单" onClick="Calendar_createtime1()">
终止
<input type=text name='createtime2' size="20" class="none">
<img src="./images/cal.gif" width="16" height="16" border="0" style="cursor:hand;" align="absmiddle" alt="弹出日历菜单" onClick="Calendar_createtime2()">
</TD>
<TD> </TD>
</tr>
</TABLE>
</form>
<br>
<%
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(2);
%>
<form name="form2" method="post" action="" >
<font color=#215385><b>查询明细列表</b>(共 <font color="red"><%=totalItemNum%></font> 条明细信息)</font>
<br>
<div align="left">
<font color=#215385>借出</font><font color=#215385>总次数:<font color=#FE60A3><%=totalAmount%></font> </font>
</div>
<IMG src="images/line1.gif" border=0>
<input type="hidden" name="start_rec_num" value=""><!--提交的时候设置-->
<input type="hidden" name="orderstr" value="<%=lastOrderStr%>">
<input type="hidden" name="billid" value="<%=lastBillId%>">
<input type="hidden" name="goodsid" value="<%=lastGoodsId%>">
<input type="hidden" name="goodsname" value="<%=lastGoodsName%>">
<input type="hidden" name="salesperson" value="<%=lastSalesPerson%>">
<input type="hidden" name="confirmflage" value="<%=lastConfirmFlage%>">
<input type="hidden" name="createtime1" value="<%=lastCreateTime1%>">
<input type="hidden" name="createtime2" value="<%=lastCreateTime2%>">
<TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">
<%//
if(exportItemList.size()>0)
{
%>
<tr bgcolor="#C2CEDC">
<th>单号</th>
<th></th>
<th>货物标识</th>
<th>货物名称</th>
<th>数量</th>
<th>单价</th>
<th>录入时间</th>
<th>状态</th>
<th>取消</th>
<th>删除</th>
</tr>
<%//
}
%>
<%//
int index = 0;
GoodsExportItemInfo tmpInfo = null;
for (index=0; index<exportItemList.size(); index++)
{
tmpInfo = (GoodsExportItemInfo)exportItemList.get(index);
%>
<tr <%if((index%2)==1){%>bgcolor="#CAE4F4"<%}%> >
<td align='center'><%= tmpInfo.getBillId() %></td>
<td align='center' width=2%><a href="<%= request.getContextPath() + "/goodsInfoView.do?goodsid=" + tmpInfo.getGoodsId() %>" target='goodsinfo'><IMG src="images/goods.gif" border=0 alt='查看货物信息'></a></td>
<td align='center'><%= tmpInfo.getGoodsId() %></td>
<td align='center'><%= tmpInfo.getGoodsName() %></td>
<td align='center'><%= tmpInfo.getExportAmount() %></td>
<td align='center'><%= nf.format(tmpInfo.getExportUnitPrice()) %></td>
<td align='center'>
<%
String tmptime = tmpInfo.getCreateTime();
if(tmptime==null)tmptime="";
if(tmptime.length()>=19)
{
%>
<%= tmptime.substring(0,19) %>
<%
}
%>
</td>
<td align='center'>
<%
if(tmpInfo.getConfirmFlage().equals("0"))
{
%>
<font color=#E61577>临时单</font><font color=#215385>【</font><a href="javascript:submitTempExportBill('<%=curStartRecNum%>', '<%=tmpInfo.getBillId()%>') ">确认</a><font color=#215385>】</font>
<%//
}else{
%>
<font color=#007168>确认单</font>
<%//
}
%>
</td>
<td align='center'>
<a href="javascript:reimportGoodsForItem('<%=curStartRecNum%>', '<%=tmpInfo.getBillId()%>', '<%=tmpInfo.getGoodsId()%>') ">取消</a>
</td>
<td align='center'>
<a href="javascript:deleteAExportItem('<%=curStartRecNum%>', '<%=tmpInfo.getBillId()%>', '<%=tmpInfo.getGoodsId()%>') "><IMG src="images/delto.gif" border=0></a>
</td>
</tr>
<%//
}//--for
%>
</TABLE>
</form>
<!--
共 <font color="red"><%////=totalItemNum%></font> 条记录
每页 <font color="red"><%////=curPageRecNum%></font> 条记录
起始记录为 <font color="red"><%////=curStartRecNum%></font>
共 <font color="red"><%////=totalPageNum%></font> 页
当前为第 <font color="red"><%////=curPageIndex%></font> 页
末页首记录号为 <font color="red"><%////=lastPageFirstRecNum%></font>
-->
<div align="right">
<%
if(curStartRecNum!=1)
{
%>
<a href="javascript:gotoPageByN(1)"><IMG src="images/startpage.gif" border=0 alt='首页'></a>
<%
}
else
{
%>
<IMG src="images/startpage.gif" border=0 alt='首页'>
<%
}
if(curStartRecNum-curPageRecNum>=1)
{
%>
<a href="javascript:gotoPageByN(<%=curStartRecNum-curPageRecNum%>)"><IMG src="images/lastpage.gif" border=0 alt='上一页'></a>
<%
}
else
{
%>
<IMG src="images/lastpage.gif" border=0 alt='上一页'>
<%
}
if(curStartRecNum+curPageRecNum<=lastPageFirstRecNum)
{
%>
<a href="javascript:gotoPageByN(<%=curStartRecNum+curPageRecNum%>)"><IMG src="images/nextpage.gif" border=0 alt='下一页'></a>
<%
}
else
{
%>
<IMG src="images/nextpage.gif" border=0 alt='下一页'>
<%
}
if(curStartRecNum!=lastPageFirstRecNum && lastPageFirstRecNum>=1)
{
%>
<a href="javascript:gotoPageByN(<%=lastPageFirstRecNum%>)"><IMG src="images/endpage.gif" border=0 alt='末页'></a>
<%
}
else
{
%>
<IMG src="images/endpage.gif" border=0 alt='末页'>
<%
}
%>
</div>
<div align="center">
第 <select name="gotopagenum" onChange="gotoPage()">
<%for(int i=1; i<=totalPageNum; i++)
{%>
<option value="<%=(i-1)*curPageRecNum+1%>" <%if(i==curPageIndex){%>selected<%}%>><%=i%></option>
<%}%>
</select> 页
</div>
</td>
</tr>
<tr>
<td valign="middle" align="center"> </td>
</tr>
</table>
</td>
<td width="5"></td>
</tr>
<tr>
<td width="6"></td>
<td colspan="2" class="mainhead"> </td>
<td width="5"></td>
</tr>
<tr>
<td colspan="8" bgcolor="#214984" height="2"></td>
</tr>
</table>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -