📄 importcontractlist.jsp
字号:
<jsp:useBean id="importcontract" class="src.wuyang.ImportContract" scope="session"/>
<jsp:useBean id="moneyflag" class="src.wuyang.MoneyFlag" scope="page"/>
<jsp:useBean id="customer" class="src.wuyang.Customer" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>进出口合同详细信息</title>
<link rel="stylesheet" href="css.css">
</head>
<%
int position,state,curPage,totalPage;
int numInOnePage = importcontract.getNumInOnePage();
importcontract.listPage(request);
String str[] = {"要求审核","部门审核通过","高层审核通过","","","","","","高层审核不通过","部门审核不通过"};
position = importcontract.listPosition;
state = importcontract.state;
curPage = importcontract.curPage;
totalPage = importcontract.totalPage;
//System.out.println("totalPage=" + totalPage);
//System.out.println("curPage=" + curPage);
//System.out.println("position=" + position);
//System.out.println("state=" + state);
%>
<body bgcolor=#949b93>
<table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0" class="text">
<tr>
<td valign="top">
<blockquote><br>
<br><form method="post">
<table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" width="898" cellpadding="0" cellspacing="0">
<tr class="text">
<td width="53" bgcolor="#949b93">
<div align="center"><b>合同编号 </b></div>
</td>
<td width="114" bgcolor="#949b93">
<div align="center"><b>客户名称 </b></div>
</td>
<td width="56" bgcolor="#949b93">
<div align="center"><b>合同标记 </b></div>
</td>
<td width="109" bgcolor="#949b93">
<div align="center"><b>合同状态 </b></div>
</td>
<td width="43" bgcolor="#949b93">
<div align="center"><b>到达港 </b></div>
</td>
<td width="80" bgcolor="#949b93">
<div align="center"><b>装船期 </b></div>
</td>
<td width="91" bgcolor="#949b93">
<div align="center"><b>装运港 </b></div>
</td>
<td width="141" bgcolor="#949b93">
<div align="center"><b>到货期 </b></div>
</td>
<td width="54" bgcolor="#949b93">
<div align="center"><b>币制 </b></div>
</td>
</tr>
<%
for(int listCount = 0; listCount < numInOnePage && (importcontract.next() > 0) ; listCount++)
{
%>
<tr class="textb">
<td width="53"><a href="ImportContractIndex.jsp?contractId=<%=importcontract.getContractId()%>"><%=importcontract.getContractId() %></a></td>
<% customer.load(importcontract.getCustomerId());
%>
<td width="114"><%=customer.getCustomerName()%></td>
<% if(importcontract.getContractFlag()==1)
{%>
<td width="56">进口 </td>
<% }
if(importcontract.getContractFlag()==0)
{%>
<td width="109">出口 </td>
<% }
%>
<td width="43"><%=str[importcontract.getContractState()]%> </td>
<td width="80"><%=importcontract.getArrivPort()%> </td>
<td width="91"><%=importcontract.getStringDate(importcontract.getLoadDate(),0)%>
</td>
<td width="141"><%=importcontract.getLoadPort()%> </td>
<td width="54"><%=importcontract.getStringDate(importcontract.getArriveDate(),0)%>
</td>
<%
moneyflag.load(importcontract.getMoneyFlag());
%>
<td width="135"><%=moneyflag.getMoneyFlagDesc()%> </td>
</tr>
<%
}
%>
<p>
<% if (position==0&&state==0){ %>
页码 <%=curPage %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="ImportContractList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="ImportContractList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="ImportContractList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="ImportContractList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码
<%=curPage %> / <%=totalPage%>
<% } %>
</table>
</form></blockquote></td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -