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

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="java.sql.*"%>
  5. <%@ page import="com.vnex.intranet.util.*"%>
  6. <%@ page import="com.vnex.intranet.equipment.value.*"%>
  7. <%@ page import="com.vnex.intranet.equipment.process.*"%>
  8. <%
  9. EquipmentStatViewBean statInfo;
  10. %>
  11. <jsp:useBean id="StatCondition" class="com.vnex.intranet.equipment.value.EquipmentConditionBean" scope="Application" />
  12. <jsp:useBean id="DepartmentStatProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="Application" />
  13. <%
  14. statInfo = DepartmentStatProxy.stat(StatCondition,"DepartmentStat");
  15. Collection Col_categoryname = statInfo.getCategoryName();
  16. Collection Col_departmentname = statInfo.getDepartmentName();
  17. Collection Col_quantity = statInfo.getQuantity();
  18. %>
  19. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  20. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  21. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  22. <DIV align=center>
  23. <form name="form1" method="post" action="">
  24.    
  25.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  26.       <TBODY> 
  27.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  28.       <TR> 
  29.         <TD colSpan=3 align="center"><br>
  30.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  31.             <tr> 
  32.               <td bgcolor="#fafafa"> 
  33.   <div id="Layer1" style="width:600px; height:365px; z-index:1; overflow:auto ">
  34.                 <table class=title cellspacing=1 cellpadding=2 width="600" border=0>
  35.                   <tr bgcolor="#666666"> 
  36.                      <td colspan="<%=Col_categoryname.size()+1%>">
  37.                         <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>
  38.                       </td>
  39.                   </tr>
  40.             
  41.             <%
  42.              int i,j;
  43.             
  44.             %>
  45.              
  46.             <tr align=middle> 
  47.               <td><font class="strong">购买部门</font></td>
  48.             <%
  49.              for (i = 0;i < Col_categoryname.size(); i++)
  50.              {
  51.             %>
  52.              <td><font class="strong"><%=Col_categoryname.toArray()[i]%></font></td>
  53.             <%
  54.              }
  55.             
  56.             %>  
  57.             </tr>
  58.             <%
  59.              for (i = 0;i < Col_departmentname.size();i ++)
  60.              {
  61.             
  62.              if (i%2 == 0)
  63.              {
  64.              if (Col_departmentname.size() % 2 ==0)
  65.              out.println("<tr align=middle bgcolor=#fafafa>");
  66.              else
  67.              out.println("<tr align=middle bgcolor=#e0e0e0>");            
  68.              }            
  69.              else
  70.              if (Col_departmentname.size() % 2 ==0)
  71.              out.println("<tr align=middle bgcolor=#e0e0e0>");
  72.              else
  73.              out.println("<tr align=middle bgcolor=#fafafa>");
  74.             
  75.             %>
  76.               <td><font class="strong">
  77.               <%
  78.                out.print(Col_departmentname.toArray()[i]);
  79.               %>
  80.               </font></td>
  81.               <%
  82.                for (j = 0;j < Col_categoryname.size(); j++) 
  83.                {
  84.               %>
  85.                <td><%=Col_quantity.toArray()[i * Col_categoryname.size() + j].toString()%></td>
  86.               <%
  87.                }
  88.               %>
  89.               
  90.             </tr>
  91.             <%
  92.              }
  93.             %>
  94.             <tr bgcolor="#FAFAFA">
  95.               <td colspan="<%=Col_categoryname.size()+1%>" align="center">
  96.                 <input type="button" name="Button322" value="返回" class="file" onclick="history.back()">
  97.               </td>
  98.             </tr>
  99.           </table>
  100.   </div>
  101.           </td>
  102.           </tr>
  103.           </table> 
  104.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  105.        </TD>
  106.      </TR>
  107.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  108.     </TBODY> 
  109.   </TABLE>
  110.     <BR>
  111.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  112. </form>
  113. </DIV>
  114. </BODY>
  115. </HTML>