Dep_index_before.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:4k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page language="java" %>
- <%@ page import="java.util.*"%>
- <%@ page import="java.lang.*"%>
- <%@ page import="com.vnex.intranet.organization.proxy.*"%>
- <%@ page import="com.vnex.intranet.privilegeassign.proxy.*"%>
- <%@ page import="com.vnex.intranet.organization.value.*"%>
- <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>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <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>
- <table border="0" cellpadding="2" cellspacing="0" width="600">
- <tr bgcolor="#e0e0e0">
- <td colspan="4"> <font class="strong"> 您有权限对以下部门进行部门预算,请选择部门:</font>
- </td>
- </tr>
- <%
- int rowColor = 1;
- PositionProxyBean proxy = new PositionProxyBean();
- EmpPrivilegeProxyBean empProxy = new EmpPrivilegeProxyBean();
- Collection coll = proxy.findEmpDivision(BusinessName.getEmpId(), 11127);
- Collection empColl = empProxy.getAssignedDivisions(BusinessName.getEmpId(), 11127);
- coll.removeAll(empColl);
- coll.addAll(empColl);
- Iterator iter = coll.iterator();
- while(iter.hasNext())
- {
- String rColor = (rowColor%2==1)?"#fafafa":"#e0e0e0";
- out.println("<tr bgcolor="+rColor+">");
- out.println("<td colspan=4> <div align=center>");
- DivisionValueBean pinfo = (DivisionValueBean)iter.next();
- if (coll.size() == 1)
- {
- BusinessName.setDeptId(pinfo.getDivisionId());
- BusinessName.setDeptName(pinfo.getDivisionName());
- response.sendRedirect("/mainctrl/budget/index");
- }
- out.println("<a href="/mainctrl/budget/indexMiddle?depId="+pinfo.getDivisionId()+"&depName="+pinfo.getDivisionName()+"">");
- //out.println(pinfo.getDivisionId());
- out.println(pinfo.getDivisionName());
- out.println("</a><br></div></td></tr>");
- rowColor++;
- }
- %>
- </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>