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.
245 lines
6.3 KiB
245 lines
6.3 KiB
<%@page import="kr.co.kihyun.service.TotReportService"%> |
|
<%@page import="kr.co.kihyun.service.TotDocService"%> |
|
<%@page import="kr.co.kihyun.beans.tosys.etc1.TotsysEtc"%> |
|
<%@page contentType="text/html; charset=euc-kr" |
|
import="javax.jdo.PersistenceManager" |
|
import="javax.jdo.Transaction" |
|
|
|
import="kr.co.kihyun.beans.entity.MUser" |
|
import="kr.co.kihyun.beans.entity.util.PMF" |
|
import="kr.co.kihyun.beans.entity.util.MPersistenceManager" |
|
import="kr.co.kihyun.beans.user.HttpSSOLogin" |
|
import="kr.co.kihyun.lang.MString" |
|
%> |
|
|
|
<%//@include file="/portlet/portlet.inc"%> |
|
|
|
<!-- 스타일 적용 부분은 변경하지 말아주세요. --> |
|
<HTML> |
|
<HEAD> |
|
<TITLE>NEIS 집계자료건수</TITLE> |
|
<STYLE> |
|
body { |
|
margin-left: 0px; |
|
margin-top: 3px; |
|
margin-right: 0px; |
|
background-color: transparent; |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #000000; |
|
text-decoration: none; |
|
cursor: pointer; |
|
} |
|
|
|
table { |
|
margin-left: 0px; |
|
margin-top: 0px; |
|
margin-right: 0px; |
|
} |
|
|
|
td { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #000000; |
|
text-decoration: none; |
|
} |
|
|
|
.link A:link { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #0044FF; |
|
text-decoration: none; |
|
font-weight: bold; |
|
} |
|
|
|
.link A:visited { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #0044FF; |
|
text-decoration: none; |
|
font-weight: bold; |
|
} |
|
|
|
.link A:active { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #0044FF; |
|
text-decoration: none; |
|
font-weight: bold; |
|
} |
|
|
|
.link A:hover { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #FF0000; |
|
text-decoration: none; |
|
font-weight: bold; |
|
} |
|
|
|
A:link { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #000000; |
|
text-decoration: none; |
|
} |
|
|
|
A:visited { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #000000; |
|
text-decoration: none; |
|
} |
|
|
|
A:active { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #000000; |
|
text-decoration: none; |
|
} |
|
|
|
A:hover { |
|
font-family: dotum; |
|
font-size: 8pt; |
|
color: #FF0000; |
|
text-decoration: none; |
|
} |
|
</STYLE> |
|
</HEAD> |
|
|
|
<% |
|
String usId = (String) session.getAttribute("SSO_USER_ID"); |
|
if (MString.isNull(usId)) { |
|
if (MString.isNull(HttpSSOLogin.getLoginID(request))) { |
|
out.println("<center>※ 통합로그인(SSO)이 되지 않아 내용을 표시할 수 없습니다.<br></center>"); |
|
return; |
|
} else { |
|
usId = HttpSSOLogin.getLoginID(request); |
|
} |
|
} |
|
|
|
Long docCnt = 0L; |
|
Long reportCnt = 0L; |
|
|
|
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); |
|
Transaction tx = pm.currentTransaction(); |
|
try { |
|
tx.begin(); |
|
|
|
MUser mUser = pm.getObjectById(MUser.class, usId); |
|
/**************************************************** |
|
docCnt = mUser.getOnGoingDocsCount(pm); |
|
reportCnt = mUser.getUnwrittenReportsCount(pm); |
|
*****************************************************/ |
|
|
|
// DBManager 를 사용하던 방식을 사용하지 않도록 수정. 2014.11.18 by YOUNGJUN,CHO |
|
//TotsysEtc te=new TotsysEtc(); |
|
//docCnt=(long)(te.getDocCount(mUser.getId(),mUser.getDept(),mUser.getSysAuth())); |
|
//reportCnt=(long)(te.getReportCount(mUser.getId(),mUser.getDept())); |
|
|
|
// 집계진행자료 건수 조회 |
|
TotDocService totdocService = new TotDocService(pm); |
|
docCnt = (long) totdocService.getTotDocCount( mUser.getId(),mUser.getDept(),mUser.getSysAuth() ); |
|
|
|
// 접수자료 건수 조회 |
|
TotReportService totReportService = new TotReportService(pm); |
|
reportCnt = (long) totReportService.getTotReportCount( mUser.getId(),mUser.getDept() ); |
|
|
|
tx.rollback(); |
|
|
|
} catch (Exception e) { |
|
e.printStackTrace(); |
|
} finally { |
|
if (tx.isActive()) |
|
tx.rollback(); |
|
pm.close(); |
|
} |
|
|
|
String docUrl = "/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?redirect=/totsys/totper/mydocbox/prssbox/doc_list.jsp?docType=PRSS"; |
|
String reportUrl = "/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?redirect=/totsys/repoper/mydocbox/returnbox/report_list.jsp"; |
|
%> |
|
|
|
<!--<script> |
|
|
|
|
|
/* |
|
Auto Refresh Page with Time script |
|
By JavaScript Kit (javascriptkit.com) |
|
Over 200+ free scripts here! |
|
*/ |
|
|
|
//enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59 |
|
// var limit="1:0" |
|
// |
|
// if (document.images){ |
|
// var parselimit=limit.split(":") |
|
// parselimit=parselimit[0]*60+parselimit[1]*1 |
|
// } |
|
// function beginrefresh(){ |
|
// if (!document.images) |
|
// return |
|
// if (parselimit==1){ |
|
// window.location.reload() |
|
// }else{ |
|
// parselimit-=1 |
|
// curmin=Math.floor(parselimit/600) |
|
// cursec=parselimit%600 |
|
// if (curmin!=0) |
|
// curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!" |
|
// else |
|
// curtime=cursec+" seconds left until page refresh!" |
|
// window.status=curtime |
|
// setTimeout("beginrefresh()",1000) |
|
// } |
|
// } |
|
// |
|
// window.onload=beginrefresh |
|
// |
|
</script>--> |
|
|
|
<SCRIPT LANGUAGE="JAVASCRIPT"> |
|
function popup(flg) { |
|
if (flg=="doc") { |
|
var target_win = null; |
|
target_win = window.open ('<%= docUrl %>',"","width=1024px, height=768px, top=0px, left=0px, toolbar=no, scrollbars=yes, status=no, location=no, menubar=no, resizable=yes, fullscreen=no"); |
|
} else if (flg=="report") { |
|
var target_win = null; |
|
target_win = window.open ('<%= reportUrl %>',"","width=1024px, height=768px, top=0px, left=0px, toolbar=no, scrollbars=yes, status=no, location=no, resizable=yes, menubar=no, fullscreen=no"); |
|
} |
|
} |
|
</SCRIPT> |
|
|
|
<!-- 아래 HTML 은 디자인이 적용되어 있는 관계로 데이터를 찍는 부분 외에는 변경을 하지 말아주세요 --> |
|
<BODY scroll="no"> |
|
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<TR> |
|
<TD colspan="2" height="3"></TD> |
|
</TR> |
|
<TR> |
|
<TD width="55%"> |
|
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<TR onclick="popup('doc');"> |
|
<TD ALIGN="LEFT" class="td_link"> <A HREF="#">집계진행</A></TD> |
|
<TD ALIGN="RIGHT" class="td_link"><FONT class="link"><A |
|
HREF="#"><%=docCnt%>건</A> </FONT></TD> |
|
</TR> |
|
</TABLE> |
|
</TD> |
|
<TD width="45%"> |
|
<TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<TR onclick="popup('report');"> |
|
<TD ALIGN="LEFT"> <A HREF="#">접수</A></TD> |
|
<TD ALIGN="RIGHT"><FONT class="link"><A HREF="#"><%=reportCnt%>건</A></FONT> |
|
</TD> |
|
<TD WIDTH="5"></TD> |
|
</TR> |
|
</TABLE> |
|
</TD> |
|
</TR> |
|
<TR> |
|
<TD colspan="2" height="3"></TD> |
|
</TR> |
|
<TR colspan="2" height="3"><font color = 'red'> 해당 집계는 관련 문서를 접수한 담당자만 처리하시면 됩니다.</font></TR> |
|
</TABLE> |
|
</BODY> |
|
|
|
</HTML> |