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.
170 lines
6.1 KiB
170 lines
6.1 KiB
|
|
<% |
|
/************************************************************@@ |
|
* Program Name : doc_regist.jsp |
|
* Description : /집계자/내문서함/등록함/문서 등록 |
|
* Author : 강원중 |
|
* Create Date : 2004.10.11 |
|
* History : |
|
@@************************************************************/ |
|
%> |
|
<%@ page contentType="text/html; charset=UTF-8" |
|
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="kr.co.kihyun.beans.totsys.report.Report" |
|
import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" |
|
import="kr.co.kihyun.beans.entity.util.*" |
|
import="kr.co.kihyun.beans.entity.TotDoc"%> |
|
|
|
<%@ 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 **********/ |
|
Long docForm = MLong.parseLong(request.getParameter("docForm"),null); |
|
Long docID = MLong.parseLong(request.getParameter("docID"),null); |
|
|
|
TotDoc totDoc = pm.getObjectById(TotDoc.class, docID); |
|
String docName = totDoc.getName(); |
|
|
|
Report report = new Report(); |
|
int allReportCount = report.getAllCount(docID); |
|
int sendReportCount = report.getSendCount(docID); |
|
%> |
|
<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"> |
|
<link rel="stylesheet" href="/totsys/common/css/tabs.css" |
|
type="text/css"> |
|
<link rel="stylesheet" href="/totsys/common/css/SquareButtons.css" |
|
type="text/css"> |
|
<script language="javascript"> |
|
function formContentModify(){ |
|
if(confirm("현재 집계문서에 대한\n제출건수 : <%=sendReportCount%>건\n미제출건수 : <%=(allReportCount-sendReportCount)%>건\n이 있습니다.\n계속 진행하시면 모든 제출완료 문서가 접수 상태로 변경됩니다\n계속 진행하시겠습니까?")){ |
|
location.href="./form_content_modify.jsp?docID=<%=docID%>"; |
|
}else{ |
|
return; |
|
} |
|
} |
|
function formPreference(){ |
|
if(confirm("현재 집계문서에 대한\n제출건수 : <%=sendReportCount%>건\n미제출건수 : <%=(allReportCount-sendReportCount)%>건\n이 있습니다.\n계속 진행하시면 모든 제출완료 문서가 접수 상태로 변경됩니다\n계속 진행하시겠습니까?")){ |
|
location.href="./doc_form_modify.jsp?docID=<%= docID %>"; |
|
}else{ |
|
return; |
|
} |
|
} |
|
|
|
|
|
function modify(){ |
|
location.href="/totsys/sysadm/prssbox/doc_modify.jsp?docID=<%= docID %>&url=mmprss"; |
|
} |
|
|
|
function formView(){ |
|
location.href="/totsys/sysadm/prssbox/doc_form_view.jsp?docID=<%=docID%>"; |
|
} |
|
|
|
function reports(){ |
|
location.href="/totsys/sysadm/prssbox/reports/report_list.jsp?docID=<%= docID %>"; |
|
} |
|
|
|
function totReports(){ |
|
location.href="/totsys/sysadm/prssbox/tot_reports/total_reports.jsp?docID=<%= docID %>"; |
|
} |
|
|
|
function totReport(){ |
|
location.href="/totsys/sysadm/prssbox/tot_report/total_report.jsp?docID=<%= docID %>"; |
|
} |
|
</script> |
|
</HEAD> |
|
|
|
<body style='' BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" |
|
MARGINWIDTH="0" MARGINHEIGHT="0"> |
|
<div> |
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<jsp:include page="/totsys/common/inc/title/title.jsp" flush="true" /> |
|
<jsp:include page="/totsys/common/inc/totper/top/top.jsp" flush="true" /> |
|
</table> |
|
</div> |
|
|
|
<div id="header"> |
|
<ul id="primary"> |
|
|
|
<li><a href="#" onclick="modify();">기본정보</a></li> |
|
<li><span class="kecttep_menu_focous">양식정보</span></li> |
|
<li><a href="#" onclick="reports();">제출현황</a></li> |
|
<li><a href="#" onclick="totReports();">집계현황</a></li> |
|
<li><a href="#" onclick="totReport();">집계표</a></li> |
|
</ul> |
|
</div> |
|
|
|
<div id="main"> |
|
<div id="contents"> |
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<tr class="toolbar"> |
|
<td align="left"> |
|
<table border="0" cellspacing="0" cellpadding="0"> |
|
<tr> |
|
<td><a class="simplebutton" href="#" |
|
onclick="javacscript:formContentModify();"><span class="modify"> |
|
<%= Moumi.getMessageBundle().getString("moumi.message.button.formModify") %></span> |
|
</a></td> |
|
<td class="kecttep_button_td"><a class="simplebutton" href="#" |
|
onclick="javascript:formPreference();"><span class="modify"><%= Moumi.getMessageBundle().getString("moumi.message.button.formPreference") %></span></a> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
</table> |
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<jsp:include page="./form_re_config.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> |
|
</table> |
|
</div> |
|
</div> |
|
|
|
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%> |
|
<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> |
|
</BODY> |
|
</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(); |
|
} |
|
%>
|
|
|