<% /************************************************************@@ * Program Name : doc_view.jsp * Description : /등록자/진행함/기본정보 보기 * Author : 기현테크 * Create Date : 2010.11.25 * History : @@************************************************************/ %> <%@ page contentType="text/html; charset=UTF-8" 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(); } %>