<%@page import="java.util.Date"%>
<%@page import="kr.co.kihyun.util.Base64_2"%>
<%@page import="kr.co.kihyun.util.Base64"%>
<%@page import="java.net.URLDecoder"%>
<%
/************************************************************@@
  * Program Name	: doc_regist.jsp
  * Description		: /집계자/내문서함/등록함/문서 등록
  * Author			: 기현테크
  * Create Date		: 2010.11.27
  * History			:
@@************************************************************/
%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"
	import="java.net.URLEncoder" 
    import="java.net.URLDecoder"
    import="kr.co.kihyun.lang.Encoder"
    import="javax.jdo.PersistenceManager"
	import="javax.jdo.Query"
    import="kr.co.kihyun.beans.entity.util.*"
	import="kr.co.kihyun.beans.user.HttpSSOLogin"
	import="kr.co.kihyun.lang.MString"
    import="kr.co.kihyun.lang.MLong"
	import="kr.co.kihyun.moumi.MoumiConfig"
	import="kr.co.kihyun.beans.entity.MUser"
    import="kr.co.kihyun.beans.user.DeptAdd"
	import="kr.co.kihyun.beans.entity.TotDoc"
	import="kr.co.kihyun.beans.entity.TotReport"
	import="kr.co.kihyun.beans.entity.TotReportProcess"
	import="kr.co.kihyun.beans.user.*"
	import="kr.co.kihyun.moumi.report.MReport"
	import="kr.co.kihyun.beans.totsys.report.Report"
	import="kr.co.kihyun.lang.MInteger"
	import="kr.co.kihyun.beans.totsys.repoper.RepoadmList"
	import="kr.co.kihyun.beans.totsys.report.ReportView"
	import="kr.co.kihyun.beans.totsys.report.ReportViewManager"
	import="javax.jdo.PersistenceManager"
    import="javax.jdo.Transaction"
	import="kr.co.kihyun.beans.entity.util.*"
	import="kr.co.kihyun.beans.entity.TotDoc"
    import="org.slf4j.Logger"
	import="org.slf4j.LoggerFactory"
	import="kr.co.kihyun.beans.entity.Board"
	import="kr.co.kihyun.text.html.TagFilter"
    import="kr.co.kihyun.moumi.doc.table.MTable"
    import="kr.co.kihyun.moumi.doc.table.TableCreation"
   	import="kr.co.kihyun.moumi.doc.table.TableDefine"
    import="kr.co.kihyun.moumi.doc.table.item.MItem"
    import="kr.co.kihyun.moumi.Moumi" 
    import="kr.co.kihyun.moumi.doc.MDoc"
    import="kr.co.kihyun.text.html.CallbackHandler"
    import="kr.co.kihyun.text.html.ServletUtil"
    import="kr.co.kihyun.util.Stopwatch"
    import="javax.swing.text.html.parser.ParserDelegator"
    import="java.io.StringReader"
    import="java.util.*"
	import="kr.co.kihyun.beans.entity.*"%>

<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>

<%
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager());
	Transaction tx = pm.currentTransaction();
try{
	/********** session내의 userId **********/
	String usID = HttpSSOLogin.getLoginID(request);

	/********** parameter **********/
	Long reportID = MLong.parseLong(request.getParameter("reportID"),null);
	String recog = clearXSS(MString.checkNull(request.getParameter("recog")),"");
	String recogNum = clearXSS(MString.checkNull(request.getParameter("recogNum")),"");
	String prss = clearXSS(MString.checkNull(request.getParameter("prss")),"");
	String totperInfo = clearXSS(MString.checkNull(request.getParameter("totperInfo")),"");

    TotReport totReport = (TotReport)pm.getObjectById(TotReport.class, reportID);
    String doctName=totReport.getTotDoc().getName();
    String doctName2=totReport.getTotDoc().getName();
	String doctName3=URLEncoder.encode(doctName2);
    Long repoadminID = MLong.parseLong(request.getParameter("repoadminID"));
    String RecogGubun = clearXSS(request.getParameter("RecogGubun"),null);
    String GetID = clearXSS(request.getParameter("getID"),null);
    //String doctName=URLDecoder.decode(MString.checkNull(request.getParameter("doctName")), "UTF-8");
	%>
    <head>
    <link rel="stylesheet" href="/totsys/common/css/text.css"
        type="text/css">
    <link rel="stylesheet" href="/totsys/common/css/kecttep.css"
        type="text/css">
    <link rel="stylesheet" href="/totsys/common/css/tabs.css"
        type="text/css">
    <link rel="stylesheet" href="/totsys/common/css/SquareButtons.css"
        type="text/css">
    <script src="/totsys/common/js/rollover.js"></script>
    <script src="/totsys/common/js/popup.js"></script>
</head>
<!------------------------------- top menu start ------------------------------->
<jsp:include page="/totsys/common/inc/totper/top/top.jsp" flush="true" />
<!------------------------------- top menu end ------------------------------->
<jsp:include page="/totsys/common/inc/title/title5.jsp" flush="true">
            <jsp:param value='<%= URLEncoder.encode(doctName3) %>' name="title" />
            <jsp:param value='<%= URLEncoder.encode(doctName3) %>' name="desc" />
</jsp:include>
<!------------------------------- form config start ------------------------------->
<jsp:include
	page="/totsys/repoper/mydocbox/approve/approve_modify_temp.jsp"	flush="true">
	<jsp:param name="reportID" value="<%= reportID %>" />
	<jsp:param name="recog" value="<%= recog %>" />
	<jsp:param name="recogNum" value="<%= recogNum %>" />
	<jsp:param name="prss" value="<%= prss %>" />
	<jsp:param name="totperInfo" value="<%= totperInfo %>" />
    <jsp:param name="repoadminID" value="<%= repoadminID %>" />
    <jsp:param name="RecogGubun" value="<%= RecogGubun %>" />
    <jsp:param name="GetID" value="<%= GetID %>" />
    <jsp:param name="totperInfo" value="3" />    
</jsp:include>
<%
}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{
}
%>
