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

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page language="java" %>
  3. <%@ page import="java.util.*" %>
  4. <%@ page import="java.lang.*" %>
  5. <%@ page import="com.vnex.intranet.budget.value.*" %>
  6. <%@ page import="com.vnex.intranet.util.FieldUtil" %> 
  7. <%@ page import="java.text.DecimalFormat" %>
  8. <jsp:useBean id="BudgetListProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetListProxyBean" />
  9.                         <%
  10.         String paraMonth = request.getParameter("month");
  11. int department = (new Integer(request.getParameter("id"))).intValue();
  12. int total=0;
  13. double budgetTotal = 0.0d;
  14. double actualTotal = 0.0d;
  15. double balanceTotal = 0.0d;
  16. DecimalFormat dFormat = new DecimalFormat("##.##");
  17. %>
  18. <HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  19. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  20. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  21. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  22. <DIV align=center>
  23. <form name="form1" method="post" action="">
  24.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  25.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  26.     <TR> 
  27.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  28.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  29.             <tr valign="top"> 
  30.               <td > 
  31.                 
  32.                 <table width="100%" border="0" cellspacing="0" cellpadding="2">
  33.                   <tr> 
  34.                     <td bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>&gt;&gt;<a href="/mainctrl/budget/index"><font color="#FFFFFF">部门预算</font></a>&gt;&gt;部门预算详细信息</font></td>
  35.                   </tr>
  36.                 </table>
  37.                 <table class=title width="100%" border="0" cellpadding="2" cellspacing="0">
  38.                   <tr bgcolor="#fafafa"> 
  39.                     <td colspan="5"> 
  40. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  41.                         <tr>
  42.                           <td width="80%"><font class="strong">&nbsp;&nbsp;请查看<%=paraMonth%>预算执行情况:</font> 
  43.                           </td>
  44.                           <td width="20%">
  45.                             <div align="right"><font class="strong">单位:元&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
  46.                           </td>
  47.                         </tr>
  48.                       </table>
  49.                     </td>
  50.                   </tr>
  51.                 </table>
  52.                 <table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
  53.                   <tr align="center"> 
  54.                     <td width="100"><font class="strong">项目</font></td>
  55.                     <td width="100"><font class="strong">预算额</font></td>
  56.                     <td width="100"><font class="strong">发生额</font></td>
  57.                     <td width="100"><font class="strong">差额</font></td>
  58.                     <td width="200"><font class="strong">备注</font></td>
  59.                   </tr>
  60.                   <%
  61.     String col = "";
  62. try
  63. {
  64. BudgetListValueBean valueBean = null;
  65. //Collection coll = BudgetListProxy.showOneBudget("2001-01", 2);
  66. Collection coll = BudgetListProxy.showOneBudget(paraMonth, department);
  67. Iterator iter = coll.iterator();
  68. while(iter.hasNext())
  69. {
  70.     valueBean = (BudgetListValueBean)iter.next();
  71. total++;
  72. col = ((total%2)==1)?"#fafafa":"#e0e0e0";
  73. %>
  74.                   <tr align="center" bgcolor=<%=col%>> 
  75.                     <td width="100"><%=valueBean.getComponentName()%></td>
  76.                     <td width="100"><%=valueBean.getBudget()%></td>
  77.                     <td width="100"><%=valueBean.getActual()%></td>
  78.                     <td width="100"> 
  79.                       <%
  80. double val = (double)(valueBean.getBudget()-valueBean.getActual());
  81. out.println(dFormat.format(val));
  82. budgetTotal += valueBean.getBudget();
  83. actualTotal += valueBean.getActual();
  84. balanceTotal += val;
  85. %>
  86.                     </td>
  87.                     <td width="200"><%=FieldUtil.filterScriptTag(FieldUtil.filterQuotTag(valueBean.getDescription()))%></td>
  88.                   </tr>
  89.                   <%
  90.     }
  91.     }
  92. catch(Exception e)
  93. {
  94.      out.println(e);
  95. }
  96. if(col.equals("#e0e0e0"))
  97. {
  98.     col="#fafafa";
  99. }
  100. else
  101. {
  102.     col="#e0e0e0";
  103. }
  104. %>
  105.                   <tr align="center" bgcolor=<%=col%>> 
  106.                     <td height="20" ><font class="strong">总计</font>:</td>
  107.                     <td height="20" ><%=dFormat.format(budgetTotal)%></td>
  108.                     <td height="20" ><%=dFormat.format(actualTotal)%></td>
  109.                     <td height="20" ><%=dFormat.format(balanceTotal)%></td>
  110.                     <td height="20" >&nbsp;</td>
  111.                   </tr>
  112.                   <tr align="center" bgcolor=#fafafa> 
  113.                     <td colspan="5" height="30" > 
  114.                       <input type="button"  onClick="history.back()"  value="返回" class="text">
  115.                     </td>
  116.                   </tr>
  117.                 </table>
  118.                 
  119.               </td>
  120.             </tr>
  121.           </table>          <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  122.        </TD>
  123.     </TR>
  124.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  125.     </TABLE>
  126.     <BR>
  127.     <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  128. </form>
  129.   </DIV>
  130.  </BODY>
  131. </HTML>