<% /** * ********************************************************** * @@ 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); int sysAuth = HttpSSOLogin.getSysAuth(request); /** * **** 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(); String docName = totDoc.getName(); //싱글인 경우에만 조회한다. 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(" /> <%}%> <%-- <%if( MLong.parseLong(docID) < 1700000000){ %> --%> 담당변경 <%-- <%}%> --%> <%= 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(); } %>