datestat.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:5k
源码类别:

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  4. <link rel="stylesheet" href="/vnex/hr_MacOS.css" type="text/css">
  5. <script language="JavaScript">
  6. <!--
  7. function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  8.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  9.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  10.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  11. }
  12. MM_reloadPage(true);
  13. // -->
  14. </script>
  15. <%@ page import="java.util.*"%>
  16. <%@ page import="java.sql.*"%>
  17. <%@ page import="com.vnex.intranet.util.*"%>
  18. <%@ page import="com.vnex.intranet.equipment.value.*"%>
  19. <%@ page import="com.vnex.intranet.equipment.process.*"%>
  20. <%
  21. EquipmentStatViewBean statInfo;
  22. %>
  23. <jsp:useBean id="StatCondition" class="com.vnex.intranet.equipment.value.EquipmentConditionBean" scope="Application" />
  24. <jsp:useBean id="DepartmentStatProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="Application" />
  25. <%
  26. String year = request.getParameter("year");
  27. StatCondition.setYear(year);
  28. statInfo = DepartmentStatProxy.stat(StatCondition,"DateStat");
  29. Collection Col_categoryname = statInfo.getCategoryName();
  30. Collection Col_month = statInfo.getMonth();
  31. Collection Col_quantity = statInfo.getQuantity();
  32. %>
  33. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  34. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  36. <DIV align=center>
  37. <form name="form1" method="post" action="">
  38.    <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  39.       <TBODY> 
  40.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  41.       <TR> 
  42.         <TD colSpan=3 align="center"><br>
  43.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  44.             <tr> 
  45.               <td bgcolor="#fafafa">
  46.    <div id="Layer1" style="width:600px; height:340px; z-index:1; overflow:auto ">
  47.    <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  48.                   <tr bgcolor="#666666"> 
  49.                      <td colspan="<%=Col_categoryname.size()+1%>">
  50.                         <div align="left"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/office/main"><font color="#FFFFFF">办公室管理</font></a>&gt;&gt;<a href="/mainctrl/equipmentSearchResult"><font color="#FFFFFF">固定资产管理</font></a>&gt;&gt;<a href="/mainctrl/equipmentStat"><font color="#FFFFFF">固定资产统计</font></a>&gt;&gt;按时间统计</font></div>
  51.                       </td>
  52.                   </tr>
  53.             
  54.             <%
  55.              int i,j;            
  56.             %>
  57.               
  58.             <tr align=middle> 
  59.               <td><font class="strong">月份</font></td>
  60.             <%
  61.              for (i = 0;i < Col_categoryname.size(); i++)
  62.              {
  63.             %>
  64.              <td><font class="strong"><%=Col_categoryname.toArray()[i]%></font></td>
  65.             <%
  66.              }
  67.             
  68.             %>  
  69.             </tr>
  70.             <%
  71.              for (i = 0;i < Col_month.size();i ++)
  72.              {
  73.              if (i%2 == 0)
  74.              out.println("<tr align=middle bgcolor=#fafafa>");
  75.              else
  76.              out.println("<tr align=middle bgcolor=#e0e0e0>");
  77.             
  78.             %>
  79.               <td><font class="strong">
  80.               <%
  81.                out.print(Col_month.toArray()[i]+" 月");
  82.               %>
  83.               </font></td>
  84.               <%
  85.                for (j = 0;j < Col_categoryname.size(); j++) 
  86.                {
  87.               %>
  88.                <td><%=Col_quantity.toArray()[i * Col_categoryname.size() + j].toString()%></td>
  89.               <%
  90.                }
  91.               %>
  92.               
  93.             </tr>
  94.             <%
  95.              }
  96.             %>
  97.             <tr bgcolor="#FAFAFA">
  98.                <td colspan="<%=Col_categoryname.size()+1%>" align="center">
  99.                 <input type="button" name="Button322" value="返回" class="file" onclick="history.back()">
  100.                </td>
  101.             </tr>
  102.           </table>
  103.           
  104.    </div>
  105.                 </td>
  106.           </tr>
  107.           </table>
  108.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  109.        </TD>
  110.      </TR>
  111.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  112.     </TBODY> 
  113.   </TABLE>
  114.     <BR>
  115.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  116. </form>
  117. </DIV>
  118. </BODY>
  119. </HTML>