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

电子政务应用

开发平台:

Java

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