Dep_index.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="java.lang.*" %>
- <%@ page import="com.vnex.intranet.util.*"%>
- <%@ page import="com.vnex.intranet.budget.value.*" %>
- <jsp:useBean id="BudgetListProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetListProxyBean" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top" bgcolor="#fafafa">
- <td >
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#FFFFFF">个人办公</font></a>>>部门预算</font></td>
- </tr>
- </table>
- <%
- int departmentId = BusinessName.getDeptId();
- String createMonth = BudgetListProxy.getCurrentCreateMonth(departmentId);
- String divisionName = BudgetListProxy.divisionName(departmentId);
- %>
- <table border="0" cellpadding="2" cellspacing="0" width="600">
- <tr bgcolor="#e0e0e0">
- <td colspan="4"> <font class="strong"> 部门:<%=divisionName%>
- </font> </td>
- </tr>
- </table>
- <table border="0" cellspacing="1" cellpadding="2" width="600" class=title>
- <tr bgcolor="#fafafa">
- <td colspan="13" height="30">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20%">
- <input type="button" name="Button5" value="新建" onClick="location='/mainctrl/budget/managementCreate?month=<%=createMonth%>&id=<%=departmentId%>'" class="text"> <input type="button" name="Button52" value="查看" onClick="location='/mainctrl/budget/resultDep'" class="text">
- </td>
- <td width="80%">
- <div align="right"><img src=/vnex/MacOS/folder.gif border=0 >
- 查看本月预算额和实际发生额 <img src=/vnex/MacOS/list.gif border=0 >录入实际发生额</div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr bgcolor="#b4b4b4">
- <td bgcolor="#b4b4b4"> </td>
- <td width="40" align="center"> 1月</td>
- <td width="40" align="center"> 2月 </td>
- <td width="40" align="center"> 3月 </td>
- <td width="40" align="center"> 4月 </td>
- <td width="40" align="center"> 5月 </td>
- <td width="40" align="center"> 6月 </td>
- <td width="40" align="center"> 7月 </td>
- <td width="40" align="center"> 8月 </td>
- <td width="40" align="center"> 9月 </td>
- <td width="40" align="center"> 10月 </td>
- <td width="40" align="center"> 11月 </td>
- <td width="40" align="center"> 12月 </td>
- </tr>
- <!--预算列表开始-->
- <!-- 开始显示列表 -->
- <%
- try
- {
- Hashtable minMax = BudgetListProxy.getMaxMinMonth(departmentId);
- //int divisionId = 2;
- String linkYear = "";
- String zero = "";
- String linkMonth = "";
- int start = 1;
- String blank = " ";
- String col = "";
- int colorInt = 1;
- int flag = 0;
- if ( request.getParameter("start") !=null )
- {
- start = Integer.parseInt( request.getParameter("start") );
- }
- int rowPerPage = com.vnex.intranet.system.loader.ConfigParaLoader.getParameterByInt("rowNum");;
- if(minMax != null)
- {
- Collection coll = BudgetListProxy.oneDivisionAllBudget(departmentId);
- Iterator iter = coll.iterator();
- int size = coll.size();
- String action = "/mainctrl/budget/index?a";
- String nav = NavBar.makeNavbar(start, size, rowPerPage, action);
- int minYear = ((Integer)minMax.get("minYear")).intValue();
- int maxYear = ((Integer)minMax.get("maxYear")).intValue();
- maxYear = maxYear+1-start;
- while(iter.hasNext() && flag < size && flag <(start+rowPerPage-1))
- {
- flag++;
- Hashtable ht = (Hashtable)iter.next();
- if (flag<start) continue;
- col = ((colorInt%2)==1)?"#fafafa":"#e0e0e0";
- %>
- <tr bgcolor=<%=col%>>
- <td>
- <div align="center"><font class="strong"><%=maxYear%>年</font></div>
- </td>
- <%
- linkYear = Integer.toString(maxYear);
- for(int i=1; i<=12; i++)
- {
- if(((Integer)ht.get(new Integer(i).toString())).intValue() == 3)
- {
- zero = (i<10)?"-0":"-";
- linkMonth = Integer.toString(i);
- out.println("<td width=40 align=center><a href=/mainctrl/budget/managementPast?month="+linkYear+zero+linkMonth+"&id="+departmentId+"><img src=/vnex/MacOS/folder.gif border=0 ></a></td>");
- }
- else if(((Integer)ht.get(new Integer(i).toString())).intValue() == 2)
- {
- zero = (i<10)?"-0":"-";
- linkMonth = Integer.toString(i);
- out.println("<td width=40 align=center><a href=/mainctrl/budget/managementInput?month="+linkYear+zero+linkMonth+"&id="+departmentId+"><img src=/vnex/MacOS/list.gif border=0 ></a></td>");
- }
- else
- {
- out.println("<td width=40>"+blank+"</td>");
- }
- }
- %>
- </tr>
- <!--结束列表显示-->
- <%
- maxYear--;
- colorInt++;
- }
- %>
- <tr bgcolor="#e0e0e0">
- <td colspan="13"> <%=nav%>
- <%
- }
- }
- catch(Exception e)
- {
- out.println(e);
- }
- %>
- </td>
- </tr>
- <!--预算列表结束-->
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>