<%@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"%> NEIS Áý°èÀÚ·á°Ç¼ö <% String usId = (String) session.getAttribute("SSO_USER_ID"); if (MString.isNull(usId)) { if (MString.isNull(HttpSSOLogin.getLoginID(request))) { out.println("
¡Ø ÅëÇշα×ÀÎ(SSO)ÀÌ µÇÁö ¾Ê¾Æ ³»¿ëÀ» Ç¥½ÃÇÒ ¼ö ¾ø½À´Ï´Ù.
"); 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"; %>   ÇØ´ç Áý°è´Â °ü·Ã ¹®¼­¸¦ Á¢¼öÇÑ ´ã´çÀÚ¸¸ ó¸®ÇÏ½Ã¸é µË´Ï´Ù.
  Á¢¼ö <%=reportCnt%>°Ç