📄 conference_add_summary_details.jsp
字号:
<%
/**
* $ RCSfile: Conference_Add_Summary_Details.jsp,v $
* $ Revision: 1.0 $
* $ Date: 2001/07/018 20:18:46 ,created by Shiyong Jian $
* $ /mainctrl/conference/uploadSummary $
*
* This is the conference add summary details page.
* @author Copyright (c) May. 2001, by VisionNex Technologies Inc., All Right Reversed.
*/
%>
<%@ page errorPage="/vnex/ErrorPage.jsp" %>
<%@ page import="com.vnex.intranet.workflow.pub.value.*" %>
<%@ page import="com.vnex.intranet.system.loader.ConfigParaLoader"%>
<%@ page import="com.vnex.intranet.util.SubPathGenerater" %>
<%@ page import="com.vnex.intranet.upload.*"%>
<%@ page import="com.vnex.intranet.conference.util.ConferenceConstant" %>
<%@ taglib uri="/vnex_conference.tld" prefix="conference" %>
<%@ taglib uri="/vnex_workflow.tld" prefix="workflow" %>
<%@ taglib uri="/vnex.tld" prefix="vnex" %>
<jsp:useBean id="mySmartUpload" scope="page" class="com.vnex.intranet.upload.SmartUpload" />
<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" />
<%
int conId = conValueBean.getId();
//get the start date
java.sql.Timestamp dStartTime = conValueBean.getBeginDate();
String sStartTime = dStartTime.toString();
String showStartDate = sStartTime.substring( 0 , sStartTime.lastIndexOf(":") );
//get the end date
java.sql.Timestamp dEndTime = conValueBean.getEndDate();
String sEndTime = dEndTime.toString();
String showEndDate = sEndTime.substring( 0 , sEndTime.lastIndexOf(":") );
// get the update date
java.sql.Timestamp dUpdate = conValueBean.getUpdateDate();
String sUpdate = dUpdate.toString();
String showUpdate = sUpdate.substring( 0 , sUpdate.lastIndexOf(":") );
%>
<%
// deal with file upload
String attachURL = ConfigParaLoader.getParameter("conferenceSummaryAttachmentUrl");
String root = ConfigParaLoader.getParameter("rootUrl");
//上传文件
if( request.getParameter("type") !=null && request.getParameter("type").equals("1") )
{
attachURL += SubPathGenerater.getSeperator() + SubPathGenerater.getSubPath( root + SubPathGenerater.getSeperator() + attachURL);
// Initialization
mySmartUpload.initialize( pageContext );
mySmartUpload.setTotalMaxFileSize( Integer.parseInt( ConfigParaLoader.getParameter("attachmentSize") ) );
// Upload
mySmartUpload.upload();
mySmartUpload.save( root + SubPathGenerater.getSeperator() + attachURL );
Collection c = conValueBean.getSummaryFiles();
for(int i=0;i<mySmartUpload.getFiles().getCount();i++)
{
com.vnex.intranet.upload.File myFile = mySmartUpload.getFiles().getFile(i);
if (!myFile.isMissing())
{
WorkflowFileValueBean wf = new WorkflowFileValueBean();
wf.setName( myFile.getFileName() );
wf.setTitle( attachURL + "/" + myFile.getFileName() );
wf.setDescription( myFile.getFileName() );
c.add(wf);
}
}
conValueBean.setSummaryFiles(c);
session.setAttribute( "conValueBean", conValueBean );
}
//删除文件
if( request.getParameter("type") !=null && request.getParameter("type").equals("2") )
{
// conValueBean = ( ConferenceValueBean )session.getAttribute( "conValueBean" );
String files[] = request.getParameterValues("attachments");
if(files!= null)
{
for(int i = 0; i<files.length; i++)
{
SubPathGenerater.deleteFile( root + SubPathGenerater.getSeperator() + files[i] );
conValueBean.removeFile( files[i] );
}
}
session.setAttribute( "conValueBean", conValueBean );
}
%>
<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=JavaScript>
<%
String flag = request.getParameter("deleteFlag");
%>
function uploadDoc(form)
{
form.action="/mainctrl/conference/uploadSummary?type=1&&conferenceId=<%=conId%>";
form.encoding="multipart/form-data";
form.submit();
}
function deleteDoc(form)
{
if ( confirm("确定删除?") )
{
//flag= "delete";
form.action="/mainctrl/conference/uploadSummary?type=2&&conferenceId=<%=conId%>";
form.submit();
}
}
function submitForm(act)
{
if ( act == 'save' )
{
selectAll( document.forms[0].attachments );
document.forms[0].action='/mainctrl/conference/addSummary?conferenceId=<%=conId%>';
document.forms[0].submit();
}
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" >
<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 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="123"><font class="strong"> 会议状态:</font></td>
<td colspan=7 width="464"><%=conValueBean.getStatusName() %></td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="123"><font class="strong"> 会议主题:</font></td>
<td colspan=7 width="464"><%=conValueBean.getSubject() %></td>
</tr>
<tr bgcolor="#fafafa">
<td width="123"><font class="strong"> 会议地点:</font></td>
<td colspan=7 width="464"><%=conValueBean.getBoardroomName() %></td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="123"><font class="strong"> 会议发起人:</font></td>
<td colspan=7 width="464"><%=conValueBean.getCreatorName() %></td>
</tr>
<tr bgcolor="#fafafa">
<td noWrap width="123"><font class="strong"> 开始时间:</font></td>
<td noWrap colspan="7" width="464"><%=showStartDate %> </td>
</tr>
<tr bgcolor="#e0e0e0">
<td noWrap width="123"><font class="strong"> 终束时间:</font></td>
<td noWrap colspan="7" width="464"><%=showEndDate %></td>
</tr>
<tr bgcolor="#fafafa">
<td width="123"><font class="strong"> 联系人及联系方法:</font></td>
<td colspan=7 width="464"><%=conValueBean.getContactWay() %></td>
</tr>
<conference:attendeeList conferenceId="<%=conId%>">
<%
String attendeeCount = (String)pageContext.getAttribute("attendeeNum");
int rowspan = 2;
if ( attendeeCount != null )
rowspan = Integer.parseInt( attendeeCount ) + 2;
%>
<tr>
<td width="123" rowspan="<%=rowspan%>" bgcolor="#fafafa"><font class="strong"> 参加人:</font></td>
<td colspan=7 bgcolor="#fafafa" width="464">总共<%=attendeeCount%>人 </td>
</tr>
<tr>
<td bgcolor="#fafafa" width="90"><font class="strong">姓名</font></td>
<td bgcolor="#fafafa" width="100"><font class="strong">部门</font></td>
<td bgcolor="#fafafa" width="100"><font class="strong">职务</font></td>
<td bgcolor="#fafafa" width="187"><font class="strong">反馈</font></td>
</tr>
<vnex:items >
<tr>
<td bgcolor="#fafafa" width="90"><workflow:executorsAttribute attribute="executor_name"/> </td>
<td bgcolor="#fafafa" width="100"><workflow:executorsAttribute attribute="executor_department" /></td>
<td bgcolor="#fafafa" width="100"><workflow:executorsAttribute attribute="executor_title" /></td>
<td bgcolor="#fafafa" width="187"><!--workflow:executorsAttribute attribute="executor_status_name" /--><workflow:executorsAttribute attribute="executor_notes" /> </td>
</tr>
</vnex:items>
</conference:attendeeList>
<tr bgcolor="#fafafa">
<td valign=top noWrap width="123" ><font class="strong"> 会议最后通知时间:</font>
</td>
<td colspan=4 width="464"><%=showUpdate %>
</td>
</tr>
<tr bgcolor="#e0e0e0">
<td width="123">
<font class="strong"> 会议纪要:</font>
</td>
<td colspan=4 bgcolor="#e0e0e0" width="464">
<select size="5" name="attachments" multiple style="width:300" class="text">
<conference:fileList collection="<%=conValueBean.getSummaryFiles()%>">
<conference:items>
<option value="<conference:fileAttribute attribute='WorkflowFile_title' />" >
<conference:fileAttribute attribute="WorkflowFile_name"/>
</option>
</conference:items>
</conference:fileList>
</select>
<input type="button" name="delete" value="删除" class="file" onClick="deleteDoc( this.form )">
<br>
<input type="file" name="file" class="file" size="24">
<input type="button" name="post" value="上传" class="file" onClick="uploadDoc( this.form )">
</td>
</tr>
<tr align="center" bgcolor="#fafafa">
<td colspan="6" height="30">
<input type="button" name="saveButton" class=text value="保存" onClick="submitForm('save') ">
<input type="button" name="desertButton" class=text value="放弃" onClick="submitForm('return') ">
</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 + -