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

百货/超市行业

开发平台:

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. <html>
  7. <head>
  8. <title>Media Store</title>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gbk">
  10. <link rel="stylesheet" href="./css/style.css" type="text/css">
  11. </head>
  12. <body background='./images/bgall.gif'>
  13. <table width="98%" align="center">
  14.   <tr>
  15.    <td>
  16. <table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  17.   <tr> 
  18.     <td width="5" rowspan="4" class="trtable"></td>
  19.     <td width="6" bgcolor="#214984" height="1"></td>
  20.     <td rowspan="4" bgcolor="#214984" width="1" height="1"></td>
  21.     <td bgcolor="#214984" class="10p" colspan="2" height="1"></td>
  22.     <td rowspan="4" width="1" bgcolor="#214984" height="1"></td>
  23.     <td bgcolor="#214984" width="5" height="1"></td>
  24.     <td width="5" rowspan="4" class="trtable"></td>
  25.   </tr>
  26.   <tr> 
  27.     <td width="6"></td>
  28.     <td width="379" height="20" class="mainhead">货物信息</td>
  29.     <td class="mainhead" width="379" height="20">&nbsp;</td>
  30.     <td width="5"></td>
  31.   </tr>
  32. <tr> 
  33.     <td width="6"></td>
  34.     <td valign="top" colspan="2"> 
  35.     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  36.         
  37.         <tr> 
  38.           <td height="100" align="center" valign="top">   
  39.           
  40. <%
  41. GoodsInfoViewFB givfb = (GoodsInfoViewFB)request.getAttribute(Globals.REQUEST_GOODSINFOVIEW);
  42. GoodsInfoObj gio = givfb.getGio();
  43. NumberFormat nf = NumberFormat.getNumberInstance();
  44. nf.setMaximumFractionDigits(2);
  45. %>
  46.      <form name="form1" method="post" action="" >
  47.      <!--<font color=#227066><b>添加用户</b></font>-->
  48.      <IMG src="images/line1.gif" border=0>
  49.      <br>
  50.      <TABLE width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF" class="mailtable"> 
  51.   <tr bgcolor="#CAE4F4">
  52.             <td align=center width=10%> 
  53.                 <font color=#227066><b>货物标识:</b></font>
  54.             </td>
  55.             <td width=35%>
  56.             <%
  57.              if(gio.getGoodsId()!=null)
  58.              {
  59.             %>
  60.              <%=gio.getGoodsId()%>
  61.             <%
  62.              }
  63.              else
  64.              {
  65.             %>
  66.              <font color=blue>未进货</font>
  67.             <%
  68.              }
  69.             %>
  70.             </td>
  71.             <td align=center width=10%> 
  72.                 <font color=#227066><b>货物名称:</b></font>
  73.             </td>
  74.             <td width=35%>
  75.             <%
  76.              if("<font color=red>新进货</font>".equals(gio.getGoodsName()))
  77.              {
  78.             %>
  79.              <%=gio.getGoodsName()%>
  80.             <%
  81.              }
  82.              else if(gio.getGoodsName()==null)
  83.              {}
  84.              else
  85.              {
  86.             %>
  87.              <font color=red><%=gio.getGoodsName()%></font>
  88.             <%
  89.              }
  90.             %>
  91.             </td>
  92.           </tr>
  93.   <tr>
  94.             <td align=center width=10%> 
  95.                 <font color=#227066><b>货物类型:</b></font>
  96.             </td>
  97.             <td width=35%>
  98.             <%
  99.              if(gio.getGoodsTypeName()!=null)
  100.              {
  101.             %>
  102.              <%=gio.getGoodsTypeName()%>
  103.             <%
  104.              }
  105.             %>
  106.             </td>
  107.             <td align=center width=10%> 
  108.                 <font color=#227066><b>分类属性:</b></font>
  109.             </td>
  110.             <td width=35%>
  111.             <%
  112.              if(gio.getGoodsClassName()!=null)
  113.              {
  114.             %>
  115.              <%=gio.getGoodsClassName()%>
  116.             <%
  117.              }
  118.             %>
  119.             </td>
  120.           </tr>
  121.           
  122.   <tr bgcolor="#CAE4F4">
  123.             <td align=center width=10%> 
  124.                 <font color=#227066><b>主题人名:</b></font>
  125.             </td>
  126.             <td width=35%>
  127.             <%
  128.              if(gio.getSubjectPersons()!=null)
  129.              {
  130.             %>
  131.              <font color=#AC00FC><%=gio.getSubjectPersons()%></font>
  132.             <%
  133.              }
  134.             %>
  135.             </td>
  136.             <td align=center width=10%> 
  137.                 <font color=#227066><b>编辑人员:</b></font>
  138.             </td>
  139.             <td width=35%>
  140.             <%
  141.              if(gio.getCreators()!=null)
  142.              {
  143.             %>
  144.              <%=gio.getCreators()%>
  145.             <%
  146.              }
  147.             %>
  148.             </td>
  149.           </tr>
  150.           
  151.   <tr>
  152.             <td align=center width=10%> 
  153.                 <font color=#227066><b>库存数量:</b></font>
  154.             </td>
  155.             <td width=35%>
  156.              <%=gio.getRepertoryAmount()%>
  157.             </td>
  158.             <td align=center width=10%> 
  159.                 <font color=#227066><b>库存单价:</b></font>
  160.             </td>
  161.             <td width=35%>
  162.              <%=nf.format(gio.getImportUnitPrice())%>
  163.             </td>
  164.           </tr>
  165.           
  166.   <tr bgcolor="#CAE4F4">
  167.             <td align=center width=10%> 
  168.                 <font color=#227066><b>销售单价:</b></font>
  169.             </td>
  170.             <td width=35%>
  171.              <%=nf.format(gio.getPurchaseUnitPrice())%>
  172.             </td>
  173.             <td align=center width=10%> 
  174.                 <font color=#227066><b>货物特价:</b></font>
  175.             </td>
  176.             <td width=35%>
  177.              <%=nf.format(gio.getSpecialUnitPrice())%>
  178.             </td>
  179.           </tr>
  180.           
  181.   <tr>
  182.             <td align=center width=10%> 
  183.                 <font color=#227066><b>货架名称:</b></font>
  184.             </td>
  185.             <td width=35%>
  186.             <%
  187.              if(gio.getGoodsShelfIdName()!=null)
  188.              {
  189.             %>
  190.              <%=gio.getGoodsShelfIdName()%>
  191.             <%
  192.              }
  193.             %>
  194.             </td>
  195.             <td align=center width=10%> 
  196.                 <font color=#227066><b>货架位置:</b></font>
  197.             </td>
  198.             <td width=35%>
  199.             <%
  200.              if(gio.getShelfLayerId()!=null && !"".equals(gio.getShelfLayerId()))
  201.              {
  202.             %>
  203.              位于第<font color=#EB1BF3><%=gio.getShelfLayerId()%></font>层
  204.             <%
  205.              }
  206.              if(gio.getLayerCellId()!=null && !"".equals(gio.getLayerCellId()))
  207.              {
  208.             %>
  209.              第<font color=#EB1BF3><%=gio.getLayerCellId()%></font>格
  210.             <%
  211.              }
  212.             %>
  213.             </td>
  214.           </tr>
  215.           
  216.   <tr bgcolor="#CAE4F4">
  217.             <td align=center width=10%> 
  218.                 <font color=#227066><b>最近更新:</b></font>
  219.             </td>
  220.             <td width=35%>
  221.     <%
  222.      String tmpdate = "";
  223.      if((gio.getLastUpdateTime())!=null) tmpdate = gio.getLastUpdateTime();
  224.      if(tmpdate.length()>=19)
  225.      {
  226.      tmpdate = tmpdate.substring(0,19);
  227.      }
  228.      if(!"".equals(tmpdate))
  229.      {
  230.     %>
  231.              于 <font color=#0404C5><%=tmpdate%></font>
  232.             <%
  233.              }
  234.              if(gio.getLastCreator()!=null && !"".equals(gio.getLastCreator()))
  235.              {
  236.             %>
  237.              由 <font color=#0404C5><%=gio.getLastCreator()%></font> 更新
  238.             <%
  239.              }
  240.             %>
  241.             </td>
  242.             <td align=center width=10%> 
  243.                 <font color=#227066><b>货物状态:</b></font>
  244.             </td>
  245.             <td width=35%>
  246. <%
  247. if("0".equals(gio.getConfirmFlage()))
  248. {
  249. %>
  250. <font color=#E61577>临时入库</font>
  251. <%
  252. }
  253. else if("1".equals(gio.getConfirmFlage()))
  254. {
  255. %>
  256. <font color=#007168>正式入库</font>
  257. <%
  258. }
  259. %>
  260.             </td>
  261.           </tr>
  262. </TABLE>
  263. </form>
  264. <br>
  265.      <br>
  266.     
  267. <a href="javascript:this.close()">关闭</a>
  268. </td>
  269.         </tr>
  270.         <tr> 
  271.           <td valign="middle" align="center">&nbsp;</td>
  272.         </tr>
  273.       </table>
  274.       
  275.     </td>
  276.     <td width="5"></td>
  277.   </tr>
  278.   <tr> 
  279.     <td width="6"></td>
  280.     <td colspan="2" class="mainhead">&nbsp;</td>
  281.     <td width="5"></td>
  282.   </tr>
  283.   <tr> 
  284.     <td colspan="8" bgcolor="#214984" height="2"></td>
  285.   </tr>
  286. </table>
  287. </td>
  288.   </tr>
  289. </table>
  290. </body>
  291. </html>