ImportItemsView.jsp
上传用户:wenzhanhao
上传日期:2022-03-28
资源大小:9150k
文件大小:4k
源码类别:

百货/超市行业

开发平台:

Visual C++

  1. <%@ page contentType="text/html; charset=gbk" language="java" %>
  2. <%@ taglib uri='/WEB-INF/tlds/MediaStore_template.tld' prefix='mstemplate' %>
  3. <%@ page import="mediastore.web.global.*"%>
  4. <%@ page import="mediastore.web.form.*"%>
  5. <%@ page import="java.text.*"%>
  6. <%@ page import="java.util.*"%>
  7. <html>
  8. <head>
  9. <title>Media Store</title>
  10. <meta http-equiv="Content-Type" content="text/html; charset=gbk">
  11. <link rel="stylesheet" href="./css/style.css" type="text/css">
  12. </head>
  13. <body background='./images/bgall.gif'>
  14. <table width="98%" align="center">
  15.   <tr>
  16.    <td>
  17. <table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  18.   <tr> 
  19.     <td width="5" rowspan="4" class="trtable"></td>
  20.     <td width="6" bgcolor="#214984" height="1"></td>
  21.     <td rowspan="4" bgcolor="#214984" width="1" height="1"></td>
  22.     <td bgcolor="#214984" class="10p" colspan="2" height="1"></td>
  23.     <td rowspan="4" width="1" bgcolor="#214984" height="1"></td>
  24.     <td bgcolor="#214984" width="5" height="1"></td>
  25.     <td width="5" rowspan="4" class="trtable"></td>
  26.   </tr>
  27.   <tr> 
  28.     <td width="6"></td>
  29.     <td width="379" height="20" class="mainhead">进货明细</td>
  30.     <td class="mainhead" width="379" height="20">&nbsp;</td>
  31.     <td width="5"></td>
  32.   </tr>
  33. <tr> 
  34.     <td width="6"></td>
  35.     <td valign="top" colspan="2"> 
  36.     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  37.         
  38.         <tr> 
  39.           <td height="100" align="center" valign="top">   
  40.           
  41. <%
  42. ImportItemsViewFB iivfb = (ImportItemsViewFB)request.getAttribute(Globals.REQUEST_IMPORTITEMSVIEW);
  43. List giiiList = iivfb.getGiiiList();
  44. %>
  45.      <form name="form1" method="post" action="" >
  46.      <IMG src="images/line1.gif" border=0>
  47.      <br>
  48. <TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable">  
  49. <%
  50. if(giiiList.size()>0)
  51. {
  52. %>
  53. <tr bgcolor="#C2CEDC">
  54. <th></th>
  55. <th>货物标识</th>
  56. <th>货物名称</th>
  57. <th>数量</th>
  58. <th>单价</th>
  59. <th>录入人员</th>
  60. <th>录入时间</th>
  61. <th>单据状态</th>
  62. </tr>
  63. <%
  64. }
  65. %>
  66. <%
  67. NumberFormat nf = NumberFormat.getNumberInstance();
  68. nf.setMaximumFractionDigits(2);
  69. int index = 0;
  70.        GoodsImportGoodsInfo tmpInfo = null;
  71.       
  72.        for (index=0; index<giiiList.size(); index++)
  73. {
  74.        tmpInfo = (GoodsImportGoodsInfo)giiiList.get(index);
  75.        %>
  76.         <tr <%if((index%2)==1){%>bgcolor="#CAE4F4"<%}%> >
  77. <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>
  78.         <td align='center'><%= tmpInfo.getGoodsId() %></td>
  79.         <td align='center'><%= tmpInfo.getGoodsName() %></td>
  80. <td align='center'><%= tmpInfo.getImportAmount() %></td>
  81. <td align='center'><%= nf.format(tmpInfo.getImportUnitPrice()) %></td>
  82. <td align='center'><%= tmpInfo.getCreatePerson() %></td>
  83. <td align='center'>
  84. <%
  85. String tmpTime = tmpInfo.getCreateTime();
  86. if(tmpTime==null)tmpTime="";
  87. if(tmpTime.length()>=19)
  88. {
  89. %>
  90. <%= tmpTime.substring(0,19) %>
  91. <%
  92. }
  93. %>
  94. </td>
  95. <td align='center'>
  96. <%
  97. if(tmpInfo.getConfirmFlage().equals("0"))
  98. {
  99. %>
  100. <font color=#E61577>临时单</font>
  101. <%
  102. }else{
  103. %>
  104. <font color=#007168>确认单</font>
  105. <%
  106. }
  107. %>
  108. </td>
  109.         </tr>
  110.         <%
  111.        }//--for
  112.         %>
  113. </TABLE>
  114. </form>
  115. <br>
  116.      <br>
  117.     
  118. <a href="javascript:this.close()">关闭</a>
  119. </td>
  120.         </tr>
  121.         <tr> 
  122.           <td valign="middle" align="center">&nbsp;</td>
  123.         </tr>
  124.       </table>
  125.       
  126.     </td>
  127.     <td width="5"></td>
  128.   </tr>
  129.   <tr> 
  130.     <td width="6"></td>
  131.     <td colspan="2" class="mainhead">&nbsp;</td>
  132.     <td width="5"></td>
  133.   </tr>
  134.   <tr> 
  135.     <td colspan="8" bgcolor="#214984" height="2"></td>
  136.   </tr>
  137. </table>
  138. </td>
  139.   </tr>
  140. </table>
  141. </body>
  142. </html>