You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

121 lines
4.3 KiB

<%
/************************************************************@@
* Program Name : doc_regist.jsp
* Description : /집계자/내문서함/등록함/문서 등록
* Author : 강원중
* Create Date : 2004.10.11
* History :
@@************************************************************/
%>
<%@ page contentType="text/html; charset=euc-kr"
import="java.net.URLEncoder" import="java.net.URLDecoder"
import="kr.co.kihyun.beans.user.HttpSSOLogin" import="java.util.*"
import="java.io.StringReader"
import="javax.swing.text.html.parser.ParserDelegator"
import="kr.co.kihyun.lang.Encoder" import="kr.co.kihyun.util.Stopwatch"
import="kr.co.kihyun.text.html.TagFilter"
import="kr.co.kihyun.text.html.ServletUtil"
import="kr.co.kihyun.text.html.CallbackHandler"
import="kr.co.kihyun.moumi.Moumi" import="kr.co.kihyun.moumi.doc.MDoc"
import="kr.co.kihyun.moumi.doc.table.MTable"
import="kr.co.kihyun.moumi.doc.table.TableDefine"
import="kr.co.kihyun.moumi.doc.table.TableCreation"
import="kr.co.kihyun.moumi.doc.table.item.MItem"
import="kr.co.kihyun.lang.MInteger" import="kr.co.kihyun.lang.MLong"
import="kr.co.kihyun.lang.MString"
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{
/*********** 소요시간 체크 ***********/
Stopwatch stopwatch = new Stopwatch();
long startTime = stopwatch.start();
/********** session내의 userId **********/
String usID = HttpSSOLogin.getLoginID(request);
/********** parameter **********/
String docForm = clearXSS(request.getParameter("docForm"),"");
Long docID = MLong.parseLong(request.getParameter("docID"),null);
TotDoc totDoc = null;
totDoc = docID == null ? null : pm.getObjectById(TotDoc.class, docID);
String docName = totDoc.getName();
%>
<%@page import="kr.co.kihyun.beans.entity.TotDoc"%><HTML>
<HEAD>
<TITLE><%=Moumi.getTitle()%></TITLE>
<link rel="stylesheet" href="/totsys/common/css/text.css"
type="text/css">
<link rel="stylesheet" href="/totsys/common/css/kecttep.css"
type="text/css">
</HEAD>
<body style='' BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0"
MARGINWIDTH="0" MARGINHEIGHT="0">
<table width="100%" height="70" border="0" cellpadding="0"
cellspacing="0">
<jsp:include page="/totsys/common/inc/totper/top/top.jsp" flush="true" />
<tr>
<td nowrap width="0"></td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<jsp:include page="/totsys/common/inc/title/title.jsp" flush="true" />
<!---- top bar 버튼 시작 ---->
<tr>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="/totsys/totper/mydocbox/prssbox/doc_list.jsp"><img
src="/totsys/common/images/bt_doc_list.gif" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<!---- topbar 버튼 끝 ---->
<tr>
<td height="1"></td>
<tr>
<tr>
<td bgcolor="6891cb" height="2"></td>
</tr>
<!------------------------------- form config start ------------------------------->
<jsp:include page="./form_re_config2.jsp" flush="true">
<jsp:param name="docName"
value='<%= URLEncoder.encode(docName, "UTF-8") %>' />
<jsp:param name="docForm" value="<%= docForm%>" />
<jsp:param name="docID" value="<%= docID %>" />
</jsp:include>
<!------------------------------- form config end ------------------------------->
</form>
<!---- 버튼(미리보기/취소) 끝 ---->
</table>
</td>
<td nowrap width="10">&nbsp;</td>
</tr>
<!------------------------------- top menu start ------------------------------->
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%>
<!------------------------------- top menu end ------------------------------->
</table>
</BODY>
<div id="SetWin" style="position: absolute; visibility: hidden; width: 100px; height: 100px; background: silver; border: 1px solid #333333; line-height: 1.4em; padding: 3px 3px"></div>
</HTML>
<%
}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();
}
%>