%@page import="kr.co.kihyun.lang.MString"%>
<%
/************************************************************@@
* Program Name : doc_view.jsp
* Description : /µî·ÏÀÚ/ÁøÇàÇÔ/±âº»Á¤º¸ º¸±â
* Author : ±âÇöÅ×Å©
* Create Date : 2010.11.25
* History :
@@************************************************************/
%>
<%@ page contentType="text/html; charset=euc-kr"
import="java.net.URLEncoder"
import="kr.co.kihyun.beans.user.HttpSSOLogin"
import="kr.co.kihyun.lang.MLong" import="kr.co.kihyun.moumi.Moumi"
import="kr.co.kihyun.lang.Encoder" import="kr.co.kihyun.moumi.doc.MDoc"
import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction"
import="kr.co.kihyun.beans.entity.util.*"%>
<%@page import="kr.co.kihyun.beans.entity.TotDoc"%>
<%@page import="kr.co.kihyun.beans.entity.TotDocProcess"%>
<%@ 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);
int sysAuth = HttpSSOLogin.getSysAuth(request);
String dirPath = URLEncoder.encode(""+Moumi.getMessageBundle().getString("moumi.message.tot_doc.myDoc")+" > "+Moumi.getMessageBundle().getString("moumi.message.tot_doc.formBox")+"", "UTF-8");
/****** Parameter ******/
Long docID = MLong.parseLong(request.getParameter("docID"),null);
String url = "form";
TotDoc totDoc = null;
totDoc = docID == null ? null : pm.getObjectById(TotDoc.class, docID);
String docName = totDoc.getName();
//LJH
docName=URLEncoder.encode(docName,"UTF-8");
/*********** session setup ************/
session.setAttribute("formConTagetURL", "/totsys/totper/mydocbox/formbox/doc_view.jsp");
%>
<%=Moumi.getTitle()%>
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%>
<%
}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{
if(tx.isActive())
tx.rollback();
pm.close();
}
%>