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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: Conference_Edit_Details.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/conference/editDetails $
  7.  *
  8.  *  This is the conference edit 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.conference.value.ConferenceValueBean" %>
  15. <%@ page import="com.vnex.intranet.conference.util.ConferenceStatus" %>
  16. <%@ page import="com.vnex.intranet.util.TimeStamp" %>
  17. <%@ page import="com.vnex.intranet.util.FieldUtil" %>
  18. <%@ page import="java.util.Calendar" %>
  19. <%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
  20. <%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
  21. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  22. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  23. <jsp:useBean id="conValueBean" scope="session" class="com.vnex.intranet.conference.value.ConferenceValueBean" />
  24. <jsp:useBean id="conProxyBean" scope="application" class="com.vnex.intranet.conference.proxy.ConferenceProxyBean" />
  25. <%
  26.    String current = new java.sql.Date(System.currentTimeMillis()).toString();
  27.    Calendar calBegin = TimeStamp.convertTimestampToCalendar( conValueBean.getBeginDate() );
  28.    String startTime = "" +  TimeStamp.formatCalendar( TimeStamp.YMD, calBegin );
  29.    Calendar calEnd = TimeStamp.convertTimestampToCalendar( conValueBean.getEndDate() );
  30.    String endTime = "" + TimeStamp.formatCalendar( TimeStamp.YMD, calEnd  );
  31.    
  32.    int conId = conValueBean.getId();
  33.    if( conValueBean.getStatusId() == ConferenceConstant.CANCLED_CONFERENCE )
  34.    {
  35.        conValueBean.setStatusName( ConferenceStatus.NOTSTAGE .getName() ); 
  36.    }
  37.    
  38.    // this code is for checking the colloqiance
  39.    ConferenceValueBean conf  = (ConferenceValueBean)session.getAttribute("confUpdate");
  40.    if ( conf != null )
  41.        conValueBean = conf;
  42.     
  43.   
  44. %>
  45. <HTML>
  46. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  47. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  48. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  49. <script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
  50. <script language="JavaScript1.2" src="/vnex/util/popSelect.js"></script>
  51. <script Language="JavaScript1.2" src="/vnex/intranet/calendar/Popup.js"></script>
  52. <script Language="JavaScript" src="/vnex/intranet/personal/conference/checkConference.js"></script>
  53. <script language=JavaScript>
  54. var currentTime ="<%=current%>";
  55. function submitForm(act)
  56. {
  57.     if ( act == 'save' )
  58.     {
  59.         selectAll( document.forms[0].attendeeIDList );
  60.         if ( checkIt( document.forms[0] ) )
  61.         {
  62.             document.forms[0].action='/mainctrl/conference/updateConference?conferenceId=<%=conId%>';
  63.             document.forms[0].submit();
  64.         }  
  65.     }
  66.     if ( act == 'cancle' )
  67.     {
  68.         document.forms[0].action='/mainctrl/conference/cancleConference';
  69.         document.forms[0].submit();
  70.     }
  71.     if ( act == 'view' )
  72.     {
  73.        window.open("/mainctrl/boardroom/reservationListPopup","subWin","height=600,width=800,resizable=no,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no")
  74.     }
  75.     if ( act == 'return' )
  76.     {
  77.         document.forms[0].action='/mainctrl/conference/browseDetails?conferenceId=<%=conId%>';
  78.         document.forms[0].submit();
  79.     }
  80. }
  81. </script>
  82. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  83. <DIV align=center>
  84.   <form name="form1" method="post" action=""  >
  85.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  86.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  87.     <TR> 
  88.         <TD colSpan=3 align="center"><% if ( conf != null ) out.println("<font color='#ff0000' >会议室预定冲突!请更改时间或会议室</font>");%><br>
  89.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  90.             <tr bgcolor="#FAFAFA"> 
  91.               <td> 
  92.                 <table width="600" border="0" cellspacing="0" cellpadding="2">
  93.                   <tr bgcolor="#666666"> 
  94.                   <td colspan="2" valign="top"><font class="strongw">
  95.                     <jsp:include page="Conference_Navibar_Head.jsp" />
  96.                     修改会议安排</font></td>
  97.                   </tr>
  98.                 </table>
  99.                 <table cellspacing=1 width="600" border=0 cellpadding="2" class=title>
  100.                 <tr bgcolor="#fafafa"> 
  101.                     <td width="130"><font class="strong">&nbsp;会议状态:</font></td>
  102.                     <td colspan="3"><%=conValueBean.getStatusName() %></td>
  103.                   </tr>
  104.                   <tr bgcolor="#e0e0e0"> 
  105.                     <td width="130"><font class="strong">&nbsp;会议主题:</font></td>
  106.                     <td bgcolor="#e0e0e0" colspan="3"> 
  107.                       <input maxlength=20 size=24 name="subject"    class=text value="<%=FieldUtil.filterScriptTag( conValueBean.getSubject() ) %>">&nbsp;*&nbsp;(注:带*为必填内容)
  108.                       <!--img 
  109.             style="CURSOR: hand" 
  110.             onClick="fPopUpDlg('POPUPLIST_BOOKPURPOSE',document.all.purpose, '使用目的一览选择', 290, 200 );return false" 
  111.             height=16 alt=弹出使用目的一览下拉菜单 
  112.             src="/vnex/MacOS/use_aim.gif" width=16 
  113.             align=absMiddle border=0 !--></td>
  114.                   </tr>
  115.                   <tr bgcolor="#fafafa"> 
  116.                     <td width="130"><font class="strong">&nbsp;会议室名:</font></td>
  117.                     <td colspan="3"> 
  118.                       <select style="WIDTH: 100px"  name="boardroomId">
  119.                       <conference:boardroomUsableList >
  120.                       <option value="-1" > 请选择</option>
  121.                         <vnex:items select='<%=conValueBean.getBoardroomId()+""%>'>
  122.                         <option value=<conference:boardroomAttribute attribute='boardroom_id' /> <conference:boardroomAttribute attribute='isSelected' /> >
  123.                         
  124.                          <conference:boardroomAttribute attribute='boardroom_name' />
  125.                         </option>
  126.                         </vnex:items>
  127.                       </conference:boardroomUsableList>
  128.                       </select>
  129.                        <a href="#" onClick=" submitForm( 'view' );return false;"><img src="/vnex/MacOs/conference_reservation.gif" width="14" height="17" border="0"  alt="查看会议室预订情况" ></a>&nbsp;*
  130.                     </td>
  131.                   </tr>
  132.                   <tr bgcolor="#fafafa"> 
  133.                     <td width="130"> 
  134.                       <font class="strong">&nbsp;会议发起者:</font>
  135.                     </td>
  136.                     <td colspan="3"><%=conValueBean.getCreatorName() %></td>
  137.                   </tr>
  138.                   <tr bgcolor="#e0e0e0"> 
  139.                     <td noWrap width="129"><font class="strong">&nbsp;开始时间:</font> 
  140.                     </td>
  141.                     <td noWrap colspan="3" width="458"> 
  142.                       <input class=text maxlength=10 size=24   readonly  name="startDate" value ="<%=startTime%>">&nbsp;
  143.                       <img style="CURSOR: hand" height=16 alt="弹出日历下拉菜单" src="/vnex/intranet/calendar/datetime.gif" width=16 
  144.             align=absMiddle border=0   onClick="fPopUpCalendarDlg( startDate);return false">&nbsp;&nbsp; 
  145.                       <select class=text name="startHour">
  146.                       <%
  147.                           for( int i=0; i < 24 ; i++ )
  148.                           { 
  149.                       %>
  150.                         <option value=<%=i%>
  151.                         <%
  152.                           if( i == calBegin.get( Calendar.HOUR_OF_DAY )  ) out.println("selected"); 
  153.                         %>   >
  154.                         <%=i%>时
  155.                         </option>
  156.                         <%}%>
  157.                       </select>&nbsp;
  158.                       <select name=startMinute>
  159.                         <%
  160.                           for( int i=0; i < 60 ; i+=5 )
  161.                           { 
  162.                         %>
  163.                         <option value=<%=i%> 
  164.                         <%
  165.                           if( i == calBegin.get( Calendar.MINUTE) ) out.println("selected"); 
  166.                         %>   >
  167.                         <%=i%>分
  168.                         </option>
  169.                         <%}%>
  170.                       </select>&nbsp;*
  171.                     </td>
  172.                   </tr>
  173.                   <tr bgcolor="#fafafa"> 
  174.                     <td noWrap width="129"> <font class="strong">&nbsp;终束时间:</font> 
  175.                     </td>
  176.                     <td noWrap colspan="3" width="458"> 
  177.                       <input class=text maxlength=10 size=24 readonly  name="endDate" value="<%=endTime %>">&nbsp;
  178.                       <img style="CURSOR: hand" 
  179.             onClick="fPopUpCalendarDlg( endDate );return false"
  180.             
  181.             height=16 alt="弹出日历下拉菜单" 
  182.             src="/vnex/intranet/calendar/datetime.gif" width=16 
  183.             align=absMiddle border=0>&nbsp;&nbsp; 
  184.                       <select name="endHour">
  185.                       <%
  186.                           for( int i=0; i < 24 ; i++ )
  187.                           { 
  188.                       %>
  189.                         <option value=<%=i%>
  190.                         <%
  191.                           if( i == calEnd.get( Calendar.HOUR_OF_DAY ) ) out.println("selected"); 
  192.                         %>   >
  193.                         <%=i%>时
  194.                         </option>
  195.                         <%}%>
  196.                       </select>&nbsp;
  197.                       <select name=endMinute>
  198.                         <%
  199.                           for( int i=00; i < 60 ; i+=5 )
  200.                           { 
  201.                         %>
  202.                         <option value=<%=i%> 
  203.                         <%
  204.                           if( i == calEnd.get( Calendar.MINUTE) ) out.println("selected"); 
  205.                         %>   >
  206.                         <%=i%>分
  207.                         </option>
  208.                         <%}%>
  209.                       </select>&nbsp;*
  210.                     </td>
  211.                   </tr>
  212.                   <tr> 
  213.                     <td width="130" bgcolor="#e0e0e0"> 
  214.                       <font class="strong">&nbsp;联系人及联系方法:</font>
  215.                     </td>
  216.                     <td bgcolor="e0e0e0" colspan="3"> 
  217.                       <input class=text maxlength=128 size=72 name="contactWay" value="<%=FieldUtil.filterScriptTag( conValueBean.getContactWay() ) %>">
  218.                     </td>
  219.                   </tr>
  220.                   <tr> 
  221.                     <td width="130" rowspan="2" bgcolor="#fafafa"> 
  222.                       <font class="strong">&nbsp;参加人:</font>
  223.                     </td> 
  224.                     <conference:attendeeList conferenceId="<%=conId%>">
  225.                     <%  
  226.                      String attendeeCount = (String)pageContext.getAttribute("attendeeNum");
  227.                    %>
  228.                     <td bgcolor="#fafafa" colspan="3">目前共<%=attendeeCount%>人</td>
  229.                   </tr>
  230.                   <tr> 
  231.                     <td colspan=3 bgcolor="#fafafa" width="458">
  232.                        <input type="hidden" name="updated" value="false">
  233.                        <input type="hidden" name="tempHidden" value="">
  234.                        
  235.                        <select name="attendeeIDList" size="4" multiple style="width:200" >
  236.                        <conference:items> 
  237.                        <option value="<workflow:executorsAttribute attribute='executor_employeeId' />;<workflow:executorsAttribute attribute='executor_name'/>;<workflow:executorsAttribute attribute='executor_department' />;<workflow:executorsAttribute attribute='executor_title' />">
  238.                        <workflow:executorsAttribute attribute="executor_name"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  239.                        <workflow:executorsAttribute attribute="executor_title" />
  240.                        </option>
  241.                        </conference:items> 
  242.                        </select>&nbsp;
  243.                     </conference:attendeeList>
  244.                        
  245.                        <input type="button" name="Submit1" value="按部门选择" class="file" style="width:72px" onClick="javascript:addList( attendeeIDList )">&nbsp;
  246.                        <input type="button" name="Submit2" value="分组选择" class="file" style="width:60px" onClick="javascript:addGroupList( attendeeIDList )">&nbsp;
  247.                        <input type="button" name="Submit3" value="删除" class="file" onClick="remove1( attendeeIDList )">&nbsp;*
  248.                     </td>
  249.                   </tr>
  250.                   <tr> 
  251.                     <td width="130" bgcolor="#e0e0e0"><font class="strong">&nbsp;备注:</font></td>
  252.                     <td bgcolor="#e0e0e0" colspan="3"> 
  253.                       <textarea name="description" rows=5 cols=59><%=FieldUtil.filterScriptTag( conValueBean.getDescription() )%></textarea>
  254.                     </td>
  255.                   </tr>
  256.                   
  257.                   <tr align="center"> 
  258.                     <td height="30" colspan="5" bgcolor="#fafafa"> 
  259.                       <input type="button" name="saveButton" onClick=" submitForm( 'save' ) " value="保存" class=text>&nbsp;&nbsp;
  260.                       <input type="reset" name="resetButton" value="重置" class=text>&nbsp;&nbsp;
  261.                       <input type="button" name="desertButton" value="放弃" onClick=" submitForm('return') " class=text>&nbsp;&nbsp;
  262.                       <%
  263.                       if( conValueBean.getStatusId() != ConferenceConstant.CANCLED_CONFERENCE )
  264.                       { 
  265.                       %>
  266.                       <input type="button" name="cancleButton" onClick=" submitForm( 'cancle') " value="取消会议" style="width:60px" class=text>
  267.                      <% }
  268.                         else
  269.                         {
  270.                           conValueBean.setStatusId( ConferenceConstant.NEW_CONFERENCE ); 
  271.                            session.setAttribute("conValueBean", conValueBean); 
  272.                         }%>
  273.                     </td>
  274.                   </tr>
  275.                 </table>
  276.               </td></tr>
  277.               </table>
  278.                  <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  279. </TD>
  280.     </TR>
  281.     <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  282.     </TABLE>
  283.   <BR>
  284.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  285. </form></DIV>
  286. </BODY></HTML>
  287. <%session.removeAttribute("confUpdate");%>