⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 conference_browse_details.jsp

📁 非常完整的Java开发的网络办公系统
💻 JSP
字号:
<%
/**
 *  $ RCSfile: Conference_Browse_Details.jsp,v $
 *  $ Revision: 1.0 $
 *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
 *  $ /mainctrl/conference/browseDetails $
 *
 *  This is the conference browse page.
 *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
 */
%>

<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.conference.util.ConferenceConstant" %>
<%@ page import="com.vnex.intranet.util.FieldUtil" %>
<%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
<%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>

<jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
<jsp:useBean id="conValueBean" scope="page" class="com.vnex.intranet.conference.value.ConferenceValueBean" />
<jsp:useBean id="conProxyBean" scope="application" class="com.vnex.intranet.conference.proxy.ConferenceProxyBean" />
<%
    int conId = -1;
    if( request.getParameter( "conferenceId") != null )
       conId = Integer.parseInt( request.getParameter( "conferenceId") );
    // if the conference id come form the update handler then set the value    
   // if( request.getAttribute("confId") != null )
    //   conId = Integer.parseInt( (String)request.getAttribute("confId") );
    conValueBean = conProxyBean.getConferenceDetails( conId );
    //get the start date
    java.sql.Timestamp dStartTime = conValueBean.getBeginDate();
    String sStartTime = dStartTime.toString();
    String showStartDate = sStartTime.substring( 0 , sStartTime.lastIndexOf(":") );           
    //get the end date
    java.sql.Timestamp dEndTime = conValueBean.getEndDate();
    String sEndTime = dEndTime.toString();
    String showEndDate = sEndTime.substring( 0 , sEndTime.lastIndexOf(":") ); 
    // get the update date 
    java.sql.Timestamp dUpdate = conValueBean.getUpdateDate();
    String sUpdate = dUpdate.toString();
    String showUpdate = sUpdate.substring( 0 , sUpdate.lastIndexOf(":") ); 
    //set to session 
    session.setAttribute( "conValueBean" , conValueBean );
%>

<%
  if ( request.getAttribute( "haveBooking") != null && request.getAttribute( "haveBooking").equals("true") )
  {
     System.out.println("the conference have been booking"); 
%>
     <jsp:forward page="/vnex/intranet/personal/conference/Conference_Edit_Details.jsp" />  
<%
  }
%>



<script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<script Language="JavaScript">
function submitForm(act)
{
    if ( act == 'edit' )
    {
        <%
         if ( conValueBean.getIfSummary() == ConferenceConstant.NOT_HAVE_SUMMARY || conValueBean.getStatusId()== ConferenceConstant.FINISHED_CONFERENCE &&  conValueBean.getStatusId()!=ConferenceConstant.CANCLED_CONFERENCE)
         { 
        %>
         document.forms[0].action='/mainctrl/conference/uploadSummary';
         document.forms[0].submit();
         <%
         }
         if( conValueBean.getStatusId() == ConferenceConstant.NEW_CONFERENCE || conValueBean.getStatusId()== ConferenceConstant.CANCLED_CONFERENCE)
         {
         %>
         document.forms[0].action='/mainctrl/conference/editDetails';
         document.forms[0].submit();
         <%
         } 
         %>
         
    }
    if ( act == 'cancle' )
    {
        document.forms[0].action='/mainctrl/conference/cancleConference';
        document.forms[0].submit();
    }
    if ( act == 'delete' )
    {
        if( confirm("确定删除?") )
        {
            document.forms[0].action='/mainctrl/conference/deleteConference?conferenceId=<%=conId%>';
            document.forms[0].submit();
        }
    }
    if( act =='return' )
    {
        document.forms[0].action='/mainctrl/conference/dayList';
        document.forms[0].submit();
    }
    
}
</script>


