
<%
/************************************************************@@
  * Program Name	: reMemoContents.jsp
  * Description		: 재보고 / 재 배정 내용
  * Author			: 기현테크 
  * Create Date		: 2010.11.26
  * History			:
@@************************************************************/
%>

<%@ page contentType="text/html; charset=UTF-8"
	import="kr.co.kihyun.lang.StringConverter"
	import="kr.co.kihyun.lang.MLong"
	import="kr.co.kihyun.beans.entity.Memo"
	import="javax.jdo.PersistenceManager" import="kr.co.kihyun.moumi.Moumi"
	import="kr.co.kihyun.beans.entity.util.*"
	import="kr.co.kihyun.beans.entity.TotReport" import="java.util.List"
	import="kr.co.kihyun.beans.entity.TotReportProcess"%>
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>
<%
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager());
try{
	
	/****** Parameter ******/
	Long reportID = null;
	String groupID = "";
	reportID = MLong.parseLong(request.getParameter("reportID"));
	groupID = clearXSS(request.getParameter("groupID"),"");
	
	TotReport totReport = pm.getObjectById(TotReport.class, reportID);
	List<Memo> memos = totReport.getMemos();

	if(memos.size() > 0 && totReport.getProcess() == TotReportProcess.RETURN){%>

<TR>
	<TD colspan=4>
	<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
		<TBODY>
			<TR>
				<TD>
				<link rel="stylesheet" href="/totsys/common/css/kecttep.css"
					type="text/css">
				<table cellSpacing="0" cellPadding="0" border="0" width="100%">
					<tr>
						<td><img src="/totsys/common/images/ico_1.gif"></td>
						<td class="kecttep_title" style="padding-left: 5" align="left"
							width="100%"><%=Moumi.getMessageBundle().getString("moumi.message.tot_report.reinput")%>
						<%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.request")%></td>
					</tr>
					<tr>
						<TD class="body" valign="middle"
							style="PADDING-TOP: 2px; padding-left: 18" colspan="2">
						<% for(int i=0; i<memos.size(); i++){%> <%=i+1%><%=Moumi.getMessageBundle().getString("moumi.message.tot_report.reinputReson")%>
						: <%= memos.get(i).getContents() %><br />
						<%}%>
						</TD>
					</tr>
				</table>
				</TD>
			</tr>
			<tr>
		</TBODY>
	</TABLE>
	</TD>
</TR>
<%}%>
<%}catch(Exception ex){ex.printStackTrace();
	out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';"));
}finally{
	pm.close();
}
%>
