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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: Conference_Browse_Details.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/conference/browseDetails $
  7.  *
  8.  *  This is the conference browse page.
  9.  *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
  10.  */
  11. %>
  12. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  13. <%@ page import="com.vnex.intranet.conference.util.ConferenceConstant" %>
  14. <%@ page import="com.vnex.intranet.util.FieldUtil" %>
  15. <%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
  16. <%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
  17. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  18. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  19. <jsp:useBean id="conValueBean" scope="page" class="com.vnex.intranet.conference.value.ConferenceValueBean" />
  20. <jsp:useBean id="conProxyBean" scope="application" class="com.vnex.intranet.conference.proxy.ConferenceProxyBean" />
  21. <%
  22.     int conId = -1;
  23.     if( request.getParameter( "conferenceId") != null )
  24.        conId = Integer.parseInt( request.getParameter( "conferenceId") );
  25.     // if the conference id come form the update handler then set the value    
  26.    // if( request.getAttribute("confId") != null )
  27.     //   conId = Integer.parseInt( (String)request.getAttribute("confId") );
  28.     conValueBean = conProxyBean.getConferenceDetails( conId );
  29.     //get the start date
  30.     java.sql.Timestamp dStartTime = conValueBean.getBeginDate();
  31.     String sStartTime = dStartTime.toString();
  32.     String showStartDate = sStartTime.substring( 0 , sStartTime.lastIndexOf(":") );           
  33.     //get the end date
  34.     java.sql.Timestamp dEndTime = conValueBean.getEndDate();
  35.     String sEndTime = dEndTime.toString();
  36.     String showEndDate = sEndTime.substring( 0 , sEndTime.lastIndexOf(":") ); 
  37.     // get the update date 
  38.     java.sql.Timestamp dUpdate = conValueBean.getUpdateDate();
  39.     String sUpdate = dUpdate.toString();
  40.     String showUpdate = sUpdate.substring( 0 , sUpdate.lastIndexOf(":") ); 
  41.     //set to session 
  42.     session.setAttribute( "conValueBean" , conValueBean );
  43. %>
  44. <%
  45.   if ( request.getAttribute( "haveBooking") != null && request.getAttribute( "haveBooking").equals("true") )
  46.   {
  47.      System.out.println("the conference have been booking"); 
  48. %>
  49.      <jsp:forward page="/vnex/intranet/personal/conference/Conference_Edit_Details.jsp" />  
  50. <%
  51.   }
  52. %>
  53. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  54. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  55. <script Language="JavaScript">
  56. function submitForm(act)
  57. {
  58.     if ( act == 'edit' )
  59.     {
  60.         <%
  61.          if ( conValueBean.getIfSummary() == ConferenceConstant.NOT_HAVE_SUMMARY || conValueBean.getStatusId()== ConferenceConstant.FINISHED_CONFERENCE &&  conValueBean.getStatusId()!=ConferenceConstant.CANCLED_CONFERENCE)
  62.          { 
  63.         %>
  64.          document.forms[0].action='/mainctrl/conference/uploadSummary';
  65.          document.forms[0].submit();
  66.          <%
  67.          }
  68.          if( conValueBean.getStatusId() == ConferenceConstant.NEW_CONFERENCE || conValueBean.getStatusId()== ConferenceConstant.CANCLED_CONFERENCE)
  69.          {
  70.          %>
  71.          document.forms[0].action='/mainctrl/conference/editDetails';
  72.          document.forms[0].submit();
  73.          <%
  74.          } 
  75.          %>
  76.          
  77.     }
  78.     if ( act == 'cancle' )
  79.     {
  80.         document.forms[0].action='/mainctrl/conference/cancleConference';
  81.         document.forms[0].submit();
  82.     }
  83.     if ( act == 'delete' )
  84.     {
  85.         if( confirm("确定删除?") )
  86.         {
  87.             document.forms[0].action='/mainctrl/conference/deleteConference?conferenceId=<%=conId%>';
  88.             document.forms[0].submit();
  89.         }
  90.     }
  91.     if( act =='return' )
  92.     {
  93.         document.forms[0].action='/mainctrl/conference/dayList';
  94.         document.forms[0].submit();
  95.     }
  96.     
  97. }
  98. </script>
  99. <HTML>
  100. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  101. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  102. <DIV align=center>
  103.   <form name="form1" method="post" >
  104.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  105.       <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  106.     <TR> 
  107.         <TD colSpan=3 align="center"><br>
  108.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  109.             <tr bgcolor="#FAFAFA"> 
  110.               <td> 
  111.                  <table width="600" border="0" cellspacing="0" cellpadding="2">
  112.                   <tr bgcolor="#666666"> 
  113.                     <td colspan="2" valign="top"><font class="strongw">
  114.                     <jsp:include page="Conference_Navibar_Head.jsp" />
  115.                     会议详细信息</font></td>
  116.                   </tr>
  117.                 </table>
  118.                 <table cellspacing=1 width="600" border=0 cellpadding="2" class=title>
  119.                   <tr bgcolor="#e0e0e0"> 
  120.                     <td width="123"><font class="strong">&nbsp;会议状态:</font></td>
  121.                     <td colspan=7 width="464"><%=FieldUtil.filterScriptTag( conValueBean.getStatusName() ) %></td>
  122.                   </tr>
  123.                   <tr bgcolor="#fafafa"> 
  124.                     <td width="123"><font class="strong">&nbsp;会议主题:</font></td>
  125.                     <td colspan=7 width="464"><%=FieldUtil.filterScriptTag( conValueBean.getSubject() ) %></td>
  126.                   </tr>
  127.                   <tr bgcolor="#e0e0e0"> 
  128.                     <td width="123"><font class="strong">&nbsp;会议地点:</font></td>
  129.                     <td colspan=7 width="464"><%=conValueBean.getBoardroomName() %></td>
  130.                   </tr>
  131.                   <tr bgcolor="#fafafa"> 
  132.                     <td width="123"><font class="strong">&nbsp;会议发起人:</font></td>
  133.                     <td colspan=7 width="464"><%=conValueBean.getCreatorName() %></td>
  134.                   </tr>
  135.                   <tr bgcolor="#e0e0e0"> 
  136.                     <td width="123"><font class="strong">&nbsp;开始时间:</font></td>
  137.                     <td colspan="7" width="464"> <%=showStartDate%> </td>
  138.                   </tr>
  139.                   <tr bgcolor="#fafafa"> 
  140.                     <td width="123"><font class="strong">&nbsp;终束时间:</font></td>
  141.                     <td colspan="7" width="464"><%=showEndDate%></td>
  142.                   </tr>
  143.                   <tr bgcolor="#e0e0e0"> 
  144.                     <td width="123"><font class="strong">&nbsp;联系人及联系方法:</font></td>
  145.                     <td colspan=7 width="464"><%=FieldUtil.filterScriptTag( conValueBean.getContactWay()) %></td>
  146.                   </tr>
  147.                   <conference:attendeeList conferenceId="<%=conId%>">
  148.                   <%  
  149.                      String attendeeCount = (String)pageContext.getAttribute("attendeeNum");
  150.                      int rowspan = 2;
  151.                      if ( attendeeCount  != null )
  152.                        rowspan = Integer.parseInt( attendeeCount ) + 2;
  153.                    %>
  154.                   <tr> 
  155.                     <td width="123" rowspan="<%=rowspan%>" bgcolor="#fafafa"><font class="strong">&nbsp;参加人:</font></td>
  156.                     <td colspan=7 bgcolor="#fafafa" width="464">总共<%=attendeeCount%>人 </td>
  157.                   </tr>
  158.                   
  159.                   <tr>
  160.                     <td bgcolor="#fafafa" width="90"><font class="strong">姓名</font></td>
  161.                     <td bgcolor="#fafafa" width="100"><font class="strong">部门</font></td>
  162.                     <td bgcolor="#fafafa" width="100"><font class="strong">职务</font></td>
  163.                     <td bgcolor="#fafafa" width="187"><font class="strong">反馈</font></td>
  164.                   </tr>
  165.                   <vnex:items> 
  166.                   <tr>  
  167.                     <td bgcolor="#fafafa" width="90"><workflow:executorsAttribute attribute="executor_name"/> </td>
  168.                     <td bgcolor="#fafafa" width="100"><workflow:executorsAttribute attribute="executor_department" /></td>
  169.                     <td bgcolor="#fafafa" width="100"><workflow:executorsAttribute attribute="executor_title" /></td>
  170.                     <td bgcolor="#fafafa" width="187"><!--workflow:executorsAttribute attribute="executor_status_name" /--><workflow:executorsAttribute attribute="executor_notes" />&nbsp;</td>                  </tr>
  171.                    </vnex:items> 
  172.                    </conference:attendeeList>
  173.                   <tr> 
  174.                     <td valign=top noWrap width="123" bgcolor="#e0e0e0"><font class="strong">&nbsp;会议最后通知时间:</font> 
  175.                     </td>
  176.                     <td colspan=4 bgcolor="#e0e0e0" width="464"><%=showUpdate %> 
  177.                     </td>
  178.                   </tr>
  179.                     <%
  180.                      if( conValueBean.getStatusId() == ConferenceConstant.FINISHED_CONFERENCE  )
  181.                      {
  182.                     %> 
  183.                   <tr > 
  184.                     <td bgcolor="#fafafa" noWrap width="123" rowspan=<%=conValueBean.getSummaryFiles().size()+1%> >
  185.                        <font class="strong">&nbsp;会议纪要:</font>
  186.                     </td>         
  187.                      <%
  188.                           if ( conValueBean.getIfSummary() == ConferenceConstant.HAVE_SUMMARY )
  189.                           { 
  190.                      %>     
  191.                     <td bgcolor="#fafafa" colspan=7 > 
  192.                       <font class="strong">数量:</font> <%=conValueBean.getSummaryFiles().size()%>
  193.                     </td>
  194.                     </tr>
  195.                     <%
  196.                           } 
  197.                           if ( conValueBean.getIfSummary() == ConferenceConstant.NOT_HAVE_SUMMARY )
  198.                           { 
  199.                     %>
  200.                    
  201.                     <td colspan=7 bgcolor="#fafafa" width="464"> 
  202.                     <% out.println( ConferenceConstant.NOTES_NOT_HAVE_UPLOAD_SUMMARY ); %> 
  203.                     </td>
  204.                     </tr>
  205.                           <%    
  206.                           }
  207.                           else
  208.                           {    
  209.                           %> 
  210.                  <conference:fileList collection="<%=conValueBean.getSummaryFiles()%>"> 
  211.                   <conference:items>
  212.                   <tr> 
  213.                     <td colspan=7 bgcolor="#fafafa" width="464">
  214.                        <a  href="/<conference:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
  215.                          <conference:fileAttribute attribute="WorkflowFile_name"/>
  216.                        </a>
  217.                     </td>
  218.                   </tr>
  219.                   </conference:items> 
  220.                  </conference:fileList>
  221.                       <% 
  222.                       }
  223.                    }
  224.                 %> 
  225.                   <tr bgcolor="#e0e0e0"> 
  226.                     <td valign=top noWrap  width="123"><font class="strong">&nbsp;备注:</font></td>
  227.                     <td colspan=7   width="464"><%=FieldUtil.filterScriptTag( conValueBean.getDescription() ) %> 
  228.                     </td>
  229.                   </tr>
  230.                   <tr align="center"> 
  231.                     <td height="30" colspan="12" bgcolor="#fafafa">
  232.                     <%
  233.                      if( conValueBean.getStatusId() == ConferenceConstant.NEW_CONFERENCE || conValueBean.getStatusId() == ConferenceConstant.FINISHED_CONFERENCE ||conValueBean.getStatusId() == ConferenceConstant.CANCLED_CONFERENCE)
  234.                      {
  235.                     %> 
  236.                       <input type="button" class=text name="modifyButton" value="修改" onClick=" submitForm('edit') ">
  237.                       &nbsp;&nbsp;
  238.                     <%
  239.                      }
  240.                      if( conValueBean.getStatusId() == ConferenceConstant.CANCLED_CONFERENCE || conValueBean.getStatusId() == ConferenceConstant.FINISHED_CONFERENCE)
  241.                      {
  242.                     %> 
  243.                       <input type="button" class=text name="deleteButton" value="删除" onClick=" submitForm('delete') ">
  244.                       &nbsp;&nbsp; 
  245.                     <%
  246.                      }
  247.                     %> 
  248.                       <input type="button" class=text name="returnButton" value="返回" onClick=" submitForm('return') ">
  249.                       &nbsp;&nbsp; 
  250.                      <%
  251.                      if( conValueBean.getStatusId() == ConferenceConstant.NEW_CONFERENCE )
  252.                      {
  253.                      %> 
  254.                       <input type="button" name="cancleButton" onClick=" submitForm( 'cancle' ) " value="取消会议" style="width:60px" class=text>
  255.                       <%
  256.                      }%> </td>
  257.                   </tr>
  258.                 </table>
  259.                </td>
  260.             </tr>
  261.           </table>
  262.                  <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  263. </TD>
  264.     </TR>
  265.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  266.     </TABLE>
  267.   <BR>
  268.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  269. </form></DIV>
  270. </BODY></HTML>