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

电子政务应用

开发平台:

Java

  1. <%@ page language="java" %>
  2.             
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="java.lang.*"%>
  5. <%@ page import="com.vnex.intranet.organization.proxy.*"%>
  6. <%@ page import="com.vnex.intranet.privilegeassign.proxy.*"%>
  7. <%@ page import="com.vnex.intranet.organization.value.*"%>
  8. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  9. <HTML>
  10. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  11. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  12. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  13. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  14. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  15. <DIV align=center>
  16. <form name="form1" method="post" action="">
  17.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  18.          <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  19.     <TR> 
  20.         <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
  21.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  22.             <tr valign="top" bgcolor="#fafafa"> 
  23.               <td > 
  24.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  25.                   <tr> 
  26.                     <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;部门预算</font></td>
  27.                   </tr>
  28.                 </table>
  29.                 <table border="0" cellpadding="2" cellspacing="0" width="600">
  30.                   <tr bgcolor="#e0e0e0"> 
  31.                     <td colspan="4"> <font class="strong">&nbsp;&nbsp;您有权限对以下部门进行部门预算,请选择部门:</font> 
  32.                     </td>
  33.                   </tr>
  34.                       <%
  35.   int rowColor = 1;
  36. PositionProxyBean proxy = new PositionProxyBean();
  37.   EmpPrivilegeProxyBean empProxy = new EmpPrivilegeProxyBean();
  38.      Collection coll = proxy.findEmpDivision(BusinessName.getEmpId(), 11127);
  39.      Collection empColl = empProxy.getAssignedDivisions(BusinessName.getEmpId(), 11127);
  40. coll.removeAll(empColl);
  41. coll.addAll(empColl);
  42. Iterator iter = coll.iterator();
  43. while(iter.hasNext())
  44. {
  45. String rColor = (rowColor%2==1)?"#fafafa":"#e0e0e0";
  46. out.println("<tr bgcolor="+rColor+">");
  47.                         out.println("<td colspan=4> <div align=center>");
  48.     DivisionValueBean pinfo = (DivisionValueBean)iter.next();
  49. if (coll.size() == 1)
  50. {
  51.                         BusinessName.setDeptId(pinfo.getDivisionId());
  52.                          BusinessName.setDeptName(pinfo.getDivisionName());
  53.                             response.sendRedirect("/mainctrl/budget/index");
  54. }
  55. out.println("<a href="/mainctrl/budget/indexMiddle?depId="+pinfo.getDivisionId()+"&depName="+pinfo.getDivisionName()+"">");
  56. //out.println(pinfo.getDivisionId());
  57. out.println(pinfo.getDivisionName());
  58. out.println("</a><br></div></td></tr>");
  59. rowColor++;
  60. }
  61. %>
  62.                 </table>
  63.                 
  64.               </td>
  65.             </tr>
  66.           </table>
  67.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  68.        </TD>
  69.     </TR>
  70.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  71.     </TABLE>
  72.     <BR>
  73.     <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  74. </form>
  75.   </DIV>
  76.  </BODY>
  77. </HTML>