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

电子政务应用

开发平台:

Java

  1. <%
  2. /**
  3.  *  $ RCSfile: Boardroom_Create.jsp,v $
  4.  *  $ Revision: 1.0 $
  5.  *  $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
  6.  *  $ /mainctrl/boardroom/create $
  7.  *
  8.  *  This is the boardroom create page.
  9.  *  @author Copyright (c) May. 2001, by VisionNex  Technologies Inc., All Right Reversed.
  10.  */
  11. %>
  12. <!--%@ page errorPage="/vnex/intranet/office/boardroom/Boardroom_Error_Page.jsp" %-->
  13. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  14. <%@ page import="com.vnex.intranet.conference.value.BoardroomValueBean" %>
  15. <%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
  16. <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
  17. <%@ taglib uri="/vnex.tld" prefix="vnex" %>
  18. <jsp:useBean id="businessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  19. <jsp:useBean id="boardroomValueBean" scope="page" class="com.vnex.intranet.conference.value.BoardroomValueBean" />
  20. <jsp:setProperty name="boardroomValueBean" property="*" />
  21. <%
  22.         // this part is for the show employee and orgnazation custom tag.
  23.         int deptId = 1;
  24.         // the general company id equals 1.
  25.         if( request.getParameter("deptId") != null )
  26.         {
  27.             deptId = Integer.parseInt ( request.getParameter("deptId") );
  28.         }
  29.         
  30.         
  31. %>
  32. <HTML>
  33. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  34. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
  35. <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
  36. <script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
  37. <script language="JavaScript1.2" src="/vnex/intranet/office/boardroom/checkBoardroom.js"></script>
  38. <script Language="JavaScript">
  39. function submitForm(act)
  40. {
  41.     if ( act == 'save' )
  42.     {
  43.          if ( !checkBoardroom( document.forms[0] ) )
  44.               return false;
  45.          document.forms[0].action='/mainctrl/boardroom/createBoardroom';
  46.          document.forms[0].submit(); 
  47.     } 
  48. }
  49. function changeIt(form)
  50. {    
  51.      if( !isInteger( form.seatAmount.value ) )
  52.      {
  53.         form.seatAmount.value =1;
  54.      }
  55.              
  56.      form.action = "/mainctrl/boardroom/createPage"
  57.      form.submit();
  58. }
  59. function resetAll( form )
  60. {
  61.     form.code.value="";
  62.     form.name.value="";
  63.     form.devices.value="";
  64.     form.description.value="";
  65.     form.seatAmount.value="";
  66.     form.position.value="";
  67.     form.administrator.value="";
  68. }
  69. </script>  
  70. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  71. <DIV align=center>
  72.   <form name="form1" method="post" action="" >
  73.     <TABLE class=outter cellSpacing=0 cellPadding=0 border=0 width="600">
  74.      <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  75.     <TR> 
  76.         <TD colSpan=3 align="center"><br>
  77.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  78.             <tr bgcolor="#FAFAFA"> 
  79.               <td> 
  80.                 <table class=title width="600" border="0" cellspacing="1" cellpadding="2">
  81.                   <tr bgcolor="#666666"> 
  82.                     <td colspan="3"> <font class="strongw">
  83.                     <jsp:include page="Boardroom_Navibar_Head.jsp" />
  84.                     &gt;&gt;新增会议室 
  85.                       </font> </td>
  86.                   </tr>
  87.                   <tr bgcolor="#e0e0e0"> 
  88.                     <td width="121"><font class="strong">&nbsp;编号:</font> </td>
  89.                     <td colspan="2"> 
  90.                       <input type="text" name="code" class="file" size="6" value="<%=boardroomValueBean.getCode()%>">&nbsp;*&nbsp;(注:带*为必填内容)
  91.                     </td>
  92.                   </tr>
  93.                   <tr bgcolor="#fafafa"> 
  94.                     <td width="121"><font class="strong">&nbsp;名称:</font> </td>
  95.                     <td colspan="2"> 
  96.                       <input type="text" name="name" class="file" size="24" value="<%=boardroomValueBean.getName()%>">&nbsp;*
  97.                     </td>
  98.                   </tr>
  99.                   <tr bgcolor="#e0e0e0"> 
  100.                     <td width="121"><font class="strong">&nbsp;位置:</font> </td>
  101.                     <td colspan="2"> 
  102.                       <input type="text" name="position" class="file" size="24" value="<%=boardroomValueBean.getPosition()%>">
  103.                     </td>
  104.                   </tr>
  105.                   <tr bgcolor="#fafafa"> 
  106.                     <td width="121"><font  class="strong">&nbsp;座位数: </font> </td>
  107.                     <td colspan="2"> 
  108.                       <input type="text" name="seatAmount" class="file" size="4" maxlength="4" value="<%=boardroomValueBean.getSeatAmount()%>">&nbsp;*
  109.                     </td>
  110.                   </tr>
  111.                   <tr bgcolor="#e0e0e0"> 
  112.                     <td width="121"><font  class="strong">&nbsp;管理人: </font> </td>
  113.                     <td width="82">
  114.                     
  115.                       <select name="deptId" onChange="changeIt(this.form)" class="file">
  116.                         <org:DivisionList>
  117.                         <vnex:items select='<%=request.getParameter("deptId") %>'> 
  118.                         <option value='<org:DivisionAttribute attribute="id" />' <org:DivisionAttribute attribute="isSelected" /> > 
  119.                          <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/> 
  120.                         </option>
  121.                         </vnex:items> 
  122.                         </org:DivisionList> 
  123.                       </select>
  124.                     </td>
  125.                     <td width="378"> 
  126.                     <select name="administrator"   class="file"  >
  127.                        <hr:EmployeeList divisionid='<%=deptId %>' select="<%=boardroomValueBean.getAdministrator()%>" >
  128.                          <vnex:items> 
  129.                         <option value='<hr:EmployeeAttribute attribute="id" />'  <hr:EmployeeAttribute attribute="isSelected" /> >
  130.                         <hr:EmployeeAttribute attribute="employee_name" /></option>
  131.                         </vnex:items> 
  132.                         </hr:EmployeeList> 
  133.                       </select>&nbsp;*
  134.                     </td>
  135.                   </tr>
  136.                   <tr bgcolor="#fafafa"> 
  137.                     <td width="121"><font  class="strong">&nbsp;设备:</font></td>
  138.                     <td colspan="2"> 
  139.                       <textarea name="devices" class="file" cols="59" rows="4"><%=boardroomValueBean.getDevices() %></textarea>
  140.                     </td>
  141.                   </tr>
  142.                   <tr bgcolor="#e0e0e0"> 
  143.                     <td width="121" bgcolor="#e0e0e0"><font  class="strong">&nbsp;描述:</font> 
  144.                     </td>
  145.                     <td colspan="2"> 
  146.                       <textarea rows="5" name="description" cols="59"><%=boardroomValueBean.getDescription() %></textarea>
  147.                     </td>
  148.                   </tr>
  149.                   <tr align="center" bgcolor="#fafafa"> 
  150.                     <td colspan="3" height="30"> 
  151.                       <input type="button" name="saveButton" value="保存" class="file" onClick="submitForm('save')">&nbsp;&nbsp;
  152.                       <input type="button" name="resetButton" value="重置" class="file" onClick=" resetAll(this.form) " >&nbsp;&nbsp;
  153.                       <input type="button" name="cancleButton" value="放弃" class="file" onClick="history.back()">
  154.                     </td>
  155.                   </tr>
  156.                 </table>
  157.               </td>
  158.             </tr>
  159.           </table>
  160.              <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  161.       </TD>
  162.     </TR>
  163.       <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  164.   </TABLE>
  165.   <BR>
  166.    <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  167.  </form>
  168. </DIV>
  169. </BODY>
  170. </HTML>