Conference_Create.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:13k
源码类别:
电子政务应用
开发平台:
Java
- <%
- /**
- * $ RCSfile: Conference_Create.jsp,v $
- * $ Revision: 1.0 $
- * $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
- * $ /mainctrl/conference/dayList $
- *
- * This is the conference create page.
- * @author Copyright (c) May. 2001, by VisionNex Technologies Inc., All Right Reversed.
- */
- %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.conference.value.ConferenceValueBean" %>
- <%@ page import="com.vnex.intranet.util.TimeStamp" %>
- <%@ page import="java.sql.Timestamp" %>
- <%@ 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" />
- <%
- ConferenceValueBean confValueBean = (ConferenceValueBean)session.getAttribute("confCreate");
- int flag = -1;// judge if the confValueBean varible equal null
- Calendar calBegin = Calendar.getInstance();
- Calendar calEnd = Calendar.getInstance();
- int conId = -1;
- String startTime = "";
- String endTime = "";
- if ( confValueBean != null )
- {
- conId = confValueBean.getId();
- calBegin = TimeStamp.convertTimestampToCalendar( confValueBean.getBeginDate() );
- startTime = "" + TimeStamp.formatCalendar( TimeStamp.YMD, calBegin );
- calEnd = TimeStamp.convertTimestampToCalendar( confValueBean.getEndDate() );
- endTime = "" + TimeStamp.formatCalendar( TimeStamp.YMD, calEnd );
- }
- if ( confValueBean == null )
- {
- confValueBean = new ConferenceValueBean();
- flag = 0;
- }
- String current = new java.sql.Date(System.currentTimeMillis()).toString();
- Timestamp tCurrent = new Timestamp(System.currentTimeMillis());
- Calendar calCurrent = TimeStamp.convertTimestampToCalendar(tCurrent);
- String currentDate = "" + TimeStamp.formatCalendar( TimeStamp.YMD, calCurrent );
- %>
- <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="JavaScript" src="/vnex/util/validate.js"></script>
- <script language="JavaScript" src="/vnex/util/popSelect.js"></script>
- <script Language="JavaScript" src="/vnex/intranet/calendar/Popup.js"></script>
- <script Language="JavaScript" src="/vnex/intranet/personal/conference/checkConference.js"></script>
- <script Language="JavaScript">
- //var currentTime =now.getFullYear()
- // +"-"
- // +(now.getMonth()+1)
- // +"-"
- // +now.getDate();
- 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/createConference';
- 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/dayList';
- 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 ( flag == -1 ) 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="129"><font class="strong"> 会议主题:</font></td>
- <td colspan=3 width="458">
- <input maxlength=20 size=24 name="subject" class=text value="<%=confValueBean.getSubject()%>"> * (注:带*为必填内容)
- </td> <!--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 !-->
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="129"><font class="strong"> 会议室名:</font></td>
- <td colspan=3 width="458">
- <select style="WIDTH: 100px" name="boardroomId">
- <conference:boardroomUsableList >
- <option value="-1" > 请选择</option>
- <vnex:items select='<%=confValueBean.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' )"><img src="/vnex/MacOS/conference_reservation.gif" width="14" height="16" border="0" alt="查看会议室预订情况" ></a> *
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="129"><font class="strong"> 会议发起人:</font>
- </td>
- <td colspan=3 width="458"><%=BusinessName.getEmpName()%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td noWrap width="129"><font class="strong"> 开始时间:</font>
- </td>
- <td noWrap colspan="3" width="458">
- <!--onChange="startDateChange();return false"-->
- <input class=text maxlength=10 size=24 readonly name="startDate" value="<%=currentDate%>">
- <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 == calCurrent.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='<%=currentDate %>'>
- <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=0; i < 60 ; i+=5 )
- {
- %>
- <option value=<%=i%>
- <%
- if( i == calCurrent.get( Calendar.MINUTE) ) out.println("selected");
- %> >
- <%=i%>分
- </option>
- <%}%>
- </select> *
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="129"> <font class="strong"> 联系人及联系方法:</font>
- </td>
- <td colspan=3 width="458">
- <input class=text maxlength=128 size=72 name="contactWay" value="<%=confValueBean.getContactWay()%>" >
- </td>
- </tr>
- <tr>
- <td width="129" bgcolor="#fafafa"> <font class="strong"> 参加人:</font>
- </td>
- <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:attendeeList conferenceId="<%=conId%>">
- <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>
- </conference:attendeeList>
- </select>
- <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 bgcolor="#e0e0e0">
- <td width="129"> <font class="strong"> 备注:</font>
- </td>
- <td colspan=3 width="458">
- <textarea name="description" rows=5 cols=59 ><%=confValueBean.getDescription()%></textarea>
- </td>
- </tr>
- <tr align="center">
- <td colspan="4" height="30" bgcolor="#fafafa">
- <input type="button" name="saveButton" value="保存" onClick=" submitForm( 'save') " class=text>
- <input type="reset" name="resetButton" value="重置" class=text>
- <input type="button" name="cancleButton" value="放弃" onClick=" submitForm('return') " class=text>
- </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("confCreate");%>