msg_received_detail.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:8k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_communication.tld" prefix="comm" %>
- <jsp:useBean id="mvb" scope="request" class="com.vnex.intranet.communication.message.value.MessageValueBean" />
- <jsp:useBean id="msgProxy" scope="application" class="com.vnex.intranet.communication.message.proxy.MessageProxyBean" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="cu" scope="request" class="com.vnex.intranet.communication.util.CommunicationUtil" />
- <%
- int msgId = Integer.parseInt(request.getParameter("msgId"));
- int empId = BusinessName.getEmpId();
- mvb = msgProxy.getReceivedMessageDetail(msgId, empId);
- String title = mvb.getMsgTitle();
- String body = mvb.getMsgBody();
- title = FieldUtil.filterScriptTag(title);
- body = FieldUtil.keepStringFormat(FieldUtil.filterScriptTag(body));
- mvb.setMsgTitle(title);
- mvb.setMsgBody(body);
- request.setAttribute("msgInfo", mvb);
- if(mvb.getStatusId() == 0)
- msgProxy.setReceivedMsgStatus(1, msgId, BusinessName.getEmpId());
- boolean isDismission = false;
- String disabled = "";
- String dismissionDescription = "";
- if(cu.isDismission(mvb.getSenderId()))
- {
- isDismission = true;
- disabled = "disabled";
- dismissionDescription = " [此员工已经离职,你无需再对此邮件进行回复!]";
- }
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_communicate.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <DIV align=center>
- <script language=javascript src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function checkChar(str)
- {
- var i,j,strTemp;
- strTemp=""<>/\'";
- for (i=0;i<str.length;i++)
- {
- j=strTemp.indexOf(str.charAt(i));
- if (j!=-1)
- {
- return false;
- }
- }
- return true;
- }
- function deleteThisMsg(form)
- {
- if(confirm("是否删除本条消息?"))
- {
- form.action="/mainctrl/msg/deleteReceivedMsg";
- form.submit();
- }
- }
- function replyThisMsg(form)
- {
- if(isCompleteData(form))
- {
- form.action="/mainctrl/msg/replyMsg";
- form.submit();
- }
- }
- function isCompleteData(form)
- {
- if(form.msgBody.value.length > 0 && isInvalidateLen(form.msgBody.value, 1000))
- {
- alert("内容不能超过250个汉字或1000个英文字符");
- form.msgBody.focus();
- return false;
- }
- return true;
- }
- function doSearch(form)
- {
- if(checkChar(form.s_text.value))
- {
- form.action="/mainctrl/msg/receivedHome?ss";
- form.submit();
- }
- else
- alert("不要在查询条件中加入"<>/\'之类的字符");
- }
- </script>
- <form name="form1" method="post">
- <input type="hidden" name="msgId" value="<%=request.getParameter("msgId")%>">
- <input type="hidden" name="msgTitle" value="<%=mvb.getMsgTitle()%>" >
- <input type="hidden" name="senderId" value="<%=mvb.getSenderId()%>" >
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table width="600" border="0" cellpadding="2" cellspacing="0">
- <tr bgcolor="#666666">
- <td><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>>><a href="/mainctrl/msg/receivedHome"><font color="#ffffff">消息板</font></a>>>接收信息详细内容</font>
- </td>
- </tr>
- </table>
- <table width="600" border="0" cellspacing="1" cellpadding="2">
- <tr bgcolor="#fafafa">
- <td width="20%"><strong> 标题:</strong>
- </td>
- <td><%=mvb.getMsgTitle()%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="20%"><strong> 发送人:</strong></td>
- <td><%=mvb.getSenderName()%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="20%"><strong> 发送人部门:</strong></td>
- <td><%=mvb.getDept()%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="20%"><strong> 发送时间:</strong></td>
- <td><%=TimeStamp.toString(TimeStamp.convertCalendarToTimestamp(mvb.getSendDate()))%></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td width="20%"><strong> 内容:</strong></td>
- <td><%=mvb.getMsgBody()%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="20%"><strong> 附件:</strong></td>
- <td>
- <table width="100%" class="title" cellpadding="2" cellspacing="1">
- <comm:attachmentList msgId="<%=msgId%>" empId="<%=empId%>" searchWhat="receive">
- <vnex:items>
- <tr bgcolor="<vnex:itemsColor />">
- <td> <img src="/vnex/MacOS/addfile.gif" border="0">
- <a href="<comm:attachmentAttribute attribute="file_location"/>" target="_blank"><comm:attachmentAttribute attribute="file_name" /></a></td>
- </tr>
- </vnex:items>
- </comm:attachmentList>
- </table>
- </td>
- </tr>
- </table>
- <table width="600" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="2"><strong> 回复本消息</strong><%=dismissionDescription%></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td width="20%"><strong> 回复内容:</strong></td>
- <td><textarea rows="5" name="msgBody" cols="59" <%=disabled%>></textarea></td>
- </tr>
- <tr bgcolor="#fafafa" height="30">
- <td colspan="2" align="center">
- <%
- if(!isDismission)
- {
- %>
- <input type="button" value="回复" name="B1" onClick="replyThisMsg(this.form)" class="text">
-
- <% }%>
- <input type="button" value="删除" name="B1" onClick="deleteThisMsg(this.form)" class="text">
-
- <%
- if(!isDismission)
- {
- %>
- <input type="reset" value="重置" name="B1" class="text">
-
- <% }%>
- <input type="button" value="放弃" name="B1" class="text" onclick="location='/mainctrl/msg/receivedHome'">
- </td>
- </tr>
- </table>
- </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" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>