Conference_Edit_Details.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:15k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $ RCSfile: Conference_Edit_Details.jsp,v $
- * $ Revision: 1.0 $
- * $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
- * $ /mainctrl/conference/editDetails $
- *
- * This is the conference edit page.
- * @author Copyright (c) May. 2001, by VisionNex Technologies Inc., All Right Reversed.
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.conference.util.ConferenceConstant" %>
- <%@ page import="com.vnex.intranet.conference.value.ConferenceValueBean" %>
- <%@ page import="com.vnex.intranet.conference.util.ConferenceStatus" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="com.vnex.intranet.util.FieldUtil" %>
- <%@ page import="java.util.Calendar" %>
- <%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
- <%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="conValueBean" scope="session" class="com.vnex.intranet.conference.value.ConferenceValueBean" />
- <jsp:useBean id="conProxyBean" scope="application" class="com.vnex.intranet.conference.proxy.ConferenceProxyBean" />
- <%
- String current = new java.sql.Date(System.currentTimeMillis()).toString();
- Calendar calBegin = TimeStamp.convertTimestampToCalendar( conValueBean.getBeginDate() );
- String startTime = "" + TimeStamp.formatCalendar( TimeStamp.YMD, calBegin );
- Calendar calEnd = TimeStamp.convertTimestampToCalendar( conValueBean.getEndDate() );
- String endTime = "" + TimeStamp.formatCalendar( TimeStamp.YMD, calEnd );
- int conId = conValueBean.getId();
- if( conValueBean.getStatusId() == ConferenceConstant.CANCLED_CONFERENCE )
- {
- conValueBean.setStatusName( ConferenceStatus.NOTSTAGE .getName() );
- }
- // this code is for checking the colloqiance
- ConferenceValueBean conf = (ConferenceValueBean)session.getAttribute("confUpdate");
- if ( conf != null )
- conValueBean = conf;
- %>
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.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/util/popSelect.js"></script>
- <script Language="JavaScript1.2" src="/vnex/intranet/calendar/Popup.js"></script>
- <script Language="JavaScript" src="/vnex/intranet/personal/conference/checkConference.js"></script>
- <script language=JavaScript>
- var currentTime ="<%=current%>";
- function submitForm(act)
- {
- if ( act == 'save' )
- {
- selectAll( document.forms[0].attendeeIDList );
- if ( checkIt( document.forms[0] ) )
- {
- document.forms[0].action='/mainctrl/conference/updateConference?conferenceId=<%=conId%>';
- document.forms[0].submit();
- }
- }
- if ( act == 'cancle' )
- {
- document.forms[0].action='/mainctrl/conference/cancleConference';
- document.forms[0].submit();
- }
- if ( act == 'view' )
- {
- window.open("/mainctrl/boardroom/reservationListPopup","subWin","height=600,width=800,resizable=no,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no")
- }
- if ( act == 'return' )
- {
- document.forms[0].action='/mainctrl/conference/browseDetails?conferenceId=<%=conId%>';
- document.forms[0].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" 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"><% if ( conf != null ) out.println("<font color='#ff0000' >会议室预定冲突!请更改时间或会议室</font>");%><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr bgcolor="#FAFAFA">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td colspan="2" valign="top"><font class="strongw">
- <jsp:include page="Conference_Navibar_Head.jsp" />
- 修改会议安排</font></td>
- </tr>
- </table>
- <table cellspacing=1 width="600" border=0 cellpadding="2" class=title>
- <tr bgcolor="#fafafa">
- <td width="130"><font class="strong"> 会议状态:</font></td>
- <td colspan="3"><%=conValueBean.getStatusName() %></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="130"><font class="strong"> 会议主题:</font></td>
- <td bgcolor="#e0e0e0" colspan="3">
- <input maxlength=20 size=24 name="subject" class=text value="<%=FieldUtil.filterScriptTag( conValueBean.getSubject() ) %>"> * (注:带*为必填内容)
- <!--img
- style="CURSOR: hand"
- onClick="fPopUpDlg('POPUPLIST_BOOKPURPOSE',document.all.purpose, '使用目的一览选择', 290, 200 );return false"
- height=16 alt=弹出使用目的一览下拉菜单
- src="/vnex/MacOS/use_aim.gif" width=16
- align=absMiddle border=0 !--></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="130"><font class="strong"> 会议室名:</font></td>
- <td colspan="3">
- <select style="WIDTH: 100px" name="boardroomId">
- <conference:boardroomUsableList >
- <option value="-1" > 请选择</option>
- <vnex:items select='<%=conValueBean.getBoardroomId()+""%>'>
- <option value=<conference:boardroomAttribute attribute='boardroom_id' /> <conference:boardroomAttribute attribute='isSelected' /> >
- <conference:boardroomAttribute attribute='boardroom_name' />
- </option>
- </vnex:items>
- </conference:boardroomUsableList>
- </select>
- <a href="#" onClick=" submitForm( 'view' );return false;"><img src="/vnex/MacOs/conference_reservation.gif" width="14" height="17" border="0" alt="查看会议室预订情况" ></a> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="130">
- <font class="strong"> 会议发起者:</font>
- </td>
- <td colspan="3"><%=conValueBean.getCreatorName() %></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td noWrap width="129"><font class="strong"> 开始时间:</font>
- </td>
- <td noWrap colspan="3" width="458">
- <input class=text maxlength=10 size=24 readonly name="startDate" value ="<%=startTime%>">
- <img style="CURSOR: hand" height=16 alt="弹出日历下拉菜单" src="/vnex/intranet/calendar/datetime.gif" width=16
- align=absMiddle border=0 onClick="fPopUpCalendarDlg( startDate);return false">
- <select class=text name="startHour">
- <%
- for( int i=0; i < 24 ; i++ )
- {
- %>
- <option value=<%=i%>
- <%
- if( i == calBegin.get( Calendar.HOUR_OF_DAY ) ) out.println("selected");
- %> >
- <%=i%>时
- </option>
- <%}%>
- </select>
- <select name=startMinute>
- <%
- for( int i=0; i < 60 ; i+=5 )
- {
- %>
- <option value=<%=i%>
- <%
- if( i == calBegin.get( Calendar.MINUTE) ) out.println("selected");
- %> >
- <%=i%>分
- </option>
- <%}%>
- </select> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td noWrap width="129"> <font class="strong"> 终束时间:</font>
- </td>
- <td noWrap colspan="3" width="458">
- <input class=text maxlength=10 size=24 readonly name="endDate" value="<%=endTime %>">
- <img style="CURSOR: hand"
- onClick="fPopUpCalendarDlg( endDate );return false"
- height=16 alt="弹出日历下拉菜单"
- src="/vnex/intranet/calendar/datetime.gif" width=16
- align=absMiddle border=0>
- <select name="endHour">
- <%
- for( int i=0; i < 24 ; i++ )
- {
- %>
- <option value=<%=i%>
- <%
- if( i == calEnd.get( Calendar.HOUR_OF_DAY ) ) out.println("selected");
- %> >
- <%=i%>时
- </option>
- <%}%>
- </select>
- <select name=endMinute>
- <%
- for( int i=00; i < 60 ; i+=5 )
- {
- %>
- <option value=<%=i%>
- <%
- if( i == calEnd.get( Calendar.MINUTE) ) out.println("selected");
- %> >
- <%=i%>分
- </option>
- <%}%>
- </select> *
- </td>
- </tr>
- <tr>
- <td width="130" bgcolor="#e0e0e0">
- <font class="strong"> 联系人及联系方法:</font>
- </td>
- <td bgcolor="e0e0e0" colspan="3">
- <input class=text maxlength=128 size=72 name="contactWay" value="<%=FieldUtil.filterScriptTag( conValueBean.getContactWay() ) %>">
- </td>
- </tr>
- <tr>
- <td width="130" rowspan="2" bgcolor="#fafafa">
- <font class="strong"> 参加人:</font>
- </td>
- <conference:attendeeList conferenceId="<%=conId%>">
- <%
- String attendeeCount = (String)pageContext.getAttribute("attendeeNum");
- %>
- <td bgcolor="#fafafa" colspan="3">目前共<%=attendeeCount%>人</td>
- </tr>
- <tr>
- <td colspan=3 bgcolor="#fafafa" width="458">
- <input type="hidden" name="updated" value="false">
- <input type="hidden" name="tempHidden" value="">
- <select name="attendeeIDList" size="4" multiple style="width:200" >
- <conference:items>
- <option value="<workflow:executorsAttribute attribute='executor_employeeId' />;<workflow:executorsAttribute attribute='executor_name'/>;<workflow:executorsAttribute attribute='executor_department' />;<workflow:executorsAttribute attribute='executor_title' />">
- <workflow:executorsAttribute attribute="executor_name"/>
- <workflow:executorsAttribute attribute="executor_title" />
- </option>
- </conference:items>
- </select>
- </conference:attendeeList>
- <input type="button" name="Submit1" value="按部门选择" class="file" style="width:72px" onClick="javascript:addList( attendeeIDList )">
- <input type="button" name="Submit2" value="分组选择" class="file" style="width:60px" onClick="javascript:addGroupList( attendeeIDList )">
- <input type="button" name="Submit3" value="删除" class="file" onClick="remove1( attendeeIDList )"> *
- </td>
- </tr>
- <tr>
- <td width="130" bgcolor="#e0e0e0"><font class="strong"> 备注:</font></td>
- <td bgcolor="#e0e0e0" colspan="3">
- <textarea name="description" rows=5 cols=59><%=FieldUtil.filterScriptTag( conValueBean.getDescription() )%></textarea>
- </td>
- </tr>
- <tr align="center">
- <td height="30" colspan="5" bgcolor="#fafafa">
- <input type="button" name="saveButton" onClick=" submitForm( 'save' ) " value="保存" class=text>
- <input type="reset" name="resetButton" value="重置" class=text>
- <input type="button" name="desertButton" value="放弃" onClick=" submitForm('return') " class=text>
- <%
- if( conValueBean.getStatusId() != ConferenceConstant.CANCLED_CONFERENCE )
- {
- %>
- <input type="button" name="cancleButton" onClick=" submitForm( 'cancle') " value="取消会议" style="width:60px" class=text>
- <% }
- else
- {
- conValueBean.setStatusId( ConferenceConstant.NEW_CONFERENCE );
- session.setAttribute("conValueBean", conValueBean);
- }%>
- </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>
- <%session.removeAttribute("confUpdate");%>