📄 importbillsearchcon.jsp
字号:
lastOrderStr = ibsr.getOrderStr();
lastBillId = ibsr.getBillId()+"";
lastSendPersons = ibsr.getSendPersons();
lastInceptPersons = ibsr.getInceptPersons();
lastImportTime1 = ibsr.getImportTime1();
lastImportTime2 = ibsr.getImportTime2();
lastPaymentTime1 = ibsr.getPaymentTime1();
lastPaymentTime2 = ibsr.getPaymentTime2();
}
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">
<b>进货单号:</b>
</td>
<td>
<SELECT size=1 name="billid">
<option value="0">请选择...</option>
<%
for(int i=0; i<billIdList.size(); i++)
{
tmpStr = (String)billIdList.get(i);
%>
<option value="<%=tmpStr%>"><%=tmpStr%></option>
<%
}
%>
</SELECT>
</td>
<td align="right">
<b>发货人员:</b>
</td>
<td>
<SELECT name="sendpersons">
<option value="0">请选择...</option>
<%
for(int i=0; i<sendPersonsList.size(); i++)
{
tmpStr = (String)sendPersonsList.get(i);
%>
<option value="<%=tmpStr%>"><%=tmpStr%></option>
<%
}
%>
</SELECT>
</td>
<td align="right">
<b>收货人员:</b>
</td>
<td>
<SELECT name="inceptpersons">
<option value="0">请选择...</option>
<%
for(int i=0; i<inceptPersonsList.size(); i++)
{
tmpStr = (String)inceptPersonsList.get(i);
%>
<option value="<%=tmpStr%>"><%=tmpStr%></option>
<%
}
%>
</SELECT>
</td>
</tr>
</TABLE>
<TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">
<tr>
<TD align="right" width=13%><b>进货时间:</b></TD>
<TD width=65%>
起始
<input type=text name='importtime1' size="20" class="none">
<img src="./images/cal.gif" width="16" height="16" border="0" style="cursor:hand;" align="absmiddle" alt="弹出日历菜单" onClick="Calendar_importtime1()">
终止
<input type=text name='importtime2' size="20" class="none">
<img src="./images/cal.gif" width="16" height="16" border="0" style="cursor:hand;" align="absmiddle" alt="弹出日历菜单" onClick="Calendar_importtime2()">
</TD>
<TD> </TD>
</tr>
<tr>
<TD align="right" width=13%><b>付款时间:</b></TD>
<TD width=65%>
起始
<input type=text name='paymenttime1' size="20" class="none">
<img src="./images/cal.gif" width="16" height="16" border="0" style="cursor:hand;" align="absmiddle" alt="弹出日历菜单" onClick="Calendar_paymenttime1()">
终止
<input type=text name='paymenttime2' size="20" class="none">
<img src="./images/cal.gif" width="16" height="16" border="0" style="cursor:hand;" align="absmiddle" alt="弹出日历菜单" onClick="Calendar_paymenttime2()">
</TD>
<TD>
<input name=searchbutton type=button value="查询" onClick='mySubmit1()' >
</TD>
</tr>
<tr>
<TD align="right" width=13%><b>排序方式:</b></TD>
<TD width=65%>
<SELECT name="orderstr">
<option value="BillID">进货单号升序</option>
<option value="BillID DESC">进货单号降序</option>
<option value="ImportTime">进货时间升序</option>
<option value="ImportTime DESC">进货时间降序</option>
<option value="PaymentTime">付款时间升序</option>
<option value="PaymentTime DESC">付款时间降序</option>
</SELECT>
</TD>
<td> </td>
</tr>
</TABLE>
</form>
<form name="form2" method="post" action="" >
<font color=#215385><b>进货单列表</b>(共 <font color="red"><%=totalBillNum%></font> 张进货单)</font>
<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="sendpersons" value="<%=lastSendPersons%>">
<input type="hidden" name="inceptpersons" value="<%=lastInceptPersons%>">
<input type="hidden" name="importtime1" value="<%=lastImportTime1%>">
<input type="hidden" name="importtime2" value="<%=lastImportTime2%>">
<input type="hidden" name="paymenttime1" value="<%=lastPaymentTime1%>">
<input type="hidden" name="paymenttime2" value="<%=lastPaymentTime2%>">
<TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">
<%
if(importBillList.size()>0)
{
%>
<tr bgcolor="#C2CEDC">
<th></th>
<th>进货单号</th>
<th>发货人员</th>
<th>收货人员</th>
<th>货单总价</th>
<th>进货时间</th>
<th>付款时间</th>
<th>取消</th>
<th>删除</th>
</tr>
<%
}
%>
<%
NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(2);
int index = 0;
GoodsImportBillInfo tmpInfo = null;
for (index=0; index<importBillList.size(); index++)
{
tmpInfo = (GoodsImportBillInfo)importBillList.get(index);
%>
<tr <%if((index%2)==1){%>bgcolor="#CAE4F4"<%}%> >
<td align='center' width=2%><a href="<%= request.getContextPath() + "/importItemsView.do?billId=" + tmpInfo.getBillId() %>" target='importitems'><IMG src="images/news1.gif" border=0 alt='查看进货明细'></a></td>
<td align='center'><%= tmpInfo.getBillId() %></td>
<td align='center'><%= tmpInfo.getSendPersons() %></td>
<td align='center'><%= tmpInfo.getInceptPersons() %></td>
<td align='center'><%= nf.format(tmpInfo.getTotalPrice()) %></td>
<td align='center'>
<%
String tmpTime = tmpInfo.getImportTime();
if(tmpTime==null)tmpTime="";
if(tmpTime.length()>=19)
{
%>
<%= tmpTime.substring(0,19) %>
<%
}
%>
</td>
<td align='center'>
<%
if(tmpInfo.getPaymentTime()==null)
{
%>
<font color=#E61577>未付款</font><font color=#215385>【</font><a href="javascript:updatePaymentTime('<%=curStartRecNum%>', '<%= tmpInfo.getBillId() %>') ">付款</a><font color=#215385>】</font>
<%
}else if((tmpInfo.getPaymentTime()).length()>=19){
%>
<%= tmpInfo.getPaymentTime().substring(0,19) %>
<%
}
%>
</td>
<td align='center'>
<%
if(tmpInfo.getCancelAbleFlage().equals("1"))
{//可退库(即取消进货单)
%>
<a href="javascript:exportGoodsForBill('<%=curStartRecNum%>', '<%= tmpInfo.getBillId() %>') ">取消</a>
<%
}
%>
</td>
<td align='center'>
<a href="javascript:deleteAImportBill('<%=curStartRecNum%>', '<%= tmpInfo.getBillId() %>') "><IMG src="images/delto.gif" border=0></a>
</td>
</tr>
<%
}//for
%>
</TABLE>
</form>
<!--
共 <font color="red"><%=totalBillNum%></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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -