%@ page contentType="text/html; charset=UTF-8"
import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.lang.MLong"
import="kr.co.kihyun.beans.entity.TotDoc"
import="kr.co.kihyun.beans.entity.TotDocProcess"
import="kr.co.kihyun.text.html.TagFilter"
import="kr.co.kihyun.lang.StringConverter"
import="kr.co.kihyun.moumi.Moumi" import="kr.co.kihyun.lang.Encoder"
import="java.net.URLEncoder" import="kr.co.kihyun.lang.MInteger"
import="kr.co.kihyun.beans.totsys.report.Report"
import="org.apache.commons.lang.StringEscapeUtils"
import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction"
import="kr.co.kihyun.beans.entity.util.*"
import="kr.co.kihyun.beans.entity.TotDoc"%>
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>
<%
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager());
Transaction tx = pm.currentTransaction();
try{
/********** get Parameter *************/
Long docID = MLong.parseLong(request.getParameter("docID"),null);
String gubun = clearXSS(Encoder.toJava(request.getParameter("gubun")),"");
/*********** doc value *****************/
String docForm = "";
String docName = "";
if(docID != null){
TotDoc totDoc = pm.getObjectById(TotDoc.class, docID);
docForm = totDoc.getForm();
docName = totDoc.getName();
docForm = TagFilter.convertSingle(docForm);
docForm = StringConverter.toOneLine(docForm);
//한글2002 버전특성에 인한 " "이 잘못 쌓여지는 버그가 있어서 추가한 부분
docForm = docForm.replaceAll("font-family: \"","font-family: ");
docForm = docForm.replaceAll("\"; text-align: ","; text-align: ");
docForm = docForm.replaceAll("
","\"자료입력창\"");
}
int tmp = MInteger.parseInt(request.getParameter("tmp"), 0);
int allReportCount = 0;
int sendReportCount = 0;
Report report = new Report();
allReportCount = report.getAllCount(docID);
sendReportCount = report.getSendCount(docID);
%>
<%@page import="kr.co.kihyun.beans.entity.TotDocType"%>
<%=Moumi.getTitle()%>
<%if(tmp == 1){%> <%}else{%>
<%}%>
|
|
<%
}catch(Exception ex){
//38.오류메세지를 통한 정보 노출(getMessage)_CWE-209 : Update by YOUNGJUN,CHO
//out.println(ex);
ex.printStackTrace();
//out.println("Can't contact servlet runner
Message : "+ex.getMessage()+"");
//out.println("");
//================================================
}finally{
if(tx.isActive())
tx.rollback();
pm.close();
}
%>