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

电子政务应用

开发平台:

Java

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <%@ page import="com.vnex.intranet.pub.BusinessSession"  %>
  3. <%@ page import="com.vnex.intranet.web.*" %>
  4. <%@ page import="com.vnex.intranet.web.handler.MenuFliter" %>
  5. <%@ page import="com.vnex.intranet.communication.bulletin.loader.ScrollTextLoader" %>
  6. <jsp:useBean id="msgProxy" class="com.vnex.intranet.communication.message.proxy.MessageProxyBean" scope="application"/>
  7. <jsp:useBean id="taskPendingProxy" class="com.vnex.intranet.workflow.taskpending.proxy.TaskPendingProxyBean" scope="application"/>
  8. <jsp:useBean id="taskPendingCondition" class="com.vnex.intranet.workflow.taskpending.value.TaskPendingConditionBean" scope="page"/>
  9. <%
  10. BusinessSession BusinessName = (BusinessSession) session.getAttribute("BusinessName");
  11. if (BusinessName == null) 
  12. {
  13.     response.sendRedirect("/mainctrl/home/login");
  14.     return;
  15. }
  16. boolean hasReceiveMsgRight = MenuFliter.hasRight(request, "2003|");
  17. boolean hasPendingTaskRight = MenuFliter.hasRight(request, "1003|");
  18. String scrollMsg = ScrollTextLoader.getScrollText();
  19. %>
  20. <HTML>
  21. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  22. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  23. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_null.js"></script>
  24. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  25. <DIV align=center>
  26. <form name="form1" method="post" action="">
  27.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  28.     <TBODY> 
  29.   <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  30.     <TR> 
  31.         <TD colSpan=3 align="center"><img src="<%=request.getContextPath()%>/vnex/MacOS/eoffice.gif" width="400" height="71"> 
  32.           <TABLE class=notice cellSpacing=1 cellPadding=2 width="400" border=0>
  33.             <TBODY> 
  34.             <TR>
  35.                 
  36.               <TD><MARQUEE scrollAmount=1 scrollDelay=100 direction=up behavior=loop height=50>
  37.                 滚动消息:<br>
  38.                 ******************************************<br>
  39.                 <%=scrollMsg%><br>
  40.                 ******************************************<br>
  41.                 </MARQUEE>
  42.               </TD>
  43.             </TR>
  44.            </TBODY>
  45.           </TABLE>
  46.           <br>
  47.           <span class=iframestyle style="OVERFLOW: visible; HEIGHT: 100%"> 
  48.           <table width="400" border="0" cellpadding="5" cellspacing="1">
  49.             <tr bgcolor="#999999"> 
  50.               <td colspan="2"><font class="strongw">您好,<!--<%= BusinessName.getDeptName()%>:--><%= BusinessName.getEmpName()%>:欢迎使用Net-Office系统!</font></td>
  51.             </tr>
  52.             <tr> 
  53.               <td align="center" colspan="2" bgcolor="#e0e0e0"> 
  54.                 <table width="320" border="0">
  55.                   <tr>
  56.                     <td width="100" valign="top"><font class="strong">您今天共有:</font></td>
  57.                     <td width="250">
  58.                     <%  if(hasReceiveMsgRight)
  59.                         {
  60.                           int newMsg = msgProxy.searchReceivedMessage(" where emp_id = " + BusinessName.getEmpId() + " and is_read=0").size();                       
  61.                           if ( newMsg != 0 ) { %>
  62.                       <a href="/mainctrl/msg/receivedHome"><%= newMsg %> 个新消息</a><br>
  63.                       <% }else{ %>
  64.                       0 个新消息<br>
  65.                       <% } }%>
  66.                       <%
  67.                         if(hasPendingTaskRight)
  68.                         {
  69.                         taskPendingCondition.setEmployeeId(BusinessName.getEmpId());
  70.                         taskPendingCondition.setType(0);
  71.                         int newTask = taskPendingProxy.queryPretaskList(taskPendingCondition).size();
  72.                       %>
  73.                       <% if ( newTask != 0) { %>
  74.                       <a href="/mainctrl/taskpending/taskPendingList"><%= newTask%>个新任务</a>
  75.                       <% }else{ %>
  76.                       0 个新任务
  77.                       <% } }%>
  78.                     </td>
  79.   </tr>
  80.                   <tr> 
  81.                     <td valign="top" colspan="2">
  82.                     <!--  <hr size="1">
  83.                       您今天需要:...--></td>
  84.                   </tr>
  85.                 </table>
  86.               </td>
  87.             </tr>
  88.           </table>
  89.           </span>
  90.             <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  91.         </TD>
  92.      </TR> 
  93.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />    
  94.     </TBODY> 
  95.   </TABLE>
  96.   <BR>
  97.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  98. </form>
  99. </DIV>
  100. </BODY>
  101. </HTML>