<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Collection" %>
<%@ page import="net.sz600.basicdata.*" %>
<%@ page import="net.sz600.database.*" %>
<%@ page import="net.sz600.tool.SzConvert" %>
<%@ page import="net.sz600.tool.SzDateHelp" %>
<%@ page import="net.sz600.system.*" %>
<%@ page import="net.sz600.flow.*" %>
<%@ page import="net.sz600.online.*" %>
<%@ page import="net.sz600.formEngine2.*" %>
<%@ page import="net.sz600.formEngine.*" %>
<%@ page import="net.sz600.weboffice.*" %>
<%@ page import="com.soarwell.weixin.oa.Annex" %>
<%@ page import="com.soarwell.weixin.oa.*" %>
<%@ include file="/sessionInfoWeixin.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<%@ include file="/share/oa_app_title.jsp"%>
 <link href="<%=strLevel_SESSION%>app/images/soarwell_css.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="<%=strLevel_SESSION%>share/js/commonTool.js"></script>
</head>

<% 
  String strLevel = "../../"; 
  String sFromUrl = SzConvert.toSpaceStr(request.getParameter("from"));
  if (sFromUrl.equals("")) {
	  sFromUrl = "index.jsp";
  }
%>
<%
    String sKEY =  SzConvert.toZeroStr(request.getParameter("KEY"));    
	String sPage = SzConvert.toZeroStr(request.getParameter("page"));
	String sSearch = SzConvert.strWriteData(request.getParameter("txtSearch"));

    int iFormID = SzConvert.toInt(request.getParameter("FormID"));

	OlMessageControl olMessageControl = new OlMessageControl();
    OlMessageInfo messageInfo = null;
    messageInfo = (OlMessageInfo)olMessageControl.readMessage(SzConvert.toInt(sKEY));
    if (messageInfo == null) {
    	messageInfo = new OlMessageInfo();
    }
    String sTableAnnex = "SZJS_XXFJ";
    Message message = new Message();
    if (messageInfo != null) {
      String sContent = messageInfo.getFSNR();
      sContent = sContent.replaceAll("\n", "<br>");
      sContent = sContent.replaceAll(" ", "&nbsp;");
%>
  <form name="formUpdate" method="post">
  <input type="hidden" name="page" value="<%=sPage%>">
  <input type="hidden" name="txtSearch" value="<%=sSearch%>">
  <input type="hidden" name="KEY" value="<%=sKEY%>">  
  <input type="hidden" name="from" value="<%=sFromUrl%>">  
<%@ include file="title.jsp"%>
<table width="100%">
  <tr>
    <td>
    <% 
    out.println( SzPageHelp.button("返回", "FormSubmit(formUpdate, '" + sFromUrl + "')") );     
    %>         
    </td>
  </tr>
</table>
<table height="227" width="100%" border="0" cellspacing="3" cellpadding="3" style="border:#D7D7D9 1px solid;">
  <tr>
    <td><span class="product_name"><%=message.cutHref(messageInfo.getFSBT())%></span></td>
  </tr>
  <tr>
    <td height="8" align="left" background="../images/line.gif"></td>
  </tr> 
  <tr>
    <td><span class="product_content"><%=messageInfo.getFSSJ()%>&nbsp;<%=messageInfo.getFSDLXM()%></span></td>
  </tr>
  <tr>
    <td><span class="product_content"><b>[内容]</b><%=sContent%></span></td>
  </tr> 
  <tr>
    <td height="8" align="left" background="../images/line.gif"></td>
  </tr> 
  <!-- 2015-05-08修改附件显示方法，否则附件不显示 -->
  <tr>
    <td><%out.println(SzPageHelp.detailAnnexNew2(sTableAnnex, "" + messageInfo.getFSID(), "", strLevel_SESSION));%></td>
  </tr>  
  <tr><td>&nbsp;</td></tr>
</table>
<%  } %>