<HTML>
<jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<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" >
    <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
    <TR> 
        <TD colSpan=3 align="center"><br>
          <table width="600" border="1" cellspacing="1" bordercolor="#666666">
            <tr bgcolor="#FAFAFA"> 
              <td> 
                 <table width="600" border="0" cellspacing="0" cellpadding="2">
                  <tr bgcolor="#666666"> 
                    <td colspan="2" valign="top"><font class="strongw">
                    <jsp:include page="Conference_Navibar_Head.jsp" />
                    会议详细信息</font></td>
                  </tr>
                </table>
                <table cellspacing=1 width="600" border=0 cellpadding="2" class=title>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="123"><font class="strong">&nbsp;会议状态:</font></td>
                    <td colspan=7 width="464"><%=FieldUtil.filterScriptTag( conValueBean.getStatusName() ) %></td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="123"><font class="strong">&nbsp;会议主题:</font></td>
                    <td colspan=7 width="464"><%=FieldUtil.filterScriptTag( conValueBean.getSubject() ) %></td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="123"><font class="strong">&nbsp;会议地点:</font></td>
                    <td colspan=7 width="464"><%=conValueBean.getBoardroomName() %></td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="123"><font class="strong">&nbsp;会议发起人:</font></td>
                    <td colspan=7 width="464"><%=conValueBean.getCreatorName() %></td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="123"><font class="strong">&nbsp;开始时间:</font></td>
                    <td colspan="7" width="464"> <%=showStartDate%> </td>
                  </tr>
                  <tr bgcolor="#fafafa"> 
                    <td width="123"><font class="strong">&nbsp;终束时间:</font></td>
                    <td colspan="7" width="464"><%=showEndDate%></td>
                  </tr>
                  <tr bgcolor="#e0e0e0"> 
                    <td width="123"><font class="strong">&nbsp;联系人及联系方法:</font></td>
                    <td colspan=7 width="464"><%=FieldUtil.filterScriptTag( conValueBean.getContactWay()) %></td>
                  </tr>
                  <conference:attendeeList conferenceId="<%=conId%>">
                  <%  
                     String attendeeCount = (String)pageContext.getAttribute("attendeeNum");
                     int rowspan = 2;
                     if ( attendeeCount  != null )
                       rowspan = Integer.parseInt( attendeeCount ) + 2;
                   %>
                  <tr> 
                    <td width="123" rowspan="<%=rowspan%>" bgcolor="#fafafa"><font class="strong">&nbsp;参加人:</font></td>
                    <td colspan=7 bgcolor="#fafafa" width="464">总共<%=attendeeCount%>人 </td>
                  </tr>
                  
                  <tr>
                    <td bgcolor="#fafafa" width="90"><font class="strong">姓名</font></td>
                    <td bgcolor="#fafafa" width="100"><font class="strong">部门</font></td>
                    <td bgcolor="#fafafa" width="100"><font class="strong">职务</font></td>
                    <td bgcolor="#fafafa" width="187"><font class="strong">反馈</font></td>
                  </tr>
                  <vnex:items> 
                  <tr>  
                    <td bgcolor="#fafafa" width="90"><workflow:executorsAttribute attribute="executor_name"/> </td>
                    <td bgcolor="#fafafa" width="100"><workflow:executorsAttribute attribute="executor_department" /></td>
                    <td bgcolor="#fafafa" width="100"><workflow:executorsAttribute attribute="executor_title" /></td>
                    <td bgcolor="#fafafa" width="187"><!--workflow:executorsAttribute attribute="executor_status_name" /--><workflow:executorsAttribute attribute="executor_notes" />&nbsp;</td>                  </tr>
                   </vnex:items> 
                   </conference:attendeeList>
                  <tr> 
                    <td valign=top noWrap width="123" bgcolor="#e0e0e0"><font class="strong">&nbsp;会议最后通知时间:</font> 
                    </td>
                    <td colspan=4 bgcolor="#e0e0e0" width="464"><%=showUpdate %> 
                    </td>
                  </tr>
                    <%
                     if( conValueBean.getStatusId() == ConferenceConstant.FINISHED_CONFERENCE  )
                     {
                    %> 
                  <tr > 
                    <td bgcolor="#fafafa" noWrap width="123" rowspan=<%=conValueBean.getSummaryFiles().size()+1%> >
                       <font class="strong">&nbsp;会议纪要:</font>
                    </td>         
                     <%
                          if ( conValueBean.getIfSummary() == ConferenceConstant.HAVE_SUMMARY )
                          { 
                     %>     
                    <td bgcolor="#fafafa" colspan=7 > 
                      <font class="strong">数量:</font> <%=conValueBean.getSummaryFiles().size()%>
                    </td>
                    </tr>
                    <%
                          } 
                          if ( conValueBean.getIfSummary() == ConferenceConstant.NOT_HAVE_SUMMARY )
                          { 
                    %>
                   
                    <td colspan=7 bgcolor="#fafafa" width="464"> 
                    <% out.println( ConferenceConstant.NOTES_NOT_HAVE_UPLOAD_SUMMARY ); %> 
                    </td>
                    </tr>
                          <%    
                          }
                          else
                          {    
                          %> 
                 <conference:fileList collection="<%=conValueBean.getSummaryFiles()%>"> 
                  <conference:items>
                  <tr> 
                    <td colspan=7 bgcolor="#fafafa" width="464">
                       <a  href="/<conference:fileAttribute attribute='WorkflowFile_title' />" target="_blank">
                         <conference:fileAttribute attribute="WorkflowFile_name"/>
                       </a>
                    </td>
                  </tr>
                  </conference:items> 
                 </conference:fileList>
                      <% 
                      }
                   }
                %> 
                  <tr bgcolor="#e0e0e0"> 
                    <td valign=top noWrap  width="123"><font class="strong">&nbsp;备注:</font></td>
                    <td colspan=7   width="464"><%=FieldUtil.filterScriptTag( conValueBean.getDescription() ) %> 
                    </td>
                  </tr>
                  <tr align="center"> 
                    <td height="30" colspan="12" bgcolor="#fafafa">
                    <%
                     if( conValueBean.getStatusId() == ConferenceConstant.NEW_CONFERENCE || conValueBean.getStatusId() == ConferenceConstant.FINISHED_CONFERENCE ||conValueBean.getStatusId() == ConferenceConstant.CANCLED_CONFERENCE)
                     {
                    %> 
                      <input type="button" class=text name="modifyButton" value="修改" onClick=" submitForm('edit') ">
                      &nbsp;&nbsp;
                    <%
                     }
                     if( conValueBean.getStatusId() == ConferenceConstant.CANCLED_CONFERENCE || conValueBean.getStatusId() == ConferenceConstant.FINISHED_CONFERENCE)
                     {
                    %> 
                      <input type="button" class=text name="deleteButton" value="删除" onClick=" submitForm('delete') ">
                      &nbsp;&nbsp; 
                    <%
                     }
                    %> 
                      <input type="button" class=text name="returnButton" value="返回" onClick=" submitForm('return') ">
                      &nbsp;&nbsp; 
                     <%
                     if( conValueBean.getStatusId() == ConferenceConstant.NEW_CONFERENCE )
                     {
                     %> 
                      <input type="button" name="cancleButton" onClick=" submitForm( 'cancle' ) " value="取消会议" style="width:60px" class=text>
                      <%
                     }%> </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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -