<%@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"%> NEIS 집계자료건수 <% String usId = (String) session.getAttribute("SSO_USER_ID"); if (MString.isNull(usId)) { usId = HttpSSOLogin.getLoginID(request); if (MString.isNull(usId)) { out.println("
※ 통합로그인(SSO)이 되지 않아 내용을 표시할 수 없습니다.
"); 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"; %>   해당 집계는 관련 문서를 접수한 담당자만 처리하시면 됩니다.
  접수 <%=reportCnt%>건