<% /** * ********************************************************** * @@ Program Name : doc_modify.jsp * @@ Description : /Áý°èÀÚ/³»¹®¼­ÇÔ/µî·ÏÇÔ/±âº»Á¤º¸ º¯°æ * @@ Author : ±âÇöÅ×Å© * @@ Create Date : 2010-11-21 * @@ History : * @@*********************************************************** */ %> <%@ page contentType="text/html; charset=UTF-8" import="java.net.URLEncoder" import="java.net.URLDecoder" import="java.util.List" import="kr.co.kihyun.beans.user.HttpSSOLogin" import="kr.co.kihyun.moumi.Moumi" import="kr.co.kihyun.lang.Encoder" import="kr.co.kihyun.lang.MInteger" import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.moumi.doc.MDoc" import="kr.co.kihyun.beans.totsys.menu.MenuBean" import="kr.co.kihyun.service.ShareDocService" import="kr.co.kihyun.beans.entity.TotDoc" import="kr.co.kihyun.beans.entity.TotDocProcess" import="kr.co.kihyun.beans.entity.TotDocType" import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" import="kr.co.kihyun.beans.entity.util.*" import="kr.co.kihyun.lang.MLong"%> <%@ 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); /** * ********** top value *********** */ String dirPath = URLEncoder.encode(" " + Moumi.getMessageBundle().getString("moumi.message.tot_doc.myDoc") + " > " + Moumi.getMessageBundle().getString("moumi.message.tot_doc.myPrssBox") + "", "UTF-8"); /** * **** Parameter ***** */ String docID = clearXSS(request.getParameter("docID"), ""); String docType = clearXSS(request.getParameter("docType"), null); int strPage = MInteger.parseInt(request.getParameter("strPage"), 1); String findOption = clearXSS(request.getParameter("findOption"), ""); String findWord = clearXSS(Encoder.toJava(request.getParameter("findWord")), ""); String stDate = clearXSS(request.getParameter("stDate"),""); String edDate = clearXSS(request.getParameter("edDate"),""); String method = clearXSS(request.getParameter("method"), ""); if (method.equals("GET")) { findWord = URLDecoder.decode(MString.checkNull(request.getParameter("findWord")), "UTF-8"); } //System.out.println("findWord = "+findWord); int userShareCount = 0; tx.begin(); TotDoc totDoc = pm.getObjectById(TotDoc.class, MLong.parseLong(docID)); String regID = totDoc.getUser(pm).getId(); //½Ì±ÛÀÎ °æ¿ì¿¡¸¸ Á¶È¸ÇÑ´Ù. ShareDocService shareDoc = new ShareDocService(pm); List tmpList = shareDoc.getSearchDocIdType('N', docID, 'D'); userShareCount = tmpList.size(); tx.rollback(); String redirectURI = "/totsys/totper/mydocbox/prssbox/doc_list.jsp?docType=" + docType; session.setAttribute("modifySuccTargetURI", "totper/mydocbox"); session.setAttribute("modifyFailTargetURI", "/totsys/totper/mydocbox/prssbox/doc_modify.jsp?docID=" + docID); MenuBean modifyMenu = new MenuBean(request, "/totsys/totper/mydocbox/prssbox/doc_modify.jsp?docID=" + docID + "&docType=" + docType); MenuBean reportsMenu = new MenuBean(request, "/totsys/totper/mydocbox/prssbox/reports/report_list.jsp?docID=" + docID + "&docType=" + docType); MenuBean totReportsMenu = new MenuBean(request, "/totsys/totper/mydocbox/prssbox/tot_reports/total_reports.jsp?docID=" + docID + "&docType=" + docType); // MenuBean totReportMenu = new MenuBean(request, "/totsys/totper/mydocbox/prssbox/tot_report/total_report.jsp?docID=" + docID + "&docType=" + docType); %> <%=Moumi.getTitle()%>
<% if ("PRSS".equals(docType)) {%> <%= Moumi.getMessageBundle().getString(" /> <%}%> ´ã´çº¯°æ <%= Moumi.getMessageBundle().getString(<%= Moumi.getMessageBundle().getString("moumi.message.tot_doc.share")%>" /> <% if (userShareCount > 0) { %> <%=userShareCount%><%=Moumi.getMessageBundle().getString("moumi.message.popup.userShareCounter")%> <% } %> <%= Moumi.getMessageBundle().getString(" />
<% } 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(); } %>