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.
209 lines
5.3 KiB
209 lines
5.3 KiB
<%@page import="kr.co.kihyun.beans.entity.SysAuth"%> |
|
<%@page import="java.util.HashMap"%> |
|
<%@page import="java.util.Map"%> |
|
<%@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=UTF-8" |
|
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)) { |
|
usId = HttpSSOLogin.getLoginID(request); |
|
if (MString.isNull(usId)) { |
|
out.println("<center>※ 통합로그인(SSO)이 되지 않아 내용을 표시할 수 없습니다.<br></center>"); |
|
return; |
|
} |
|
} |
|
|
|
int docCnt = 0; |
|
int reportCnt = 0; |
|
|
|
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); |
|
Transaction tx = pm.currentTransaction(); |
|
try { |
|
tx.begin(); |
|
|
|
MUser mUser = pm.getObjectById(MUser.class, usId); |
|
String dpId = mUser.getDept(); |
|
Map params = new HashMap(); |
|
|
|
params.put("userId", usId); |
|
params.put("deptId", dpId); |
|
String docType = "PRSS"; |
|
|
|
|
|
// 집계진행자료 건수 조회 |
|
TotDocService totDocService = new TotDocService(pm); |
|
totDocService.createDocListSearchQuery(params, docType); |
|
docCnt = totDocService.getCountFromMainQuery(); |
|
|
|
// 접수자료 건수 조회 |
|
TotReportService totReportService = new TotReportService(pm); |
|
totReportService.createAcceptReportListSearchQuery(params); |
|
reportCnt = totReportService.getCountFromMainQuery(); |
|
|
|
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 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>
|
|
|