Boardroom_Create.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $ RCSfile: Boardroom_Create.jsp,v $
- * $ Revision: 1.0 $
- * $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
- * $ /mainctrl/boardroom/create $
- *
- * This is the boardroom create page.
- * @author Copyright (c) May. 2001, by VisionNex Technologies Inc., All Right Reversed.
- */
- %>
- <!--%@ page errorPage="/vnex/intranet/office/boardroom/Boardroom_Error_Page.jsp" %-->
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.conference.value.BoardroomValueBean" %>
- <%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
- <%@ taglib uri="/vnex_organization.tld" prefix="org" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <jsp:useBean id="businessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="boardroomValueBean" scope="page" class="com.vnex.intranet.conference.value.BoardroomValueBean" />
- <jsp:setProperty name="boardroomValueBean" property="*" />
- <%
- // this part is for the show employee and orgnazation custom tag.
- int deptId = 1;
- // the general company id equals 1.
- if( request.getParameter("deptId") != null )
- {
- deptId = Integer.parseInt ( request.getParameter("deptId") );
- }
- %>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript1.2" src="/vnex/util/validate.js"></script>
- <script language="JavaScript1.2" src="/vnex/intranet/office/boardroom/checkBoardroom.js"></script>
- <script Language="JavaScript">
- function submitForm(act)
- {
- if ( act == 'save' )
- {
- if ( !checkBoardroom( document.forms[0] ) )
- return false;
- document.forms[0].action='/mainctrl/boardroom/createBoardroom';
- document.forms[0].submit();
- }
- }
- function changeIt(form)
- {
- if( !isInteger( form.seatAmount.value ) )
- {
- form.seatAmount.value =1;
- }
- form.action = "/mainctrl/boardroom/createPage"
- form.submit();
- }
- function resetAll( form )
- {
- form.code.value="";
- form.name.value="";
- form.devices.value="";
- form.description.value="";
- form.seatAmount.value="";
- form.position.value="";
- form.administrator.value="";
- }
- </script>
- <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" action="" >
- <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 class=title width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="3"> <font class="strongw">
- <jsp:include page="Boardroom_Navibar_Head.jsp" />
- >>新增会议室
- </font> </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="121"><font class="strong"> 编号:</font> </td>
- <td colspan="2">
- <input type="text" name="code" class="file" size="6" value="<%=boardroomValueBean.getCode()%>"> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="121"><font class="strong"> 名称:</font> </td>
- <td colspan="2">
- <input type="text" name="name" class="file" size="24" value="<%=boardroomValueBean.getName()%>"> *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="121"><font class="strong"> 位置:</font> </td>
- <td colspan="2">
- <input type="text" name="position" class="file" size="24" value="<%=boardroomValueBean.getPosition()%>">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="121"><font class="strong"> 座位数: </font> </td>
- <td colspan="2">
- <input type="text" name="seatAmount" class="file" size="4" maxlength="4" value="<%=boardroomValueBean.getSeatAmount()%>"> *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="121"><font class="strong"> 管理人: </font> </td>
- <td width="82">
- <select name="deptId" onChange="changeIt(this.form)" class="file">
- <org:DivisionList>
- <vnex:items select='<%=request.getParameter("deptId") %>'>
- <option value='<org:DivisionAttribute attribute="id" />' <org:DivisionAttribute attribute="isSelected" /> >
- <org:DivisionAttribute attribute="levelStr"/>+<org:DivisionAttribute attribute="name"/>
- </option>
- </vnex:items>
- </org:DivisionList>
- </select>
- </td>
- <td width="378">
- <select name="administrator" class="file" >
- <hr:EmployeeList divisionid='<%=deptId %>' select="<%=boardroomValueBean.getAdministrator()%>" >
- <vnex:items>
- <option value='<hr:EmployeeAttribute attribute="id" />' <hr:EmployeeAttribute attribute="isSelected" /> >
- <hr:EmployeeAttribute attribute="employee_name" /></option>
- </vnex:items>
- </hr:EmployeeList>
- </select> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="121"><font class="strong"> 设备:</font></td>
- <td colspan="2">
- <textarea name="devices" class="file" cols="59" rows="4"><%=boardroomValueBean.getDevices() %></textarea>
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="121" bgcolor="#e0e0e0"><font class="strong"> 描述:</font>
- </td>
- <td colspan="2">
- <textarea rows="5" name="description" cols="59"><%=boardroomValueBean.getDescription() %></textarea>
- </td>
- </tr>
- <tr align="center" bgcolor="#fafafa">
- <td colspan="3" height="30">
- <input type="button" name="saveButton" value="保存" class="file" onClick="submitForm('save')">
- <input type="button" name="resetButton" value="重置" class="file" onClick=" resetAll(this.form) " >
- <input type="button" name="cancleButton" value="放弃" class="file" onClick="history.back()">
- </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>