📄 boardroom_edit.jsp
字号:
<%
/**
* $ RCSfile: Boardroom_Edit.jsp,v $
* $ Revision: 1.0 $
* $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
* $ /mainctrl/boardroom/edit $
*
* This is the boardroom edit 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" %>
<%@ page import="com.vnex.intranet.conference.util.*" %>
<%@ page import="com.vnex.intranet.util.FieldUtil" %>
<%@ taglib uri="/vnex_hr.tld" prefix="hr" %>
<%@ taglib uri="/vnex_organization.tld" prefix="org" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<jsp:useBean id="boardroomValueBean" scope="session" class="com.vnex.intranet.conference.value.BoardroomValueBean" />
<jsp:setProperty name="boardroomValueBean" property="*" />
<%
String flag = request.getParameter("flag");
/* if( flag != null && flag.equals("fromBrowsePage") )
boardroomValueBean = ( BoardroomValueBean ) session.getAttribute("boardroomValueBean" );
else*/
session.setAttribute("boardroomValueBean" ,boardroomValueBean );
int brId = boardroomValueBean.getId();
// 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/updateBoardroom';
document.forms[0].submit();
}
if( act == 'stop' )
{
document.forms[0].action='/mainctrl/boardroom/updateBoardroom?flag=stop&boardroomId=<%=brId%>';
document.forms[0].submit();
}
if( act == 'resume' )
{
document.forms[0].action='/mainctrl/boardroom/updateBoardroom?flag=resume&boardroomId=<%=brId%>';
document.forms[0].submit();
}
if( act == 'return' )
{
document.forms[0].action='/mainctrl/boardroom/browseDetails?boardroomId=<%=brId%>';
document.forms[0].submit();
}
if( act == 'delete' )
{
if ( confirm("确定删除?" ) )
{
document.forms[0].action='/mainctrl/boardroom/deleteBoardroom?boardroomId=<%=brId%>';
document.forms[0].submit();
}
}
}
function changeIt(form)
{
form.action = "/mainctrl/boardroom/editPage"
form.submit();
}
</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" >
<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" height="15"> <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="<%=FieldUtil.filterScriptTag( FieldUtil.filterQuotTag (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" value="<%=FieldUtil.filterScriptTag( FieldUtil.filterQuotTag ( boardroomValueBean.getName() ) ) %>" size="24"> *
</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="<%=FieldUtil.filterScriptTag( FieldUtil.filterQuotTag ( 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="64">
<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="396">
<select name="administrator" class="file" >
<hr:EmployeeList divisionid='<%=deptId %>' >
<vnex:items select='<%=boardroomValueBean.getAdministrator()+""%>'>
<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 rows="4" name="devices" cols="59"><%=FieldUtil.filterScriptTag( FieldUtil.filterQuotTag ( boardroomValueBean.getDevices() ) ) %></textarea>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="121" bgcolor="#e0e0e0"><font class="strong"> 描述:</font>
</td>
<td colspan="2">
<textarea rows="4" name="description" cols="59"><%=FieldUtil.filterScriptTag( FieldUtil.filterQuotTag ( boardroomValueBean.getDescription() ) )%></textarea>
</td>
</tr>
<%
String theValue= "";
String theScript="";
if ( boardroomValueBean.getStatusId() == ConferenceConstant.PAUSED_BOARDROOM )
{
theValue ="恢复使用";
theScript = "submitForm('resume')";
}
else
{
theValue="暂停使用";
theScript="submitForm('stop')";
}
%>
<tr align="center" bgcolor="#fafafa">
<td colspan="3" height="30">
<input type="button" name="saveButton" class="file" onClick=" submitForm('save') " value="保存">
<input type="reset" name="resetButton" value="重置" class="file">
<input type="button" name="cancle" value="放弃" class="file" onClick=" submitForm('return') ">
<% if ( boardroomValueBean.getStatusId() != ConferenceConstant.BOOKED_BOARDROOM )
{
%>
<input type="button" name="deleteButton" value="删除" onClick=" submitForm('delete') " class=text>
<input type="button" name="stopButton" style="width:60px" value="<%=theValue %>" onClick= "<%=theScript%>" class=file>
<%
}
%>
</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 + -