<% /************************************************************@@ * Program Name : doc_form_view.jsp * Description : /Áý°èÀÚ/³»¹®¼­ÇÔ/ÁøÇàÇÔ/¾ç½Ä º¸±â * Author : °­¿øÁß * Create Date : 2004.10.15 * 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.moumi.doc.MDoc" import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.beans.totsys.doc.Doc" import="kr.co.kihyun.beans.totsys.report.Report" import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" import="kr.co.kihyun.beans.entity.util.*"%> <%@ 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 docID = MLong.parseLong(request.getParameter("docID"),null); /*********** session setup ************/ session.setAttribute("formConTagetURL", "/totsys/totper/mydocbox/prssbox/doc_form_view.jsp"); TotDoc totDoc = null; totDoc = docID == null ? null : pm.getObjectById(TotDoc.class, docID); String docName = totDoc.getName(); tx.begin(); String regID = totDoc.getMasterTotDoc().getUser(pm).getId(); tx.rollback(); /****** all, send report ******/ int allReportCount = 0; int sendReportCount = 0; Report report = new Report(); allReportCount = report.getAllCount(docID); sendReportCount = report.getSendCount(docID); Doc doc = new Doc(); String repDocID = doc.getRepID(docID); %> <%@page import="kr.co.kihyun.beans.entity.TotDoc"%> <%=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(); } %>